# Richpanel

> Create and answer conversations, tag them, and manage tasks in Richpanel.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/richpanel

## Actions

### Add private note

Add a note on a conversation that only agents can see.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Note (`body`, text, required): The note's text.
- From agent (`author_id`, text): The agent it comes from. Leave empty to send it as the API.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Add tags to conversation

Put tags on a conversation. Tags it already has are left as they are.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Tags (`tags`, list, required): The tags to add.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ticket": {
      "assignee_id": "example",
      "closed_at": "example",
      "comments": [
        {
          "attachments": [
            "example"
          ],
          "author_id": "example",
          "body": "example",
          "created_at": "example",
          "id": "example",
          "plain_body": "example",
          "public": true,
          "sender_type": "example",
          "type": "example"
        }
      ],
      "conversation_no": 1,
      "created_at": "example",
      "customer_profile": {
        "email": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      },
      "first_response_time": "example",
      "id": "example",
      "priority": "example",
      "recipient": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "url": "example",
      "via": {
        "channel": "example",
        "source": {}
      }
    }
  }
}
```

### Add task comment

Add a comment to a task, and mention agents to let them know.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, as a Create task or List tasks step returns it.
- Comment (`message`, text, required): The comment, up to 10,000 characters.
- Mention (`mentions`, list): Agents to mention and notify.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "comment_id": "example",
    "created_at": "example",
    "created_by": "example",
    "mentions": [
      "example"
    ],
    "message": "example",
    "task_id": "example",
    "type": "example",
    "updated_at": "example"
  }
}
```

### Create conversation

Start an email conversation in Richpanel, as if the customer had written in, or as a message from your team.

**Inputs**

- Subject (`subject`, text): The conversation's subject. Leave empty for (No Subject).
- Message (`message`, text, required): The first message of the conversation.
- Sent by (`sender_type`, text): Who the first message is from: the customer, or your team (operator). One of: `customer`, `operator`. Default: `customer`.
- Customer email (`customer_email`, text, required): The customer's email address.
- Support email (`support_email`, text, required): Your support address the conversation is with, as connected in Richpanel.
- Customer first name (`customer_first_name`, text): The customer's first name.
- Customer last name (`customer_last_name`, text): The customer's last name.
- Status (`status`, text): Open, or already closed. Leave empty for open. One of: `OPEN`, `CLOSED`. Default: `OPEN`.
- Priority (`priority`, text): How urgent the conversation is. One of: `LOW`, `HIGH`.
- Assignee (`assignee_id`, text): The agent to assign the conversation to.
- Tags (`tags`, list): Tags to put on the conversation.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ticket": {
      "assignee_id": "example",
      "closed_at": "example",
      "comments": [
        {
          "attachments": [
            "example"
          ],
          "author_id": "example",
          "body": "example",
          "created_at": "example",
          "id": "example",
          "plain_body": "example",
          "public": true,
          "sender_type": "example",
          "type": "example"
        }
      ],
      "conversation_no": 1,
      "created_at": "example",
      "customer_profile": {
        "email": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      },
      "first_response_time": "example",
      "id": "example",
      "priority": "example",
      "recipient": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "url": "example",
      "via": {
        "channel": "example",
        "source": {}
      }
    }
  }
}
```

### Create or update customer

Add a customer to Richpanel, or update the one with the same email address.

**Inputs**

- Email (`email`, text, required): The customer's email address.
- Name (`name`, text): The customer's full name.
- Phone (`phone`, text): The customer's phone number.
- City (`city`, text): City.
- State (`state`, text): State or region.
- Country (`country`, text): Country.
- Your customer ID (`uid`, text): Your own ID for the customer, such as the one in your store.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "customer": {
      "id": "example",
      "uid": "example"
    },
    "message": "example"
  }
}
```

### Create tag

Create a tag. Richpanel writes its name in lowercase with hyphens.

**Inputs**

- Name (`name`, text, required): The tag's name.
- Description (`description`, text): What the tag is for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "id": "example"
  }
}
```

### Create task

Create a task on a conversation.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation the task is for.
- Title (`title`, text, required): What needs doing, up to 500 characters.
- Description (`description`, text): More detail about the task.
- Assignee (`assignee`, text): The agent the task is assigned to.
- Due (`due_date`, date and time): When the task is due.
- Priority (`priority`, text): How urgent the task is. One of: `LOW`, `HIGH`.
- Status (`status`, text): Where the task stands. One of: `OPEN`, `INPROGRESS`, `CLOSED`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assignee": "example",
    "comment_count": 1,
    "completed_at": "example",
    "conversation_id": "example",
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "due_date": "example",
    "priority": "example",
    "status": "example",
    "task_id": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### Delete task

Delete a task.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, as a Create task or List tasks step returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "message": "example",
    "success": true
  }
}
```

