> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/walkthroughs/using-a-campaign-with-mailchimp.md).

# Using a campaign with MailChimp

In this walk through you will see how to generate and send the unique codes of the survey to invite multiple recipients

## 📧 Create a virtual campaign

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFCgY4hgRzjvOeZZlbR%2F-MFChk8shsduNMeT0cBL%2Fcaptured%20\(12\).png?alt=media\&token=2e804b58-63db-49b1-8a27-2fc5c9882905)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MEqZZYZ8Wh1MYqT9cuO%2F-MEreU1EnIKXcmk-8_il%2Fcaptured%20\(5\).png?alt=media\&token=a016d577-f4af-4528-90fc-48e12162b261)

1. At the left vertical menu choose the [Campaigns](/form-management/campaigns.md) section and press **Launch Campaign**
2. Label your campaign
3. Enable [Virtual campaign](/form-management/campaigns/campaign/virtual-campaign.md#what-is-a-virtual-campaign)
4. At the recipients page select **Import emails** option
5. Upload your CSV file with emails
6. Press <img src="https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MEqZZYZ8Wh1MYqT9cuO%2F-MErgscX9k_xjMKAlZZF%2Fimage.png?alt=media&amp;token=5c21f5a8-60fa-4e70-b91f-747c309a893a" alt="" data-size="line"> **Launch campaing**

## 👨‍💻️ Generate unique codes

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFCgY4hgRzjvOeZZlbR%2F-MFCjNEvpe4nZ-o4jOa2%2Fcaptured%20\(7\).gif?alt=media\&token=840863ec-242e-4436-8198-d941091061c4)

1. Go back to the **Campaigns** section
2. Choose the campaign to work with
3. Go to the **Pending** page
4. Press [Export all](/form-management/campaigns/campaign/virtual-campaign.md#export-the-recipients), to create a CSV file with unique codes to your survey for each recipients

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MErs99YKNIhMu41lNr4%2F-MF-d6N-DQODrVqe0goH%2Fcaptured%20\(7\).png?alt=media\&token=66720d92-e0b0-4b12-9a83-13ae38df2426)

{% hint style="info" %}
The unique codes are generated automatically once you have launched the campaign and bonded with the recipients emails
{% endhint %}

## 🐵 Import unique codes and survey links to the MailChimp

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFB0sNdHmCd7wfQhpCp%2F-MFBB27fcDnhKyp8ASKi%2Fmailchimp1.png?alt=media\&token=1aa8683c-ed63-4d87-9eb2-947ff48cfebe)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBJnSkDq3RRRMViKl6%2Fmailchimp2.png?alt=media\&token=9050597b-41b8-4dd5-a946-5ac6aeb01a97)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBMOZF3YIvMKnOomXk%2Fmailchimp3.png?alt=media\&token=f8f5ff2c-b6e1-40d6-b450-89931b24c320)

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBBCppvQyFjwCQUxeh%2F-MFBMTB-BAXgqg4G5l4S%2Fmailchimp3.2.png?alt=media\&token=01b43a82-2c92-4025-8f59-473ab6215461)

1. At your MailChimp account go to the **Audience** **dashboard** and choose **Import contacts** from the Manage Audience dropdown list on the right
2. Upload your **CVS file** emails, link and unique codes
3. Press on the header of the column and choose to **Create a new** field to edit and tag the codes or links

## ✈️ Start the MailChimp campaign with the ngSurvey

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBPj2UFpTJanvQUnmF%2F-MFBTKy-jQ2FpCJ3qlje%2Fmailchimp4.2.png?alt=media\&token=dae12dc2-dce0-4d68-bd99-5ff5de2a74d8)

1. Go to the **Editors page** of the Email templates
2. In the toolbar, on the right of the editors page, press **Merge Tags**
3. Select the tags of the survey link and unique code

{% hint style="info" %}
Choose place in the message where you prefer to perform the **merged tag** before selecting the tags
{% endhint %}

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MFBUeMxpmFHgz6AI7Go%2F-MFBY1hj9gJe-sFPSp2x%2Fmailchimp5.png?alt=media\&token=f1111362-a0d9-4c77-be08-6f1a1c00cb76)

After launching the campaign via MailChimp, each of the your recipients will receive an email with the survey link and unique code to access your survey.


---

# 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.ngsurvey.com/walkthroughs/using-a-campaign-with-mailchimp.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.
