# HelpCanvas

> Work your HelpCanvas inbox and customers: find, start, reply to, sort and close conversations.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/helpcanvas

## Actions

### Add customer note

Add a note to a customer's page that only your team sees.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID.
- Note (`body_text`, text, required): The note's text.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        "email"
      ],
      "company_id": 40,
      "created_at": 1764590400000,
      "custom_fields": {},
      "domain": "example.com",
      "email": "peter.hale@example.com",
      "id": 912,
      "kind": "person",
      "last_contact_at": 1764594000000,
      "locale": "en",
      "name": "Peter Hale",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ],
      "timezone": "America/New_York"
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Assign conversation

Assign a conversation to a team member, or leave the member empty to unassign it.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Team member ID (`agent_id`, number): The team member to assign it to. Leave empty to unassign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Count customer's conversations

Count a customer's open and total conversations; a company's include its people's.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID, from Search customers.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "open": 1,
      "total": 7
    }
  }
}
```

### Create customer

Add a person or a company to your customers.

**Inputs**

- Name (`name`, text, required): The person's or company's name.
- Type (`type_of`, text, required): Whether this is a person or a company. One of: `person`, `company`.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Domain (`domain`, text): A company's web domain, such as example.com.
- Company ID (`company_id`, number): For a person, the company they belong to.
- Tags (`tags`, list): Tags to give them.
- Language (`locale`, text): Their language code, such as en.
- Time zone (`timezone`, text): Their time zone, such as America/New_York.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        "email"
      ],
      "company_id": 40,
      "created_at": 1764590400000,
      "custom_fields": {},
      "domain": "example.com",
      "email": "peter.hale@example.com",
      "id": 912,
      "kind": "person",
      "last_contact_at": 1764594000000,
      "locale": "en",
      "name": "Peter Hale",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ],
      "timezone": "America/New_York"
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Delete conversation

Delete a conversation for good.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "mutation_id": "mut_8f2c"
  }
}
```

### Delete customer

Delete a customer and all their conversations for good. Only owners and admins can.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "mutation_id": "mut_8f2c"
  }
}
```

### Get conversation

Get one conversation with every message.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID, from List conversations.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    }
  }
}
```

### Get customer

Get one customer with the team's notes.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID, from Search customers.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        "email"
      ],
      "company_id": 40,
      "created_at": 1764590400000,
      "custom_fields": {},
      "domain": "example.com",
      "email": "peter.hale@example.com",
      "id": 912,
      "kind": "person",
      "last_contact_at": 1764594000000,
      "locale": "en",
      "name": "Peter Hale",
      "notes": [
        {
          "body": "Prefers email.",
          "created_at": 1764590400000,
          "id": 1
        }
      ],
      "phone": "+15555550123",
      "tags": [
        "vip"
      ],
      "timezone": "America/New_York"
    }
  }
}
```

### Get plan and usage

Get the workspace's plan, its features and how much of it is used.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "features": {},
      "plan": "pro",
      "plan_source": "paid",
      "usage": {}
    }
  }
}
```

### List conversations

List one page of conversations, filtered and sorted as you choose.

**Inputs**

