# Convoso

> Add, update, find and delete Convoso leads, manage lead lists and callbacks, keep the Do Not Call list, turn campaigns on or off, and read call logs, users and lead statuses.

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

## Actions

### Add lead

Add a lead to a list, optionally checking for duplicates and the Do Not Call list first, or update the lead if it already exists.

**Inputs**

- List (`list_id`, number, required): The lead list.
- Phone number (`phone_number`, text, required): The lead's main phone number.
- Country code (`phone_code`, text): The country calling code. Defaults to 1.
- First name (`first_name`, text): The lead's first name.
- Last name (`last_name`, text): The lead's last name.
- Email (`email`, text): The lead's email.
- Cell phone (`alt_phone_1`, text): The lead's cell phone.
- Work phone (`alt_phone_2`, text): The lead's work phone.
- Address line 1 (`address1`, text): The lead's address line 1.
- Address line 2 (`address2`, text): The lead's address line 2.
- City (`city`, text): The lead's city.
- State (`state`, text): The lead's state.
- Province (`province`, text): The lead's province.
- Postal code (`postal_code`, text): The lead's postal code.
- Country (`country`, text): The lead's country.
- Status (`status`, text): The lead's status code, such as NEW.
- Date of birth (`date_of_birth`, date): The lead's date of birth.
- Owner ID (`owner_id`, text): The ID of the user who owns the lead.
- Custom fields (`custom_fields`, object): Your account's own lead fields, such as {"policy_type": "Auto"}.
- Check duplicates in (`check_duplicates`, text): Refuse a lead whose number is already in this scope. One of: `1` (The whole account), `2` (This list), `3` (This lead's campaign), `5` (Campaigns with the same purpose).
- Check Do Not Call (`check_dnc`, true/false): Refuse a number on the Do Not Call list.
- Update if found (`update_if_found`, true/false): Update the lead if its number is already in Convoso.
- Dial now (`hopper`, true/false): Put it in the hopper to be dialed now.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "lead_id": 1
  }
}
```

### Add to Do Not Call list

Add a phone number to the global Do Not Call list or a campaign's.

**Inputs**

- Phone number (`phone_number`, text, required): The phone number, digits only.
- Country code (`phone_code`, text, required): The country calling code, such as 1.
- List (`dnc_campaign_id`, number, required): The campaign whose list to add it to, or 0 for the global list.
- Reason (`reason`, text): Why it is on the list.
- Purpose (`purpose`, text): The purpose it is blocked for.

**Outputs**

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

**Example output**

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

### Create list

Create a lead list in a campaign.

**Inputs**

- Name (`name`, text, required): The list's name, at least 10 characters.
- Campaign (`campaign_id`, number, required): The campaign.
- Description (`description`, text): What the list is for, up to 255 characters.
- Status (`list_status`, text): Active or inactive. Defaults to active. One of: `1` (Active), `0` (Inactive).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list_id": 1
  }
}
```

### Delete callback

Delete a scheduled callback.

**Inputs**

- Callback ID (`callback_id`, text, required): The callback's ID.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete lead

Delete a lead.

**Inputs**

- Lead ID (`lead_id`, number, required): The lead's ID, from Search leads or an earlier step.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Delete list

Delete a lead list.

**Inputs**

- List (`list_id`, number, required): The lead list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### List campaigns

List the campaigns, whether each is active and when it last called.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaigns": [
      {
        "id": 1,
        "last_call_date": {
          "date": "example",
          "timezone": "example"
        },
        "name": "example",
        "status": "example"
      }
    ]
  }
}
```

### Remove from Do Not Call list

Take a phone number off the global Do Not Call list or a campaign's.

**Inputs**

- Phone number (`phone_number`, text, required): The phone number, digits only.
- Country code (`phone_code`, text, required): The country calling code, such as 1.
- List (`dnc_campaign_id`, number, required): The campaign whose list to take it off, or 0 for the global list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Schedule callback

Schedule a callback for a lead, for anyone or for one agent.

**Inputs**

- Lead ID (`lead_id`, number, required): The lead's ID, from Search leads or an earlier step.
- Call back at (`callback_time`, date and time, required): When to call back.
- Who calls back (`recipient`, text, required): Who calls back: anyone (system) or the assigned agent (personal). One of: `system` (Anyone (system)), `personal` (The assigned agent).
- Agent ID (`agent_id`, number): The ID of the agent to call back, for a personal callback.
- Notes (`comments`, text): Notes for the callback.

**Outputs**

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

**Example output**

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

### Search call logs

Find calls by time, campaign, list, lead, agent, status, type or number, newest first, with their recordings if asked.

**Inputs**

- From (`start_time`, date and time): Only calls from this time.
- To (`end_time`, date and time): Only calls to this time.
- Campaign (`campaign_id`, number): The campaign.
- List (`list_id`, number): The lead list.
- Lead ID (`lead_id`, number): The lead's ID, from Search leads or an earlier step.
- Agent ID (`agent_id`, number): Only this agent's calls, by ID.
- Status (`status`, text): Only calls with this status code, such as HU.
- Phone number (`phone_number`, text): Only calls with this phone number.
- Type (`call_type`, text): Only inbound or outbound calls. One of: `INBOUND`, `OUTBOUND`.
- Include recordings (`include_recordings`, true/false): Include each call's recording links.
- Order (`order`, text): Newest or oldest first. Newest unless chosen. One of: `desc` (Newest first), `asc` (Oldest first).
- How many (`limit`, number): How many to return. At least 1.
- Skip (`offset`, number): How many to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "limit": 1,
    "offset": 1,
    "results": [
      {
        "agent_comment": "example",
        "call_date": "example",
        "call_length": "example",
        "call_type": "example",
        "called_count": "example",
        "caller_id_displayed": "example",
        "campaign": "example",
        "campaign_id": "example",
        "first_name": "example",
        "id": "example",
        "last_name": "example",
        "lead_id": "example",
        "list_id": "example",
        "number_dialed": "example",
        "phone_number": "example",
        "recording": [
          {
            "filename": "example",
            "public_url": "example",
            "recording_id": "example"
          }
        ],
        "status": "example",
        "status_name": "example",
        "term_reason": "example",
        "user": "example",
        "user_id": "example"
      }
    ],
    "total_found": "example"
  }
}
```

