# Set up Zapier as a source

{% hint style="info" %}
It's recommended you [sign up](https://zapier.com/sign-up) and [login](https://zapier.com/app/login) to your Zapier account before following these steps.
{% endhint %}

### Step 1:  Copy the Windsor API Key

> If you've already connected Windsor to your Zapier account, skip to the [step 3](#step-3-enable-zapier-as-a-source-integration-for-your-campaign).

Copy the Windsor API key from the [Zapier integration page](https://app.windsor.io/integrations/zapier).

<figure><img src="/files/eVM8hy7NvlxdvY8hDENe" alt=""><figcaption><p>Windsor API Key for the Zapier Integration</p></figcaption></figure>

### Step 2: Connect Windsor with your Zapier account

To connect Windsor with your Zapier account, go to the [My Apps](https://zapier.com/app/connections?search=windsor) tab in Zapier's sidebar and search for "Windsor". Click on "Connect", and then paste the API key you copied in [Step 1](#step-1-copy-the-windsor-api-key). Once the connection is established successfully, the [Zapier integration page](https://app.windsor.io/integrations/zapier) on Windsor will show "Connected".

<figure><img src="/files/HcznLT8ObjDPrXGI5JzY" alt=""><figcaption><p>Connecting Windsor with your Zapier account</p></figcaption></figure>

### Step 3: Enable Zapier as a Source Integration for your Campaign

For every campaign that will use Zapier, Follow the steps below in the GIF to enable the Zapier as a source integration. This will allow you to select that campaign in Zapier when using the Windsor "Generate New Video" action in a Zap.

<figure><img src="/files/jMkdnuH5qa0aXSDKyePt" alt=""><figcaption><p>Enabling Zapier as a source integration</p></figcaption></figure>

{% hint style="warning" %}
Your Windsor campaign must be LIVE before you can set up the Zap. Start your Windsor campaign by clicking the "Start Campaign" button from the campaign detail page on the Windsor dashboard.
{% endhint %}

### Step 4: Setup the Zap&#x20;

To set up the Zap, create a new Zap and choose any trigger you prefer. For the purpose of this example, we will use the "New Contact Added to List" trigger in ActiveCampaign.&#x20;

Once you have selected your trigger, choose "Windsor" as the action and select the "Generate New Video" event. Next, select the appropriate campaign from the campaign dropdown menu. Fill in the required values using the values provided by the trigger. Test the Zap, and once it passes, publish it.

Going forward, every time the Zap is triggered, Windsor will create a video for every unique email.

<figure><img src="/files/WvJyYcrhtFbtwIlwLzuD" alt=""><figcaption><p>Setting up the "Generate New Video" action</p></figcaption></figure>

{% hint style="info" %}
While testing, you may need to run the "Generate New Video" action multiple times for the same email. However, Windsor.io will only create one video per email to prevent overcharging your account.

To work around this, you can append a unique value to your email address by using the "+" symbol. For example, "<johndoe@gmail.com>" can become "[johndoe+test1@gmail.com](mailto:johndoe+1@gmail.com)", while changing "test1" to something else on each test.

&#x20;This will allow Windsor.io to recognize the email as a unique value each time, thereby allowing you to generate multiple videos during testing. The emails will still be routed to the correct email address as expected.

Make sure to remove this after the testing is done.
{% endhint %}

Click the next button below to[ Set up Zapier as a destination](/integrations/zapier/set-up-zapier-as-a-destination.md) integration.


---

# Agent Instructions: 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:

```
GET https://docs.windsor.io/integrations/zapier/set-up-zapier-as-a-source.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
