> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add leads to a sequencer | Agent guide

> Add a reviewed recipient batch to the intended campaign, verify the destination, and approve sending separately.

[Human guide: task steps and agent prompt →](https://deepline.com/docs/human/features/email-sequencer-integration.md)

Start with reviewed recipients, accepted outreach copy, and an existing campaign.
Use [Connect integrations](https://deepline.com/docs/integrations.md) for account setup and
[Draft outreach](https://deepline.com/docs/plays/play-personalize-outreach.md) for drafting.

Adding recipients, changing a sequence, and starting sends are separate actions.
Check whether the selected campaign can send immediately when leads arrive;
adding a batch to a running campaign may itself begin outreach.

## Prepare the approved batch

1. Read the campaign and confirm its account, ID, owner, sender accounts,
   sequence, schedule, and sending state.
2. Apply your qualification, suppression, and deduplication rules. Inspect
   existing campaign membership or use the provider's supported lookup;
   Deepline does not promise cross-campaign or cross-provider deduplication.
3. Show the intended recipient-to-campaign mapping and the exact operation for
   approval. Keep source IDs and review decisions beside the recipient list.
4. Add a small approved batch. Inspect accepted, duplicate, rejected, and failed
   rows where the response exposes them, then read destination membership back.
   A successful request does not prove every recipient was accepted.
5. Review the resulting sequence, senders, and schedule before separately
   approving activation. Check provider delivery and engagement results after
   the controlled send.

If a write times out, reconcile the intended recipients against the destination
before resubmitting. Keep unresolved rows visible rather than repeating an
entire partially accepted batch.

## Worked example: an existing Instantly campaign

Inspect the current contracts, then select the intended campaign from its
returned ID:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline describe instantly_add_to_campaign
deepline describe instantly_list_leads
deepline run instantly_list_campaigns --input '{}'
deepline run instantly_get_campaign --input '{"campaign_id":"campaign-123"}'
deepline run instantly_list_leads --input '{"campaign_id":"campaign-123"}'
```

`campaign-123` is a placeholder. Replace it with the selected campaign ID and
follow any returned pagination to inspect the required membership scope.
Confirm the connected account, sender, schedule, and state in Instantly. If the
campaign is running, stop here until adding recipients to that live campaign is
explicitly approved, or prepare a non-sending destination for the pilot.

After suppression, deduplication, and approval, this synthetic one-person batch
shows the input shape:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run instantly_add_to_campaign --input '{
  "campaign_id": "campaign-123",
  "leads": [
    {
      "email": "ada@example.com",
      "first_name": "Ada",
      "last_name": "Lovelace",
      "company_name": "Babbage Ltd"
    }
  ]
}'
```

Inspect the returned outcome and read the campaign's leads again. Match each
approved input to its actual destination state; a campaign-wide count is not a
per-recipient receipt.

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run instantly_list_leads --input '{"campaign_id":"campaign-123"}'
deepline run instantly_get_campaign --input '{"campaign_id":"campaign-123"}'
```

Review the message sequence and schedule in Instantly. If sending is approved,
inspect `deepline describe instantly_activate_campaign` before the separate
activation action. After a controlled send, inspect the provider's results:

```bash theme={"languages":{"custom":["/languages/deepline-prompt.json"]}}
deepline run instantly_get_campaign_stats --input '{"campaign_id":"campaign-123"}'
```

## Provider references

Use [Connect integrations](https://deepline.com/docs/integrations.md) for account access. Inspect your
chosen action in API Reference or with `deepline describe <tool-id>` before
building its payload. The [Instantly recipient contract](https://deepline.com/docs/providers/instantly/add-to-campaign.md)
and [Smartlead recipient contract](https://deepline.com/docs/providers/smartlead/push-to-campaign.md) show
inputs for two supported destinations.

> [accordion] Provider-specific campaign details
>
> * **Instantly:** when creating a campaign, inspect an existing campaign for a
>   supported timezone and schedule shape.
> * **Lemlist:** sequence delays are in days. Campaign create/update responses
>   include a `web_url` for reviewing the sequence before starting it. Inspect
>   duplicate conflicts rather than assuming all campaigns were deduplicated.
> * **HeyReach:** create the campaign in HeyReach first. The integration supports
>   selecting an existing campaign, adding contacts, and reading its stats.
> * **Smartlead:** configure sending accounts, sequence, and schedule before
>   setting campaign state. Inspect `smartlead_update_campaign_status` for its
>   supported values and use valid IANA timezones and 24-hour times. The
>   `smartlead_push_to_campaign` contract accepts up to 400 `lead_list` entries;
>   use a much smaller supervised pilot and inspect analytics date limits before
>   requesting a report. Use the canonical `lead_list` field; each lead needs an
>   email. Deepline lowercases emails and rejects duplicates within the batch.
>   Configure stop conditions as well as senders, sequence, and schedule before
>   `START`, and keep large writes sequential with provider-requested backoff.

## Verify this task

Match each approved recipient to the intended campaign. Reconcile partial or
uncertain writes, verify suppression and deduplication, and read back membership
and campaign state. Sending requires its own approved operation; provider
results establish delivery and engagement outcomes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.