# Cluster

> Read campaign analytics and manage outbound campaigns and conversations.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/cluster

## Actions

### Add campaign leads

Add leads to a campaign. Existing leads are skipped.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.
- Leads (`leads`, list, required): Enter the leads to add. Each lead needs an email address or LinkedIn profile URL.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "added_count": 1,
    "enrolled_count": 1,
    "requested_count": 1,
    "skipped_duplicate_count": 1,
    "skipped_existing_count": 1,
    "skipped_unreachable_count": 1
  }
}
```

### Create draft campaign

Create a draft with a sequence and its allowed senders.

**Inputs**

- Idempotency key (`idempotency_key`, text): Use the same key when re-running the same operation. Leave it empty to create a new key.
- Name (`name`, text, required): Set the name.
- Sequence (`sequence`, object, required): Enter the complete draft sequence, including its steps in order.
- Linkedin sender IDS (`linkedin_sender_ids`, list): Select which connected LinkedIn senders are allowed for the campaign.
- Email sender IDS (`email_sender_ids`, list): Select which connected email senders are allowed for the campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_type": "example",
    "contact_count": 1,
    "created_at": "example",
    "delivery_mode": "example",
    "description": "example",
    "ends_at": "example",
    "finished_at": "example",
    "id": "example",
    "list_id": "example",
    "name": "example",
    "paused_at": "example",
    "paused_reason": {
      "code": "example",
      "message": "example"
    },
    "scheduled_at": "example",
    "started_at": "example",
    "stats": {
      "active_contact_count": 1,
      "completed_contact_count": 1,
      "connection_request_sent_count": 1,
      "email_sent_count": 1,
      "excluded_contact_count": 1,
      "failed_contact_count": 1,
      "like_post_sent_count": 1,
      "message_sent_count": 1,
      "profile_visit_sent_count": 1,
      "reply_count": 1
    },
    "status": "example",
    "updated_at": "example"
  }
}
```

### Get analytics options

Show the metrics and dimensions you can use in workspace reports.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "dimensions": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "metrics": [
      {
        "description": "example",
        "format": "example",
        "id": "example",
        "name": "example"
      }
    ],
    "options": {}
  }
}
```

### Get campaign

Read one campaign and its current status.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_type": "example",
    "contact_count": 1,
    "created_at": "example",
    "delivery_mode": "example",
    "description": "example",
    "ends_at": "example",
    "finished_at": "example",
    "id": "example",
    "list_id": "example",
    "name": "example",
    "paused_at": "example",
    "paused_reason": {
      "code": "example",
      "message": "example"
    },
    "scheduled_at": "example",
    "started_at": "example",
    "stats": {
      "active_contact_count": 1,
      "completed_contact_count": 1,
      "connection_request_sent_count": 1,
      "email_sent_count": 1,
      "excluded_contact_count": 1,
      "failed_contact_count": 1,
      "like_post_sent_count": 1,
      "message_sent_count": 1,
      "profile_visit_sent_count": 1,
      "reply_count": 1
    },
    "status": "example",
    "updated_at": "example"
  }
}
```

### Get campaign performance

