> For the complete documentation index, see [llms.txt](https://docs.dapta.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dapta.ai/ai-voice-agents/how-to-create-your-first-campaign-in-dapta/add-contacts-to-a-campaign-via-flow-studio.md).

# Add contacts to a sequence via Flow Studio

Automatically sync leads from tools like HubSpot into your voice sequences using Flow Studio. Perfect for keeping your contact lists up to date—without manual uploads.

🧱 **Step 1: Add the “Add Contact To Sequence” Node**\
In Flow Studio, start by adding the **Add Contact To Sequence** node to your flow.

1. Open the **Templates** panel
2. Search for **"Add Contacts To Sequence"**
3. Drag and drop the node into your flow

This node allows you to send contacts into a voice sequence directly from your data source. In the next steps, you’ll connect it to a list of leads from tools like HubSpot.

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-355cf6c3a7628ecc7d924c79313c36cac8138be4%2FScreenshot%202025-06-19%20at%201.17.10%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

***

🧱 **Step 2: What the “Add Contact To Sequence” Node Does**\
This node sends each contact into a specific Dapta sequence.

You must provide:

* ✅ **Sequence name** (already created in Dapta)
* 📞 **Valid phone number**
* 🔑 Optional mapped fields (e.g., name, email, external ID)

🚫 Contacts missing phone numbers or with invalid formatting will be skipped automatically.

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-fec387f8903e330abbfbe328d7868cde36247bb2%2FScreenshot%202025-06-19%20at%201.16.05%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

***

🚀 **Step 3: Example Flow**

**Goal**: Sync all new HubSpot leads created after yesterday into a sequence.

#### 🛠 Node Breakdown:

1️⃣ **Trigger** – Scheduled Task (e.g., daily at 8 AM)\
2️⃣ **Search Record (HubSpot)** – Pulls new contacts using filters like `createdate > yesterday`\
3️⃣ **Loop List** – Iterates through each matching contact\
4️⃣ **Add Contact To Sequence** – Sends each contact to Dapta with mapped values:

| Property      | Value                                       |
| ------------- | ------------------------------------------- |
| Phone Number  | `{{contacts.item.properties.phone}}`        |
| Contact Name  | `{{contacts.item.properties.firstname}}`    |
| Contact Email | `{{contacts.item.properties.email}}`        |
| External ID   | `{{contacts.item.properties.hs_object_id}}` |

<figure><img src="https://3835013762-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCy5rSNtQmtqYCGzJlNEB%2Fuploads%2Fgit-blob-b27d5f99d441780d6aa47d0791d9978f83eb95fe%2FScreenshot%202025-06-19%20at%201.12.27%E2%80%AFPM.png?alt=media" alt="" width="290"><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dapta.ai/ai-voice-agents/how-to-create-your-first-campaign-in-dapta/add-contacts-to-a-campaign-via-flow-studio.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
