# Mav on Zapier

Connect Mav to thousands of other apps without code. Send contacts to an agent, record quotes and sales, opt contacts out and start Zaps when something happens in Mav.

## What it is

Zapier connects apps to each other. A **Zap** is one automation: a **trigger** in one app starts it, and one or more **actions** in other apps follow. The Mav app on Zapier lets you put Mav on either side, with no code.

Version 6 of the Mav app gives you:

| In Zapier | Kind | What it does |
|---|---|---|
| **New Event** | Trigger | Starts a Zap when something happens to a contact in Mav. |
| **Create Contact** | Action | Sends a contact to a Mav agent, which starts texting or calling them. |
| **Create Conversion Event** | Action | Records that a contact was quoted, bought, or reached one of your own conversions. |
| **Stop Conversation** | Action | Stops Mav's open conversation with a contact, without opting them out. |
| **Opt Out Contact** | Action | Opts a contact out and blocks their phone number, so Mav stops texting and calling them. |
| **Find Contact** | Search | Looks a contact up by phone number or ID. |

Some things teams build with it:

- A web form, a Google Sheet row or a Facebook lead ad becomes a Mav contact.
- A qualified lead becomes a lead in your CRM or agency management system.
- A sale in your management system marks the contact **Sold** in Mav.
- An opt-out in Mav removes the person from your email list, and an unsubscribe there opts them out in Mav.
- A transferred call posts to a team channel.

## Before you start

- **Your account is on the current Mav app.** Version 6 doesn't work with Mav Classic. A Classic account uses version 5 of the Mav app. See [Version 5 and Mav Classic](#version-5-and-mav-classic).
- **You have your Mav API key.** A Manager finds it in Mav under **Integrations › API**.
- **You have a Zapier account.**
- **You have an invitation to version 6.** Version 6 is private, so it doesn't show in Zapier until Mav invites you. See [Get an invitation to version 6](#get-an-invitation-to-version-6).

Keep the key private. Anyone who has it can read your contacts.

## Get an invitation to version 6

Version 6 is private. You need an invitation from Mav before you can use it. Without one, Zapier only shows version 5, which is for Mav Classic.

[Request an invitation](mailto:support@hiremav.com?subject=Invitation%20to%20version%206%20of%20the%20Mav%20app%20on%20Zapier) and give the email address you use for Zapier. Your Mav team can also send it. Zapier emails you the invitation.

Mav will make version 6 the main Mav app on Zapier once most accounts have moved to the current Mav app. After that, nobody needs an invitation.

## Connect Mav to Zapier

1. Open the invitation Zapier emailed you and accept it.
2. In Zapier, create a Zap and pick **Mav** as the app. Choose the one marked version 6.
3. When Zapier asks you to sign in, paste your **API Key** and continue.
4. Zapier checks the key and shows your account's name on the connection.