Read a campaign’s sends, replies, and rates.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "channels": [
      "example"
    ],
    "daily_activity": [
      {
        "date": "example",
        "emails_sent": 1,
        "invitations_accepted": 1,
        "invitations_sent": 1,
        "messages_sent": 1
      }
    ],
    "performance": {
      "acceptance_rate": 1,
      "contacts_messaged": 1,
      "email_replies": 1,
      "email_reply_rate": 1,
      "emails_sent": 1,
      "invitations_accepted": 1,
      "invitations_sent": 1,
      "leads_contacted": 1,
      "linkedin_replies": 1,
      "linkedin_reply_rate": 1,
      "message_replies": 1,
      "message_reply_rate": 1,
      "messages_sent": 1,
      "replies": 1,
      "reply_rate": 1
    }
  }
}
```

### Get conversation

Read the conversation and a page of its messages.

**Inputs**

- Conversation (`conversation_id`, text, required): Choose a conversation.
- Limit (`limit`, number): Set the maximum records on this page. From 1 to 250.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "archived_at": "example",
    "contact": {
      "company": "example",
      "contact_id": "example",
      "email": "example",
      "full_name": "example",
      "linkedin_profile_url": "example",
      "title": "example"
    },
    "id": "example",
    "labels": [
      "example"
    ],
    "last_message": {
      "campaign_id": "example",
      "campaign_name": "example",
      "channel": "example",
      "classification_detail": "example",
      "conversation_id": "example",
      "delivery_status": "example",
      "direction": "example",
      "html": "example",
      "id": "example",
      "kind": "example",
      "response_classification": "example",
      "sent_at": "example",
      "subject": "example",
      "text": "example",
      "thread_id": "example"
    },
    "last_message_at": "example",
    "latest_response_classification": "example",
    "messages": [
      {
        "campaign_id": "example",
        "campaign_name": "example",
        "channel": "example",
        "classification_detail": "example",
        "conversation_id": "example",
        "delivery_status": "example",
        "direction": "example",
        "html": "example",
        "id": "example",
        "kind": "example",
        "response_classification": "example",
        "sent_at": "example",
        "subject": "example",
        "text": "example",
        "thread_id": "example"
      }
    ],
    "messages_next_cursor": "example",
    "participant_email": "example",
    "participant_linkedin_profile_url": "example",
    "participant_name": "example",
    "threads": [
      {
        "channel": "example",
        "id": "example",
        "is_replyable": true,
        "last_message_at": "example",
        "subject": "example"
      }
    ],
    "unread_count": 1
  }
}
```

### Get inbox placement test

Read the status and results of a placement test.

**Inputs**

- Test (`test_id`, text, required): Choose an inbox placement test.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "completed_at": "example",
    "created_at": "example",
    "credits_charged": 1,
    "id": "example",
    "name": "example",
    "sender_count": 1,
    "senders": [
      {
        "completed_at": "example",
        "email": "example",
        "providers": [
          {
            "groups": [
              {
                "inbox": 1,
                "label": "example",
                "missing": 1,
                "not_sent": 1,
                "other": 1,
                "pending": 1,
                "spam": 1
              }
            ],
            "inbox": 1,
            "missing": 1,
            "not_sent": 1,
            "other": 1,
            "pending": 1,
            "provider": "example",
            "spam": 1
          }
        ],
        "report": {
          "blocklists": [
            "example"
          ],
          "dkim_valid": true,
          "dmarc_valid": true,
          "score": 1,
          "spam_words": [
            "example"
          ],
          "spf_valid": true
        },
        "seeds_sent": 1,
        "seeds_total": 1,
        "sender_id": "example",
        "status": "example",
        "summary": {
          "inbox": 1,
          "inbox_rate": 1,
          "missing": 1,
          "missing_rate": 1,
          "not_sent": 1,
          "other": 1,
          "other_rate": 1,
          "pending": 1,
          "seeds": 1,
          "spam": 1,
          "spam_rate": 1
        }
      }
    ],
    "status": "example",
    "subject": "example",
    "summary": {
      "inbox": 1,
      "inbox_rate": 1,
      "missing": 1,
      "missing_rate": 1,
      "not_sent": 1,
      "other": 1,
      "other_rate": 1,
      "pending": 1,
      "seeds": 1,
      "spam": 1,
      "spam_rate": 1
    }
  }
}
```

### Launch draft campaign

Enroll the leads and start sending on the selected schedule.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.
- Idempotency key (`idempotency_key`, text): Use the same key when re-running the same operation. Leave it empty to create a new key.
- Send window mode (`send_window_mode`, text): Set the send window mode. One of: `next_send_window` (Next send window), `start_now` (Start now).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_type": "example",
    "contact_count": 1,
    "created_at": "example",
    "delivery_mode": "example",
    "description": "example",
    "ends_at": "example",
    "finished_at": "example",
    "id": "example",
    "list_id": "example",
    "name": "example",
    "paused_at": "example",
    "paused_reason": {
      "code": "example",
      "message": "example"
    },
    "scheduled_at": "example",
    "started_at": "example",
    "stats": {
      "active_contact_count": 1,
      "completed_contact_count": 1,
      "connection_request_sent_count": 1,
      "email_sent_count": 1,
      "excluded_contact_count": 1,
      "failed_contact_count": 1,
      "like_post_sent_count": 1,
      "message_sent_count": 1,
      "profile_visit_sent_count": 1,
      "reply_count": 1
    },
    "status": "example",
    "updated_at": "example"
  }
}
```