### Search callbacks

Find scheduled callbacks by day, campaign, list, lead, agent or stage.

**Inputs**

- From (`start_date`, date): Only callbacks from this day.
- To (`end_date`, date): Only callbacks to this day.
- Campaign (`campaign_id`, number): The campaign.
- Lead ID (`lead_id`, number): The lead's ID, from Search leads or an earlier step.
- Agent ID (`agent_id`, number): Only this agent's, by ID.
- Stage (`stage`, text): Only callbacks at this stage. One of: `PENDING`, `DISMISSED`, `COMPLETED`, `MISSED`, `PASTDUE` (Past due).
- How many (`limit`, number): How many to return. Convoso's default is 20. At least 1.
- Skip (`offset`, number): How many to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "limit": "example",
    "offset": "example",
    "results": [
      {
        "callback_time": "example",
        "campaign_id": "example",
        "campaign_name": "example",
        "comments": "example",
        "created_at": "example",
        "id": "example",
        "lead_id": "example",
        "list_id": "example",
        "modified_at": "example",
        "recipient": "example",
        "stage": "example",
        "status": "example",
        "user": "example",
        "user_name": "example"
      }
    ],
    "total": "example"
  }
}
```

### Search Do Not Call list

Find numbers on the Do Not Call lists, such as to check one number.

**Inputs**

- Phone number (`phone_number`, text): The phone number, digits only.
- Country code (`phone_code`, text): The country calling code, such as 1.
- List (`dnc_campaign_id`, number): Only this campaign's list, or 0 for the global list.
- Added on (`insert_date`, date): Only numbers added on this day.
- How many (`limit`, number): How many to return, up to 1000. Convoso's default is 100. From 1 to 1000.
- Skip (`offset`, number): How many to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "campaign_id": "example",
        "id": "example",
        "insert_date": "example",
        "phone_code": "example",
        "phone_number": "example",
        "purpose": "example",
        "reason": "example"
      }
    ],
    "limit": 1,
    "offset": 1,
    "total": 1
  }
}
```

### Search lead statuses

Find lead statuses by code or description, such as NEW.

**Inputs**

- Search (`query`, text, required): A status code or words in its description.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "statuses": [
      {
        "callback": "example",
        "contact": "example",
        "custom_status": "example",
        "dnc": "example",
        "final": "example",
        "name": "example",
        "reached": "example",
        "status": "example",
        "success": "example",
        "voicemail": "example"
      }
    ]
  }
}
```

### Search leads

Find leads by list, status, name, phone, email, owner or when they were created or updated.

**Inputs**

- Lead ID (`lead_id`, number): The lead's ID, from Search leads or an earlier step.
- List (`list_id`, number): The lead list.
- Status (`status`, text): Only leads with this status.
- First name (`first_name`, text): Only leads with this first name.
- Last name (`last_name`, text): Only leads with this last name.
- Phone number (`phone_number`, text): Only leads with this phone number.
- Email (`email`, text): Only leads with this email address.
- Owner ID (`owner_id`, text): Only leads the user with this ID owns.
- Created from (`created_at_start_date`, date): Only leads created on or after this day.
- Created to (`created_at_end_date`, date): Only leads created on or before this day.
- Updated from (`updated_at_start_date`, date): Only leads updated on or after this day.
- Updated to (`updated_at_end_date`, date): Only leads updated on or before this day.
- How many (`limit`, number): How many to return, up to 2000. Convoso's default is 10. From 1 to 2000.
- Skip (`offset`, number): How many to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "entries": [
      {
        "address1": "example",
        "address2": "example",
        "alt_phone_1": "example",
        "alt_phone_2": "example",
        "called_count": "example",
        "campaign_name": "example",
        "campaign_uid": "example",
        "carrier_name": "example",
        "carrier_type": "example",
        "city": "example",
        "country": "example",
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "id": "example",
        "last_called": "example",
        "last_name": "example",
        "lead_id": "example",
        "list_id": "example",
        "modified_at": "example",
        "owner_id": "example",
        "owner_name": "example",
        "phone_code": "example",
        "phone_number": "example",
        "postal_code": "example",
        "province": "example",
        "state": "example",
        "status": "example",
        "status_name": "example",
        "updated_at": "example"
      }
    ],
    "limit": "example",
    "offset": "example",
    "total": "example"
  }
}
```