![Zapier's app picker with Mav (6.0.0) at the top of the results](/content/learn/mav-on-zapier-choose-app.png)

One connection covers one Mav account. If you manage more than one account, add a connection for each, with that account's key.

![The New Event step in Zapier, connected to a Mav account](/content/learn/mav-on-zapier-connect-account.png)

## The trigger: New Event

**New Event** starts your Zap as soon as something happens to a contact. It is instant. Mav sends the event to Zapier when it happens, and Zapier doesn't have to check for it.

### Set it up

- **Events**: pick one or more. Leave it empty to get every event, including ones Mav adds later.
- **Agents**: pick one or more to get only their conversations. Leave it empty for every agent, including ones you add later.

These are the same two choices Mav gives you when you add an outbound notification.

![The Events list open on the New Event trigger](/content/learn/mav-on-zapier-new-event-events.png)

![New Event set to Sold and Qualified for the Home Insurance agent](/content/learn/mav-on-zapier-new-event-configure.png)

### The events

| Group | Events |
|---|---|
| The conversation | Started, Interested, Reengagement Sent, Dormant |
| Outcomes | Qualified, Unqualified, Not Interested, Opted Out, Filtered, Undeliverable |
| Phone calls | Phone Call Scheduled, Started, Connected, Rep Attempted, Transferred, Transfer Failed, Completed, Missed, Received |
| Quotes | Quote Requested, Quote Received, Quote Conditions Answered, Quote Failed, Quote Agreed |
| Conversions | Quoted, Sold, Link Clicked, Custom Conversion |

[Engagements and sessions](/knowledge/features/engagements-and-sessions) and [Transfers and callbacks](/knowledge/features/transfers-and-callbacks) explain what the conversation and call events mean.

### What your Zap gets

Each event carries what happened and who it happened to. You can use any of these fields in later steps.

| Field | What it holds |
|---|---|
| **Event** | Which event it was, like `qualified` or `opted_out`. |
| **Event Type** | `event`, `outcome` or `conversion`. |
| **Note** | A short summary of what happened, written for people. |
| **Conversation ID** | The conversation the event belongs to. Every event in one conversation shares it. |
| **Happened At** | When it happened. |
| **Contact ID** | The contact's Mav ID. Use it in **Create Conversion Event**, **Stop Conversation** or **Opt Out Contact**. |
| **First Name**, **Last Name**, **Email**, **Phone** | The contact's details. |
| **Opted Out** | Whether the contact has opted out. |
| **Additional Info** | Everything else Mav knows about the contact, like vehicles, location and the fields your lead vendor sent. |

Some events carry extra details. A **Custom Conversion** carries the conversion's title, and the quote events carry the quote's ID.

### Test it

When you test the trigger, Zapier shows up to three of your account's newest events that fit your choices. If nothing fits yet, it shows a made-up sample for a contact named Jordan Rivera, so you can still map fields.

![A Sold event in the trigger's test step, with its fields](/content/learn/mav-on-zapier-new-event-test.png)

### Where it shows in Mav

Turning the Zap on adds a webhook to your account's outbound notifications, under **Integrations › Outbound**. Mav shows it with the Zapier logo and a **Managed by Zapier** tag. Turning the Zap off removes it.

You can't edit or remove a Zapier webhook in Mav. Change its events and agents in the Zap, and Zapier updates Mav for you. To remove it, turn the Zap off. Once Mav has turned one off, an admin can remove it in Mav too. **Send test** still works from Mav.

![The Zap's webhook on the Outbound tab in Mav, with its events and agent](/content/learn/mav-on-zapier-mav-outbound-webhook.png)

## The action: Create Contact

**Create Contact** sends a person to a Mav agent, the same way a lead source does. Mav saves the contact and the agent starts working them.

### Set it up

1. **Agent**: pick the agent that works this contact.
2. Fill in the fields that appear. **Phone** is the only one required.

The fields change with the agent you pick. A home insurance agent shows home fields, like **Roof Type** and **Year Built**. Every other agent shows auto fields, like **Vehicle 1 Make** and **Current Insurance Carrier**. The list comes from Mav, so a new field shows up in Zapier on its own.

![Create Contact with a home insurance agent, showing home fields](/content/learn/mav-on-zapier-create-contact-home-fields.png)

![Create Contact with an auto insurance agent, showing vehicle fields](/content/learn/mav-on-zapier-create-contact-auto-fields.png)

Map every field you have. The agent reads them and doesn't ask the contact for what it already knows.

### Good to know

- **Phone** takes any common US format.
- **Source** says where the contact came from. It shows on the contact in Mav. Leave it empty and Mav records **Zapier**.
- **SMS Consent** is true unless you send false.
- **A phone number you already have** returns that contact and makes no second one. If that contact has a conversation going with the same agent, Mav keeps it. Otherwise the agent starts a new one.
- **A contact who opted out** is refused. The step fails with **Contact has opted out.**
- **In test mode** Mav saves the contact but doesn't text or call them. See [Test mode and going live](/knowledge/features/test-mode-and-going-live).
- **Texting hours and filters still apply.** Mav checks every new contact the way it checks one from a lead source. See [A contact is not getting texts](/knowledge/troubleshooting/a-contact-is-not-getting-texts).

The step returns the contact, with its **Contact ID**, and the conversation Mav started.

![The contact Mav returns after a Create Contact test](/content/learn/mav-on-zapier-create-contact-test.png)

## The action: Create Conversion Event

**Create Conversion Event** tells Mav a contact reached a conversion, like a quote or a sale. Mav adds it to the contact's timeline and marks them in the app. By default it also ends Mav's open conversation with the contact, so Mav stops following up with someone who already converted.

### Set it up

- **Conversion**: pick it from the list. The list is your account's conversions: **Quoted**, **Sold** and any you added under **Settings › Conversions**.
- **Contact**: the contact's Mav ID. If you only have a phone number, add a **Find Contact** step first and use its **Contact ID** here.
- **Converted At**: when it happened. Leave it empty to use the time the step runs.
- **Value (Cents)**: what it was worth, in cents. A $1,840.00 premium is `184000`. Leave it empty to use the conversion's own value.

![The Conversion list showing Quoted and Sold](/content/learn/mav-on-zapier-conversion-event-dropdown.png)

![Create Conversion Event set to Quoted, with the Contact ID from a Find Contact step](/content/learn/mav-on-zapier-conversion-event.png)

Recording the same conversion for the same contact twice changes nothing. Mav returns the first record, so a Zap that runs twice never counts a sale twice.

See [Conversions: Quoted and Sold](/knowledge/features/conversions-quoted-and-sold).

## The action: Stop Conversation

**Stop Conversation** stops Mav's open conversation with a contact. Mav sends no more texts or calls for it. Use it when the contact no longer needs follow-up, like when they bought somewhere else or your team took over.

- **Contact**: the contact's Mav ID. Add a **Find Contact** step first if you only have a phone number.

The contact is not opted out. You can send them to an agent again later, and Mav still answers if they text or call in.

The step returns **Stopped**, which is false when the contact had no open conversation, and a **Message** that says what Mav did.

## The action: Opt Out Contact

**Opt Out Contact** opts a contact out. Mav ends its open conversation with them and stops texting and calling. It also adds their phone number to your blocked numbers, under **Settings › Filters › Blocked Numbers**, so Mav doesn't start on that number again.

- **Contact**: the contact's Mav ID. Add a **Find Contact** step first if you only have a phone number.

![Opt Out Contact with the Contact ID from a Find Contact step](/content/learn/mav-on-zapier-opt-out-contact.png)

Mav sends no confirmation text, because the contact didn't ask by text. Running it for a contact who already opted out changes nothing. The step returns a **Message** that says what Mav did, like "Contact opted out. +13125550142 added to your blocked numbers."

## The search: Find Contact

**Find Contact** looks up one contact in your account.

- **Phone**: any common US format.
- **Contact ID**: the contact's Mav ID. When you give both, Mav uses the ID.

![Find Contact with a phone number](/content/learn/mav-on-zapier-find-contact.png)

It returns the contact, with its **Contact ID** for later steps. When nobody matches, the step finds nothing. In the step's settings, choose whether the Zap stops there or carries on.

A phone number matches at most one contact in your account.

## Example Zaps

### A web form lead becomes a Mav contact

1. **Trigger**: your form app, on a new submission.
2. **Action**: Mav, **Create Contact**. Pick the agent and map the form's phone, name and email.

### A qualified lead goes to your CRM

1. **Trigger**: Mav, **New Event**, with **Events** set to **Qualified**.
2. **Action**: your CRM, create a lead. Map **First Name**, **Last Name**, **Phone**, **Email** and the **Note**.

### A sale in your management system marks the contact Sold

1. **Trigger**: your management system, on a new policy.
2. **Search**: Mav, **Find Contact**, by the policyholder's phone.
3. **Action**: Mav, **Create Conversion Event**. Pick **Sold**, use the **Contact ID** from step 2, and map the premium to **Value (Cents)**.

![A Zap with a Mav trigger, a Find Contact step and two Mav actions](/content/learn/mav-on-zapier-zap-overview.png)

If your system holds the premium in dollars, add a Formatter step that multiplies it by 100.

### An unsubscribe elsewhere opts the contact out in Mav

1. **Trigger**: your email tool, on a new unsubscribe.
2. **Search**: Mav, **Find Contact**, by phone.
3. **Action**: Mav, **Opt Out Contact**, with the **Contact ID** from step 2.

### An opt-out in Mav removes them everywhere else

1. **Trigger**: Mav, **New Event**, with **Events** set to **Opted Out**.
2. **Action**: your email tool or CRM, unsubscribe the person by **Phone** or **Email**.

## When something goes wrong

| What you see | What it means | What to do |
|---|---|---|
| **Mav did not accept the API key.** | The key is wrong, or someone made a new one. | Copy the key again and reconnect Mav in Zapier. |
| **This Mav account is on Mav Classic.** | Version 6 only works with the current Mav app. | Use version 5, or ask your Mav team about moving your account. |
| **Contact has opted out.** | Create Contact was given someone who opted out. | Nothing. Mav won't contact them. |
| **Phone matches a legacy lead with a running play** | The person is still being worked in Mav Classic. | Wait for that to finish, or ask your Mav team. |
| **Find Contact** finds nothing | No contact in this account has that phone or ID. | Check the number, and check you connected the right account. |
| **New Event** never fires | The webhook is off or missing in Mav, or the event or agent doesn't match. | See below. |

### New Event never fires

1. Check the Zap is on.
2. In Mav, find the row tagged **Managed by Zapier** under your outbound notifications. If it is missing or turned off, turn the Zap off and on again with the switch at the top of the Zap editor. That adds a fresh one. **Publish** won't do it, because nothing in the Zap changed. If the turned-off one is still listed afterwards, an admin can remove it.
3. Check the Zap's **Events** and **Agents**. A Zap set to one agent doesn't get another agent's events.
4. Opting out a contact who has no open conversation records no **Opted Out** event, in Mav or through Zapier.

Mav turns a webhook off after its deliveries fail for about four days, and emails your account's Managers. See [A webhook was turned off](/knowledge/troubleshooting/a-webhook-was-turned-off).

### A new API key

Making a new API key in Mav stops the old one at once. Every Zap on the old key fails until you reconnect Mav in Zapier with the new key.

## Version 5 and Mav Classic

Version 5 is the Mav app for accounts on Mav Classic. Zaps built on it keep running, and nothing about them changes. Version 6 is a new app for the current Mav app. It is private for now, so you need [an invitation](#get-an-invitation-to-version-6) to use it. A Zap can't move from one version to the other. When your account moves from Classic, build your Zaps again on version 6.

## Zapier or the API

The Mav app on Zapier is built on the Mav API, so both do the same things. Use Zapier when the other app is already on Zapier and you want no code. Use the API when you want your own system to call Mav directly. See [Outbound webhooks and the API](/knowledge/integrations/outbound-webhooks-and-the-api) and the [API docs](/api).