### List analytics records

Find the individual records counted by an analytics metric.

**Inputs**

- Limit (`limit`, number): Set the maximum records on this page. From 1 to 200.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.
- Start date (`start_date`, date, required): Choose the first day to include.
- End date (`end_date`, date, required): Choose the last day to include.
- Timezone (`timezone`, text): Set the timezone.
- Scope (`scope`, list): Set the scope.
- Metric (`metric`, text): Set the metric. One of: `leads_reached` (Leads reached), `replies`, `reply_rate` (Reply rate), `invitations_sent` (Invitations sent), `invitations_accepted` (Invitations accepted), `acceptance_rate` (Acceptance rate), `messages_sent` (Messages sent), `emails_sent` (Emails sent), `calls_made` (Calls made), `call_conversations` (Call conversations), and 6 more.
- Population (`population`, text): Set the population. One of: `numerator`, `denominator`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "campaign_id": "example",
        "classification": "example",
        "contact_id": "example",
        "conversation_id": "example",
        "dimensions": {},
        "id": "example",
        "kind": "example",
        "labels": {},
        "name": "example",
        "occurred_at": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List campaign leads

Show the leads already added to a campaign.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.
- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "company": "example",
        "company_domain": "example",
        "contact_id": "example",
        "custom_variables": {},
        "email": "example",
        "enrolled": true,
        "first_name": "example",
        "full_name": "example",
        "last_event_type": "example",
        "last_name": "example",
        "linkedin_profile_url": "example",
        "location": "example",
        "status": "example",
        "title": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List campaigns

Find workspace campaigns and filter by name or status.

**Inputs**

- Status (`status`, text): Set the status. One of: `draft`, `running`, `paused`, `archived`.
- Search (`search`, text): Set the search.
- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "campaign_type": "example",
        "contact_count": 1,
        "created_at": "example",
        "delivery_mode": "example",
        "description": "example",
        "ends_at": "example",
        "finished_at": "example",
        "id": "example",
        "list_id": "example",
        "name": "example",
        "paused_at": "example",
        "paused_reason": {
          "code": "example",
          "message": "example"
        },
        "scheduled_at": "example",
        "started_at": "example",
        "stats": {
          "active_contact_count": 1,
          "completed_contact_count": 1,
          "connection_request_sent_count": 1,
          "email_sent_count": 1,
          "excluded_contact_count": 1,
          "failed_contact_count": 1,
          "like_post_sent_count": 1,
          "message_sent_count": 1,
          "profile_visit_sent_count": 1,
          "reply_count": 1
        },
        "status": "example",
        "updated_at": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List conversations

Find recent conversations with people a campaign has reached.

**Inputs**