- View (`view`, text): Show one of the inbox's views. Leave empty for all. One of: `mine`, `unassigned`, `all_open` (All open), `waiting_us` (Waiting on us), `live_chats` (Live chats), `ai` (Handled by AI), `needs_review` (Needs review), `snoozed`, `resolved`.
- Status (`status`, list): Only conversations with one of these statuses. One or more of: `open`, `waiting_customer` (Waiting on customer), `waiting_us` (Waiting on us), `snoozed`, `resolved`, `closed`.
- Channel (`channel`, list): Only conversations from one of these channels. One or more of: `email`, `chat` (Live chat), `intake` (Request form), `whatsapp`, `messenger`, `telegram`, `ai` (AI assistant).
- Priority (`priority`, list): Only conversations with one of these priorities. One or more of: `urgent`, `high`, `medium`, `low`.
- Assigned to (`assignee`, text): me, none, or a team member's ID.
- Team (`team`, text): none, or a team's ID.
- Customer ID (`customer_id`, number): Only this customer's conversations.
- Search (`q`, text): Words to find in the subject, number, customer, tags or messages.
- Started on or after (`since`, date and time): Only conversations started at or after this time.
- Sort by (`sort`, text): The order. Leave empty for latest activity first. One of: `activity` (Latest activity), `newest`, `oldest`, `number`.
- Direction (`dir`, text): Ascending or descending. One of: `desc` (Descending), `asc` (Ascending).
- Page size (`limit`, number): How many conversations a page holds, up to 100. From 1 to 100.
- Next page (`cursor`, text): The next_cursor from the page before, to read the page after it.
- Whole conversations (`full`, text): Whether pages after the first carry every message. Leave empty for short rows. One of: `0` (Short rows), `1` (Whole conversations).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "conversations": [
        {
          "assignee_id": 12,
          "channel": "email",
          "created_at": 1764590400000,
          "customer_id": 912,
          "handled_by": "human",
          "id": 4821,
          "last_activity_at": 1764594000000,
          "messages": [
            {
              "author_id": 12,
              "body": "Exports over 2,000 rows stop after a minute.",
              "created_at": 1764590400000,
              "id": "m_1",
              "type": "customer"
            }
          ],
          "number": 4821,
          "priority": "high",
          "project_id": 3,
          "resolved_at": 1764597600000,
          "status": "open",
          "subject": "Export to CSV times out",
          "tags": [
            "billing"
          ],
          "team_id": 2,
          "unread": false
        }
      ],
      "next_cursor": "eyJpZCI6NDgyMX0",
      "total": 1
    }
  }
}
```

### List customer's older conversations

List a customer's conversations from before the last 95 days.

**Inputs**

- Customer ID (`customer_id`, number, required): The customer, from Search customers. A company's include its people's.
- Limit (`limit`, number): How many conversations to return, up to 100. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignee_id": 12,
        "channel": "email",
        "created_at": 1764590400000,
        "customer_id": 912,
        "handled_by": "human",
        "id": 4821,
        "last_activity_at": 1764594000000,
        "messages": [
          {
            "author_id": 12,
            "body": "Exports over 2,000 rows stop after a minute.",
            "created_at": 1764590400000,
            "id": "m_1",
            "type": "customer"
          }
        ],
        "number": 4821,
        "priority": "high",
        "project_id": 3,
        "resolved_at": 1764597600000,
        "status": "open",
        "subject": "Export to CSV times out",
        "tags": [
          "billing"
        ],
        "team_id": 2,
        "unread": false
      }
    ]
  }
}
```

### Move conversation to team

Move a conversation to a team, or leave the team empty to take it off its team.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Team ID (`team`, number): The team to move it to. Leave empty for no team.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Reply or add note

Reply to the customer, or add an internal note, in a conversation.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Kind (`type`, text, required): A reply goes to the customer; a note only your team sees. One of: `agent` (Reply), `note` (Internal note).
- Message (`body_text`, text, required): The text.
- Cc (`cc`, list): Up to 5 addresses to copy on an emailed reply.
- Bcc (`bcc`, list): Up to 5 addresses to blind-copy on an emailed reply.
- Send at (`send_at`, date and time): Send the reply later, at this time. Leave empty to send now.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Search customers

Find people and companies by name, email or domain.

**Inputs**

