# Customerly

> Connect support conversations and lead profiles to customer operations reports.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/customerly

## Actions

### Get connected account

Get connected account.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Customerly.

**Example output**

```json
{
  "data": {
    "account": {
      "account_id": 101,
      "name": "Example Admin"
    },
    "project": {
      "name": "Example product",
      "project_id": "project_1"
    }
  }
}
```

### List contacts

Read one page of leads and users. Continue with the cursor returned by the API.

**Inputs**

- Per page (`per_page`, number): Maximum records to return in one page. From 1 to 100.
- Cursor (`cursor`, number): Next offset from the previous response; omit on the first page. At least 0.
- Keyword (`keyword`, text): Name, email or WhatsApp search; at least three characters.
- Role (`role`, text): Role. One of: `lead`, `user`.

**Outputs**

- `data` (object): The response from Customerly.

**Example output**

```json
{
  "data": {
    "contacts": [
      {
        "contact_id": 201,
        "email": "reader@example.com",
        "name": "Example Reader",
        "role": "user"
      }
    ],
    "cursor": null
  }
}
```

### List conversations

Read one page of customer conversations, their channel and escalation state.

**Inputs**

- Cursor (`cursor`, number): Pagination cursor from the previous response.
- Per page (`per_page`, number): Number of conversations in one page. From 1 to 100.

**Outputs**

- `data` (object): The response from Customerly.

**Example output**

```json
{
  "data": {
    "conversations": [
      {
        "conversation_id": 301,
        "conversation_url": "https://app.customerly.io/conversations/301",
        "created_at": 1767355200,
        "is_escalated": false,
        "is_open": true,
        "origin_channel": "email"
      }
    ],
    "cursor": null
  }
}
```
