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

# Prepare a campaign for review

This workflow keeps discovery, enrollment, message preparation, and sending approval separate. The campaign must use human review.

## Read the workspace and campaign

Start with `campaign_read` methods `workspace` and `list_campaigns`. Select the intended campaign, then call `read_campaign` to get its current revision, senders, enrolled prospects, and review state.

```json theme={null}
{
  "name": "campaign_read",
  "arguments": {
    "method": "read_campaign",
    "campaignId": "11111111-1111-4111-8111-111111111111"
  }
}
```

All UUIDs and revisions in this guide are illustrative. Read actual values immediately before changing records. To create a new draft campaign, use [save\_campaign](https://docs.vsyble.com/reference/methods/save_campaign.md) with its complete configuration and connected sender IDs.

## Choose the source

| Starting point | Operation |
| - | - |
| Let the campaign find qualified prospects | [`find_prospects`](https://docs.vsyble.com/reference/methods/find_prospects) |
| The user supplied selected people with names and emails | [`add_prospects`](https://docs.vsyble.com/reference/methods/add_prospects) |
| Selected people already exist in CRM | [`create_drafts_from_contacts`](https://docs.vsyble.com/reference/methods/create_drafts_from_contacts), then [`enroll_drafts`](https://docs.vsyble.com/reference/methods/enroll_drafts) |

`find_prospects` and `add_prospects` save verified prospects to CRM by default. Set `addToCampaign: true` only when the user asks to enroll them. Enrollment leaves their messages unwritten.

```json theme={null}
{
  "name": "campaign_write",
  "arguments": {
    "method": "find_prospects",
    "campaignId": "11111111-1111-4111-8111-111111111111",
    "campaignRevision": 3,
    "targetCount": 10,
    "addToCampaign": true
  }
}
```

Targeting and screening come from the campaign. The target count is subject to qualifications and allowances; do not promise that all requested prospects will qualify.

## Follow the run

Keep the returned run ID and call `campaign_read` method `get_run` about once a minute until `run.terminal` is true. If a start returned no run ID, provide `campaignId` to find its newest run from the last seven days.

```json theme={null}
{
  "name": "campaign_read",
  "arguments": {
    "method": "get_run",
    "runId": "11111111-1111-4111-8111-111111111111"
  }
}
```

| Terminal status | Next action |
| - | - |
| `saved_to_crm` | Report saved prospects. Enroll only if requested. |
| `added_to_campaign` | Prospects are enrolled with messages not yet prepared. |
| `completed` | Inspect counts and saved messages; completion does not mean email was sent. |
| `failed` | Read `failure`, `skipped`, and `next`; inspect existing records before restarting. |

Report actual found, verified, enrolled, prepared, and skipped counts. Do not equate “found” with “ready to send.”

## Prepare messages

Read the current campaign revision again. For enrolled prospects with empty messages:

```json theme={null}
{
  "name": "campaign_write",
  "arguments": {
    "method": "prepare_messages",
    "campaignId": "11111111-1111-4111-8111-111111111111",
    "campaignRevision": 3,
    "all": true
  }
}
```

This queues writing work and can use allowances. Inspect the resulting run and campaign messages. For one prospect or selected candidates from a finished run, use the selectors in the [method contract](https://docs.vsyble.com/reference/methods/prepare_messages.md).

## Review exact saved messages

Use `read_campaign` and `get_message` to read the actual recipients, content, and revisions. Use `edit_message` for changes; edits invalidate earlier approvals. Submit exact drafts with `submit_messages` when administrator review is required.

Only after the user reviews and explicitly authorizes the actual send may an assistant call the appropriate `send` method with `confirmSend: true`. Read [sending approval](https://docs.vsyble.com/security/sending.md) before approving or activating a campaign. A successful approval is not proof of delivery.


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