- Search (`search`, text): Set the search.
- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "archived_at": "example",
        "contact": {
          "company": "example",
          "contact_id": "example",
          "email": "example",
          "full_name": "example",
          "linkedin_profile_url": "example",
          "title": "example"
        },
        "id": "example",
        "labels": [
          "example"
        ],
        "last_message": {
          "campaign_id": "example",
          "campaign_name": "example",
          "channel": "example",
          "classification_detail": "example",
          "conversation_id": "example",
          "delivery_status": "example",
          "direction": "example",
          "html": "example",
          "id": "example",
          "kind": "example",
          "response_classification": "example",
          "sent_at": "example",
          "subject": "example",
          "text": "example",
          "thread_id": "example"
        },
        "last_message_at": "example",
        "latest_response_classification": "example",
        "participant_email": "example",
        "participant_linkedin_profile_url": "example",
        "participant_name": "example",
        "threads": [
          {
            "channel": "example",
            "id": "example",
            "is_replyable": true,
            "last_message_at": "example",
            "subject": "example"
          }
        ],
        "unread_count": 1
      }
    ],
    "next_cursor": "example"
  }
}
```

### List email domains

Show sending domains managed through Cluster.

**Inputs**

- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "auto_renew": true,
        "expires_at": "example",
        "forward_to": "example",
        "id": "example",
        "name": "example",
        "status": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List email inboxes

Show email inboxes managed through Cluster.

**Inputs**

- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "daily_send_limit": 1,
        "domain_name": "example",
        "email": "example",
        "id": "example",
        "renews_at": "example",
        "sender_id": "example",
        "status": "example",
        "warmup_health_score": 1,
        "warmup_status": "example"
      }
    ],
    "next_cursor": "example"
  }
}
```

### List inbox placement tests

Show existing inbox placement tests and their statuses.

**Inputs**

- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "completed_at": "example",
        "created_at": "example",
        "credits_charged": 1,
        "id": "example",
        "name": "example",
        "sender_count": 1,
        "senders": [
          {
            "completed_at": "example",
            "email": "example",
            "providers": [
              {
                "groups": [
                  {}
                ],
                "inbox": 1,
                "missing": 1,
                "not_sent": 1,
                "other": 1,
                "pending": 1,
                "provider": "example",
                "spam": 1
              }
            ],
            "report": {
              "blocklists": [
                "example"
              ],
              "dkim_valid": true,
              "dmarc_valid": true,
              "score": 1,
              "spam_words": [
                "example"
              ],
              "spf_valid": true
            },
            "seeds_sent": 1,
            "seeds_total": 1,
            "sender_id": "example",
            "status": "example",
            "summary": {
              "inbox": 1,
              "inbox_rate": 1,
              "missing": 1,
              "missing_rate": 1,
              "not_sent": 1,
              "other": 1,
              "other_rate": 1,
              "pending": 1,
              "seeds": 1,
              "spam": 1,
              "spam_rate": 1
            }
          }
        ],
        "status": "example",
        "subject": "example",
        "summary": {
          "inbox": 1,
          "inbox_rate": 1,
          "missing": 1,
          "missing_rate": 1,
          "not_sent": 1,
          "other": 1,
          "other_rate": 1,
          "pending": 1,
          "seeds": 1,
          "spam": 1,
          "spam_rate": 1
        }
      }
    ],
    "next_cursor": "example"
  }
}
```

### List senders

Show connected senders and when they can send.

**Inputs**

- Channel (`channel`, text): Set the channel. One of: `LINKEDIN`, `EMAIL`, `X`.
- Limit (`limit`, number): Set the maximum records on this page. From 1 to 100.
- Cursor (`cursor`, text): Continue from the cursor returned on the last page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "account_status": "example",
        "channel": "example",
        "display_name": "example",
        "effective_timezone": "example",
        "schedule": {
          "active_days": [
            "example"
          ],
          "launch_hour": 1,
          "timezone": "example"
        },
        "sender_id": "example",
        "window_duration_hours": 1
      }
    ],
    "next_cursor": "example"
  }
}
```

### Pause campaign