- Search (`q`, text): A name, email address or domain to look for.
- Limit (`limit`, number): How many customers to return. At least 1.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "channels": [
          "email"
        ],
        "company_id": 40,
        "created_at": 1764590400000,
        "custom_fields": {},
        "domain": "example.com",
        "email": "peter.hale@example.com",
        "id": 912,
        "kind": "person",
        "last_contact_at": 1764594000000,
        "locale": "en",
        "name": "Peter Hale",
        "phone": "+15555550123",
        "tags": [
          "vip"
        ],
        "timezone": "America/New_York"
      }
    ]
  }
}
```

### Set conversation priority

Change a conversation's priority.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Priority (`priority`, text, required): The new priority. One of: `urgent`, `high`, `medium`, `low`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Set conversation status

Change a conversation's status; to snooze one, use Snooze conversation.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Status (`status`, text, required): The new status. One of: `open`, `waiting_customer` (Waiting on customer), `waiting_us` (Waiting on us), `resolved`, `closed`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Set conversation tags

Replace a conversation's tags.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Tags (`tags`, list, required): The full list of tags. It replaces the current ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Set customer tags

Replace a customer's tags.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID.
- Tags (`tags`, list, required): The full list of tags. It replaces the current ones.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        "email"
      ],
      "company_id": 40,
      "created_at": 1764590400000,
      "custom_fields": {},
      "domain": "example.com",
      "email": "peter.hale@example.com",
      "id": 912,
      "kind": "person",
      "last_contact_at": 1764594000000,
      "locale": "en",
      "name": "Peter Hale",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ],
      "timezone": "America/New_York"
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Snooze conversation

Snooze a conversation until a time, when it opens again.

**Inputs**

- Conversation ID (`id`, number, required): The conversation's ID.
- Until (`until`, date and time, required): When it opens again.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Start conversation

Start a conversation with a customer; HelpCanvas sends nothing until you reply.

**Inputs**

- Customer ID (`customer_id`, number, required): The customer to start it with.
- Project ID (`project_id`, number, required): The project (website or business) it belongs to, as on its conversations.
- Channel (`channel`, text, required): The channel it runs on. One of: `email`, `chat` (Live chat), `intake` (Request form), `whatsapp`, `messenger`, `telegram`, `ai` (AI assistant).
- Subject (`subject`, text): Its subject.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "assignee_id": 12,
      "channel": "email",
      "created_at": 1764590400000,
      "customer_id": 912,
      "handled_by": "human",
      "id": 4821,
      "last_activity_at": 1764594000000,
      "messages": [
        {
          "author_id": 12,
          "body": "Exports over 2,000 rows stop after a minute.",
          "created_at": 1764590400000,
          "id": "m_1",
          "type": "customer"
        }
      ],
      "number": 4821,
      "priority": "high",
      "project_id": 3,
      "resolved_at": 1764597600000,
      "status": "open",
      "subject": "Export to CSV times out",
      "tags": [
        "billing"
      ],
      "team_id": 2,
      "unread": false
    },
    "mutation_id": "mut_8f2c"
  }
}
```

### Update customer

Change a customer's details.

**Inputs**

- Customer ID (`id`, number, required): The customer's ID.
- Name (`name`, text, required): Their name. Give it again even when it stays the same.
- Type (`type_of`, text, required): Whether this is a person or a company. Give it again even when it stays the same. One of: `person`, `company`.
- Email (`email`, text): Their email address.
- Phone (`phone`, text): Their phone number.
- Domain (`domain`, text): A company's web domain, such as example.com.
- Company ID (`company_id`, number): For a person, the company they belong to.
- Tags (`tags`, list): Tags to give them.
- Language (`locale`, text): Their language code, such as en.
- Time zone (`timezone`, text): Their time zone, such as America/New_York.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "channels": [
        "email"
      ],
      "company_id": 40,
      "created_at": 1764590400000,
      "custom_fields": {},
      "domain": "example.com",
      "email": "peter.hale@example.com",
      "id": 912,
      "kind": "person",
      "last_contact_at": 1764594000000,
      "locale": "en",
      "name": "Peter Hale",
      "phone": "+15555550123",
      "tags": [
        "vip"
      ],
      "timezone": "America/New_York"
    },
    "mutation_id": "mut_8f2c"
  }
}
```