### Search lists

List the active or inactive lead lists, optionally in one campaign.

**Inputs**

- Status (`list_status`, text, required): Active or inactive lists. One of: `1` (Active), `0` (Inactive).
- Campaign (`campaign_id`, number): The campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "lists": [
      {
        "id": 1,
        "last_called_at": "example",
        "name": "example",
        "status": "example"
      }
    ]
  }
}
```

### Search users

Find users (agents and admins) by email address.

**Inputs**

- Users (`user`, text, required): Users' email addresses, separated by commas.
- How many (`limit`, number): How many to return. Convoso's default is 20. At least 1.
- Skip (`offset`, number): How many to skip. At least 0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "offset": 1,
    "total": "example",
    "users": [
      {
        "connection_type": "example",
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "id": 1,
        "last_login": "example",
        "last_name": "example",
        "local_gmt": "example",
        "status": "example",
        "user_level": 1
      }
    ]
  }
}
```

### Turn campaign on or off

Activate or deactivate a campaign.

**Inputs**

- Campaign (`campaign_id`, number, required): The campaign.
- Active (`active`, true/false, required): On to activate the campaign, off to deactivate it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Update call log

Write your own values into a call log's two extra fields.

**Inputs**

- Call log ID (`call_log_id`, text, required): The call log's ID.
- Extra field 1 (`extra_field_01`, text): The value for extra field 1.
- Extra field 2 (`extra_field_02`, text): The value for extra field 2.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "success": true
  }
}
```

### Update callback

Move a callback, reassign it, change its notes or dismiss it.

**Inputs**

- Callback ID (`callback_id`, text, required): The callback's ID, from Search callbacks.
- Call back at (`callback_time`, date and time): When to call back instead.
- Who calls back (`recipient`, text): Who calls back: anyone (system) or the assigned agent (personal). One of: `system` (Anyone (system)), `personal` (The assigned agent).
- Agent ID (`agent_id`, number): The ID of the agent to call back.
- Notes (`comments`, text): Notes for the callback.
- Status (`callback_status`, text): Set to dismissed to dismiss the callback. One of: `dismissed`.

**Outputs**

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

**Example output**

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

### Update lead

Change a lead's details, status or list. Fields left empty are kept.

**Inputs**

- Lead ID (`lead_id`, number, required): The lead's ID, from Search leads or an earlier step.
- List (`list_id`, number): The lead list.
- Phone number (`phone_number`, text): The lead's main phone number.
- Country code (`phone_code`, text): The country calling code. Defaults to 1.
- First name (`first_name`, text): The lead's first name.
- Last name (`last_name`, text): The lead's last name.
- Email (`email`, text): The lead's email.
- Cell phone (`alt_phone_1`, text): The lead's cell phone.
- Work phone (`alt_phone_2`, text): The lead's work phone.
- Address line 1 (`address1`, text): The lead's address line 1.
- Address line 2 (`address2`, text): The lead's address line 2.
- City (`city`, text): The lead's city.
- State (`state`, text): The lead's state.
- Province (`province`, text): The lead's province.
- Postal code (`postal_code`, text): The lead's postal code.
- Country (`country`, text): The lead's country.
- Status (`status`, text): The lead's status code, such as NEW.
- Date of birth (`date_of_birth`, date): The lead's date of birth.
- Owner ID (`owner_id`, text): The ID of the user who owns the lead.
- Custom fields (`custom_fields`, object): Your account's own lead fields, such as {"policy_type": "Auto"}.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "lead_id": 1
  }
}
```

### Update list

Rename a lead list, move it to another campaign, or turn it on or off.

**Inputs**

- List (`list_id`, number, required): The lead list.
- Name (`name`, text): A new name, at least 10 characters.
- Campaign (`campaign_id`, number): The campaign.
- Description (`description`, text): A new description, up to 255 characters.
- Status (`list_status`, text): Active or inactive. One of: `1` (Active), `0` (Inactive).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "list_id": 1
  }
}
```