### Find customer

Find a customer by email address or phone number.

**Inputs**

- Find by (`lookup_by`, text, required): Whether to find the customer by email address or by phone number. One of: `email`, `phone`.
- Email or phone (`email_or_phone`, text, required): The customer's email address or phone number.

**Outputs**

- `data` (list): The response from Richpanel.

**Example output**

```json
{
  "data": [
    {
      "city": "example",
      "country": "example",
      "email": "example",
      "firstName": "example",
      "id": "example",
      "lastName": "example",
      "phone": "example",
      "state": "example"
    }
  ]
}
```

### Find customer's conversations

Find the conversations of the customer with an email address or phone number.

**Inputs**

- Find by (`lookup_by`, text, required): Whether to find the customer by email address or by phone number. One of: `email`, `phone`.
- Email or phone (`email_or_phone`, text, required): The customer's email address or phone number.

**Outputs**

- `data` (list): The response from Richpanel.

**Example output**

```json
{
  "data": [
    {
      "assignee": "example",
      "createdAt": "example",
      "customerEmail": "example",
      "customerName": "example",
      "id": "example",
      "updatedAt": "example"
    }
  ]
}
```

### Get agent

Get one agent.

**Inputs**

- Agent (`agent_id`, text, required): The agent.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "user": {
      "created_at": "example",
      "id": "example",
      "name": "example",
      "updated_at": "example"
    }
  }
}
```

### Get conversation

Get a conversation with its messages.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Include private notes (`include_private_notes`, true/false): Include the agents' private notes with the messages.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ticket": {
      "assignee_id": "example",
      "closed_at": "example",
      "comments": [
        {
          "attachments": [
            "example"
          ],
          "author_id": "example",
          "body": "example",
          "created_at": "example",
          "id": "example",
          "plain_body": "example",
          "public": true,
          "sender_type": "example",
          "type": "example"
        }
      ],
      "conversation_no": 1,
      "created_at": "example",
      "customer_profile": {
        "email": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      },
      "first_response_time": "example",
      "id": "example",
      "priority": "example",
      "recipient": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "url": "example",
      "via": {
        "channel": "example",
        "source": {}
      }
    }
  }
}
```

### Get conversation by number

Get a conversation by the number Richpanel shows for it, such as 10556. It may not find conversations imported from another help desk.

**Inputs**

- Conversation number (`conversation_number`, number, required): The conversation's number. At least 1.
- Include private notes (`include_private_notes`, true/false): Include the agents' private notes with the messages.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ticket": {
      "assignee_id": "example",
      "closed_at": "example",
      "comments": [
        {
          "attachments": [
            "example"
          ],
          "author_id": "example",
          "body": "example",
          "created_at": "example",
          "id": "example",
          "plain_body": "example",
          "public": true,
          "sender_type": "example",
          "type": "example"
        }
      ],
      "conversation_no": 1,
      "created_at": "example",
      "customer_profile": {
        "email": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      },
      "first_response_time": "example",
      "id": "example",
      "priority": "example",
      "recipient": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "url": "example",
      "via": {
        "channel": "example",
        "source": {}
      }
    }
  }
}
```

### Get task

Get one task.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, as a Create task or List tasks step returns it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assignee": "example",
    "comment_count": 1,
    "completed_at": "example",
    "conversation_id": "example",
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "due_date": "example",
    "priority": "example",
    "status": "example",
    "task_id": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### List agents

List the agents in your Richpanel account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "users": [
      {
        "created_at": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List channels

List the channels connected to Richpanel, such as email, chat and social accounts.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "channels": [
      {
        "business_brand_name": "example",
        "created_at": "example",
        "id": "example",
        "type": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List conversation's tasks

List the tasks on one conversation.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Assignee (`assignee`, text): Only tasks assigned to this agent.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Results per page (`limit`, number): How many to read per page, up to 100. Leave empty for 20. From 1 to 100.
- Sort by (`sort_by`, text): Which date to order by. One of: `created_at` (Created at), `updated_at` (Updated at), `due_date` (Due date).
- Order (`sort_order`, text): Newest first (desc) or oldest first (asc). One of: `desc`, `asc`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "has_next": true,
      "has_prev": true,
      "limit": 1,
      "page": 1,
      "total": 1,
      "total_pages": 1
    },
    "tasks": [
      {
        "assignee": "example",
        "comment_count": 1,
        "completed_at": "example",
        "conversation_id": "example",
        "created_at": "example",
        "created_by": "example",
        "description": "example",
        "due_date": "example",
        "priority": "example",
        "status": "example",
        "task_id": "example",
        "title": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List tags

List the tags you can put on conversations.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "tag": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List task comments

List the comments and activity on a task.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, as a Create task or List tasks step returns it.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Results per page (`limit`, number): How many to read per page, up to 100. Leave empty for 20. From 1 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "comment_id": "example",
        "created_at": "example",
        "created_by": "example",
        "mentions": [
          "example"
        ],
        "message": "example",
        "task_id": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "has_next": true,
      "has_prev": true,
      "limit": 1,
      "page": 1,
      "total": 1,
      "total_pages": 1
    }
  }
}
```

