# Zapier

Create Estactics leads from Facebook Lead Ads, forms and thousands of other apps with Zapier.

The [Estactics app on Zapier](https://zapier.com/apps/estactics/integrations) adds a **Create Lead** action to any Zap. Use it to send leads from Facebook Lead Ads, Typeform, Calendly, Google Sheets or any other Zapier trigger into an Estactics campaign, without writing code.

## Connect

1. [Create an API key](/docs/api-keys) with the **Clients: Manage** and **Marketing Campaigns: View** permissions.
2. In your Zap, add a step, search for **Estactics** and choose **Create Lead**.
3. Paste the key when Zapier asks you to connect Estactics. The connection is named after your organization.

Create the key as the organization owner or an admin, so leads can go to every campaign.

## Create Lead fields

| Field | What it does |
| --- | --- |
| Campaign | Required. The active campaign the lead registers to. It sets the lead's brand and assignee. |
| First Name, Email, Phone | Required. The phone can be in any format. |
| Phone Default Country | Used for phones without a country prefix. Defaults to the campaign country, then the organization country. |
| Last Name, Language, Country, City, Address | Optional details about the lead. |
| Notes | Saved as the client's interest notes. |
| UTM Source, Medium, Campaign, Term, Content | Where the lead came from, for example the Facebook campaign and ad names. |
| Registration Form | Any other form answers, such as budget or rooms, shown on the lead registration. |
| Custom Fields (JSON) | Advanced. A JSON object with any field of [Create a client](/reference/clients-create), merged over the fields above. |

## What to expect

- A person who is already in your CRM never makes the step fail. What happens to them depends on your duplicate settings in Estactics.
- If Estactics can't be reached or asks Zapier to slow down, Zapier retries the step later, so the lead isn't lost.
- If the API key expired, was disabled or is wrong, Zapier asks you to reconnect.
- A missing name, email or phone, or an invalid email or phone, stops that run. The Zap stays on.
- A missing permission, a campaign that isn't active or a plan limit fails the run, and Zapier emails you. Fix it, then replay the run from your Zap history.
