> For the complete documentation index, see [llms.txt](https://docs.patagon.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patagon.ai/en/sales-performance/campaigns.md).

# How to run a campaign

Campaigns let you send a WhatsApp message to a list of leads at once — for re-engagement, follow-ups, or announcements. You can only send pre-approved Meta message templates.

Access it from the sidebar under Leads > Campaigns.

## Before you start

You need two things ready before creating a campaign:

1. An approved Meta message template. Templates are created in Meta Business Manager. Once approved, they appear automatically in Patagon AI under Agent > Capabilities > Templates.
2. An audience CSV file. A list of the leads you want to reach. The required columns depend on the template you choose.

## How to create a campaign

1. Go to Leads > Campaigns and click New Campaign.
2. Enter a Campaign Name.
3. Select a Template from the dropdown. The preview on the right shows how the message will look.
4. Set a Batch Delay — the time in seconds between each message sent. The default is 5.
5. Upload your audience CSV file.
6. Click Save to create the campaign as a draft.

{% hint style="warning" %}
The campaign will not save if you haven't uploaded the audience CSV. If clicking Save doesn't do anything, check that your CSV file is loaded before trying again.
{% endhint %}

## Reading campaign results

| Metric      | What it measures                              |
| ----------- | --------------------------------------------- |
| Total Leads | Total contacts included in the campaign       |
| Sent        | Messages successfully sent                    |
| Delivered   | Messages confirmed as delivered to the device |
| Failed      | Messages that could not be delivered          |

## Common delivery errors

**502 error:** Integration issue with WhatsApp or Meta. Retry the campaign or contact support if it persists.

**429 error:** Too many messages sent too quickly. Increase the Batch Delay and retry.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.patagon.ai/en/sales-performance/campaigns.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