Stop sending from a running campaign.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_type": "example",
    "contact_count": 1,
    "created_at": "example",
    "delivery_mode": "example",
    "description": "example",
    "ends_at": "example",
    "finished_at": "example",
    "id": "example",
    "list_id": "example",
    "name": "example",
    "paused_at": "example",
    "paused_reason": {
      "code": "example",
      "message": "example"
    },
    "scheduled_at": "example",
    "started_at": "example",
    "stats": {
      "active_contact_count": 1,
      "completed_contact_count": 1,
      "connection_request_sent_count": 1,
      "email_sent_count": 1,
      "excluded_contact_count": 1,
      "failed_contact_count": 1,
      "like_post_sent_count": 1,
      "message_sent_count": 1,
      "profile_visit_sent_count": 1,
      "reply_count": 1
    },
    "status": "example",
    "updated_at": "example"
  }
}
```

### Query analytics

Summarize campaign results by date and selected dimensions.

**Inputs**

- Start date (`start_date`, date, required): Choose the first day to include.
- End date (`end_date`, date, required): Choose the last day to include.
- Timezone (`timezone`, text): Set the timezone.
- Comparison (`comparison`, text): Set the comparison. One of: `previous_period` (Previous period), `none`.
- Interval (`interval`, text): Set the interval. One of: `day`, `week`, `month`.
- Group by (`group_by`, list): Set the group by. One or more of: `campaign`, `sequence`, `sender`, `channel`, `step`, `action`.
- Scope (`scope`, list): Set the scope.
- Sort by (`sort_by`, text): Set the sort by. One of: `leads_reached` (Leads reached), `replies`, `reply_rate` (Reply rate), `invitations_sent` (Invitations sent), `invitations_accepted` (Invitations accepted), `acceptance_rate` (Acceptance rate), `messages_sent` (Messages sent), `emails_sent` (Emails sent), `calls_made` (Calls made), `call_conversations` (Call conversations), and 6 more.
- Sort direction (`sort_direction`, text): Set the sort direction. One of: `asc`, `desc`.
- Limit (`limit`, number): Set the maximum records on this page. From 1.0 to 500.0.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "channels": [
      "example"
    ],
    "comparison": {
      "group_count": 1,
      "groups": [
        {
          "dimensions": {},
          "labels": {},
          "values": {}
        }
      ],
      "series": [
        {
          "dimensions": {},
          "labels": {},
          "values": {}
        }
      ],
      "total": {
        "dimensions": {},
        "labels": {},
        "values": {}
      }
    },
    "generated_at": "example",
    "group_count": 1,
    "groups": [
      {
        "dimensions": {},
        "labels": {},
        "values": {}
      }
    ],
    "series": [
      {
        "dimensions": {},
        "labels": {},
        "values": {}
      }
    ],
    "total": {
      "dimensions": {},
      "labels": {},
      "values": {}
    }
  }
}
```

### Resume campaign

Resume sending from a paused campaign.

**Inputs**

- Campaign (`campaign_id`, text, required): Choose a campaign.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_type": "example",
    "contact_count": 1,
    "created_at": "example",
    "delivery_mode": "example",
    "description": "example",
    "ends_at": "example",
    "finished_at": "example",
    "id": "example",
    "list_id": "example",
    "name": "example",
    "paused_at": "example",
    "paused_reason": {
      "code": "example",
      "message": "example"
    },
    "scheduled_at": "example",
    "started_at": "example",
    "stats": {
      "active_contact_count": 1,
      "completed_contact_count": 1,
      "connection_request_sent_count": 1,
      "email_sent_count": 1,
      "excluded_contact_count": 1,
      "failed_contact_count": 1,
      "like_post_sent_count": 1,
      "message_sent_count": 1,
      "profile_visit_sent_count": 1,
      "reply_count": 1
    },
    "status": "example",
    "updated_at": "example"
  }
}
```

### Send reply

Send a reply in an existing conversation thread.

**Inputs**

- Conversation (`conversation_id`, text, required): Choose a conversation.
- Idempotency key (`idempotency_key`, text): Use the same key when re-running the same operation. Leave it empty to create a new key.
- Thread ID (`thread_id`, text, required): Use a thread ID from Get conversation.
- Text (`text`, text, required): Enter the message to send.
- HTML (`html`, text): Formatted body. Email threads only.
- CC (`cc`, list): Email threads only.
- Reply to message ID (`reply_to_message_id`, text): Set the reply to message id.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "campaign_id": "example",
    "campaign_name": "example",
    "channel": "example",
    "classification_detail": "example",
    "conversation_id": "example",
    "delivery_status": "example",
    "direction": "example",
    "html": "example",
    "id": "example",
    "kind": "example",
    "response_classification": "example",
    "sent_at": "example",
    "subject": "example",
    "text": "example",
    "thread_id": "example"
  }
}
```