### List tasks

List tasks, filtered by status, priority, assignee or conversation.

**Inputs**

- Status (`status`, text): Only tasks with this status. Leave empty for open tasks; choose all for every status. One of: `OPEN`, `INPROGRESS`, `CLOSED`, `all`.
- Priority (`priority`, text): Only tasks with this priority. One of: `LOW`, `HIGH`, `all`.
- Assignee (`assignee`, text): Only tasks assigned to this agent.
- Conversation ID (`conversation_id`, text): Only tasks on this conversation.
- Search (`search`, text): Only tasks whose title or description contains these words.
- Overdue only (`overdue`, true/false): On for overdue tasks only.
- Due from (`due_date_from`, date and time): Only tasks due on or after this time.
- Due until (`due_date_to`, date and time): Only tasks due on or before this time.
- Page (`page`, number): Which page to read, starting at 1. At least 1.
- Results per page (`limit`, number): How many to read per page, up to 100. Leave empty for 20. From 1 to 100.
- Sort by (`sort_by`, text): Which date to order by. One of: `created_at` (Created at), `updated_at` (Updated at), `due_date` (Due date).
- Order (`sort_order`, text): Newest first (desc) or oldest first (asc). One of: `desc`, `asc`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "pagination": {
      "has_next": true,
      "has_prev": true,
      "limit": 1,
      "page": 1,
      "total": 1,
      "total_pages": 1
    },
    "tasks": [
      {
        "assignee": "example",
        "comment_count": 1,
        "completed_at": "example",
        "conversation_id": "example",
        "created_at": "example",
        "created_by": "example",
        "description": "example",
        "due_date": "example",
        "priority": "example",
        "status": "example",
        "task_id": "example",
        "title": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### List teams

List the teams in your Richpanel account.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "team": [
      {
        "created_at": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      }
    ]
  }
}
```

### Remove tags from conversation

Take tags off a conversation.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Tags (`tags`, list, required): The tags to remove.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "ticket": {
      "assignee_id": "example",
      "closed_at": "example",
      "comments": [
        {
          "attachments": [
            "example"
          ],
          "author_id": "example",
          "body": "example",
          "created_at": "example",
          "id": "example",
          "plain_body": "example",
          "public": true,
          "sender_type": "example",
          "type": "example"
        }
      ],
      "conversation_no": 1,
      "created_at": "example",
      "customer_profile": {
        "email": "example",
        "id": "example",
        "name": "example",
        "type": "example"
      },
      "first_response_time": "example",
      "id": "example",
      "priority": "example",
      "recipient": "example",
      "status": "example",
      "subject": "example",
      "tags": [
        "example"
      ],
      "updated_at": "example",
      "url": "example",
      "via": {
        "channel": "example",
        "source": {}
      }
    }
  }
}
```

### Reply to conversation

Send a reply to the customer on a conversation, from an agent.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Message (`body`, text, required): The reply to send.
- From agent (`author_id`, text): The agent it comes from. Leave empty to send it as the API.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update conversation

Close or reopen a conversation, change its priority, or assign it. Only the fields you fill in are changed.

**Inputs**

- Conversation ID (`conversation_id`, text, required): The conversation's ID, as a Create conversation or Get conversation step returns it.
- Status (`status`, text): Open or close the conversation. One of: `OPEN`, `CLOSED`.
- Priority (`priority`, text): How urgent the conversation is. One of: `LOW`, `HIGH`.
- Assignee (`assignee_id`, text): The agent to assign the conversation to.
- Send satisfaction survey (`send_csat`, true/false): When closing, send the customer the satisfaction survey.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Update task

Change a task, or close it. Only the fields you fill in are changed.

**Inputs**

- Task ID (`task_id`, text, required): The task's ID, as a Create task or List tasks step returns it.
- Title (`title`, text): What needs doing, up to 500 characters.
- Description (`description`, text): More detail about the task.
- Assignee (`assignee`, text): The agent the task is assigned to.
- Due (`due_date`, date and time): When the task is due.
- Priority (`priority`, text): How urgent the task is. One of: `LOW`, `HIGH`.
- Status (`status`, text): Where the task stands. One of: `OPEN`, `INPROGRESS`, `CLOSED`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "assignee": "example",
    "comment_count": 1,
    "completed_at": "example",
    "conversation_id": "example",
    "created_at": "example",
    "created_by": "example",
    "description": "example",
    "due_date": "example",
    "priority": "example",
    "status": "example",
    "task_id": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```
