# Zapier recipes

> Send a text from any Zap, and start a Zap when someone texts you back.

Three recipes for Zapier. Each names its trigger and the DogBot step, lists the fields to map and says how to test it with your own number before anyone else gets a text.

## How Zapier connects

- **[Zapier](https://getdogbot.com/docs/zapier)**: DogBot’s Zapier app has a Send Text action and instant triggers for incoming texts and every change of state.

## Text new leads from any app

| Part             | What it is                                                                     |
| ---------------- | ------------------------------------------------------------------------------ |
| Trigger          | A new record in any app Zapier connects, such as a form entry or a new contact |
| Action           | DogBot’s **Send Text** action                                                  |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                                                         |

### Steps

1. Start the Zap with the trigger that means someone asked to hear from you.
2. Add DogBot’s Send Text action and map the person’s phone number to To.
3. Write the words in Text with the person’s first name mapped in.
4. Turn the Zap on, and each new record becomes a text from your number.

### Map the fields

| DogBot field                 | Map it to                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, this is Jordan. Thanks for reaching out! When’s a good time for a quick call?                                          |
| `{{first_name}}` in the text | Zapier’s first name field.                                                                                                                  |
| Metadata                     | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                      | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

## Bring each reply into the app you work in

| Part             | What it is                                                                  |
| ---------------- | --------------------------------------------------------------------------- |
| Trigger          | DogBot’s New Incoming Text trigger                                          |
| Action           | DogBot’s **New Incoming Text** trigger starts it, and Zapier takes the text |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                                                      |

### Steps

1. Start the Zap with DogBot’s New Incoming Text trigger.
2. Add the app where replies belong, such as a CRM, a sheet or a help desk.
3. Map the sender’s number and the words of the text into that app’s fields.

### Map the fields

| From DogBot     | Into Zapier                                                                                                                                          |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **From**        | The phone number to find the person by in Zapier. It’s in E.164 (`+15555550123`); search by the last 10 digits if Zapier stores numbers another way. |
| **Text**        | The words, for a note, a row or a message. Null when the person sent only a picture.                                                                 |
| **Received At** | When it came in, in UTC.                                                                                                                             |
| **Files**       | Pictures and voice memos. Each `url` works for an hour, so copy a file you want to keep.                                                             |
| **Chat ID**     | Set when the text came in a group chat; null for a one-to-one text.                                                                                  |

### Test it

Text your DogBot number from another phone, one you’ve texted through DogBot before, then press **Test trigger** in Zapier. It loads that text with its fields, ready to map. DogBot copies texts from people you’ve texted through it, unless you set **Which chats to copy** to **Everything**.

## Pass scheduling replies to your assistant

| Part             | What it is                         |
| ---------------- | ---------------------------------- |
| Trigger          | DogBot’s New Incoming Text trigger |
| Action           | DogBot’s **Send Text** action      |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)             |

### Steps

1. Start the Zap with DogBot’s New Incoming Text trigger.
2. Add a Filter by Zapier step that goes on only when the text contains “reschedule”.
3. Add DogBot’s Send Text action with your assistant’s number in To and the reply in Text.

### Map the fields

| DogBot field              | Map it to                                                                                                                                   |
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                        | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                      | {{from}} wants to reschedule: “{{message}}”                                                                                             |
| `{{from}}` in the text    | Zapier’s from field.                                                                                                                        |
| `{{message}}` in the text | Zapier’s message field.                                                                                                                     |
| Metadata                  | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                   | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

## For loan officers

### Text a borrower when their loan’s status changes

| Part             | What it is                                                                                 |
| ---------------- | ------------------------------------------------------------------------------------------ |
| Trigger          | Your loan software’s status-changed trigger in Zapier, such as ARIVE’s Loan Status Updated |
| Action           | DogBot’s **Send Text** action                                                              |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                                                                     |

#### Steps

1. Start the Zap with your loan software’s trigger for a changed loan status.
2. Add a Filter step so the Zap goes on only for the status you want to tell borrowers about, such as Clear To Close.
3. Add DogBot’s Send Text action and map the borrower’s phone to To.
4. Write the words in Text with the borrower’s first name mapped in.

#### Map the fields

| DogBot field                 | Map it to                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, good news: your loan is clear to close. I’ll be in touch about the closing date.                                       |
| `{{first_name}}` in the text | Zapier’s first name field.                                                                                                                  |
| Metadata                     | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                      | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

#### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

### Text each new lead from your CRM

| Part             | What it is                                           |
| ---------------- | ---------------------------------------------------- |
| Trigger          | Your CRM’s new lead or new contact trigger in Zapier |
| Action           | DogBot’s **Send Text** action                        |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                               |

#### Steps

1. Start the Zap with your CRM’s trigger for a new lead.
2. Add DogBot’s Send Text action and map the lead’s phone to To.
3. Write the words in Text with the lead’s first name mapped in.

#### Map the fields

| DogBot field                 | Map it to                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, this is Jordan. Thanks for reaching out about a home loan. When’s a good time for a quick call?                        |
| `{{first_name}}` in the text | Zapier’s first name field.                                                                                                                  |
| Metadata                     | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                      | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

#### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

## For real estate agents

### Confirm each showing request

| Part             | What it is                                                      |
| ---------------- | --------------------------------------------------------------- |
| Trigger          | Your CRM’s showing request or new appointment trigger in Zapier |
| Action           | DogBot’s **Send Text** action                                   |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                                          |

#### Steps

1. Start the Zap with your CRM’s trigger for a showing request or a new appointment.
2. Add DogBot’s Send Text action and map the client’s phone to To.
3. Write the words in Text with the client’s first name, the address and the time mapped in.

#### Map the fields

| DogBot field                 | Map it to                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, you’re all set to see {{address}} at {{time}}. I’ll meet you there.                                                |
| `{{first_name}}` in the text | Zapier’s first name field.                                                                                                                  |
| `{{address}}` in the text    | Zapier’s address field.                                                                                                                     |
| `{{time}}` in the text       | Zapier’s time field.                                                                                                                        |
| Metadata                     | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                      | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

#### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

### Text a client when their deal’s stage changes

| Part             | What it is                                                                              |
| ---------------- | --------------------------------------------------------------------------------------- |
| Trigger          | Your CRM’s stage-changed trigger in Zapier, such as Follow Up Boss’s Deal Stage Updated |
| Action           | DogBot’s **Send Text** action                                                           |
| Connects through | [Zapier](https://getdogbot.com/docs/zapier)                                                                  |

#### Steps

1. Start the Zap with your CRM’s trigger for a changed deal stage.
2. Add a Filter step so the Zap goes on only for the stage you want to tell clients about, such as Under Contract.
3. Add DogBot’s Send Text action and map the client’s phone to To.
4. Write the words in Text with the client’s first name mapped in.

#### Map the fields

| DogBot field                 | Map it to                                                                                                                                   |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Zapier. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, great news: you’re officially under contract. I’ll text you the next dates as they’re set.                             |
| `{{first_name}}` in the text | Zapier’s first name field.                                                                                                                  |
| Metadata                     | `source` set to `zapier`, and `record_id` set to the record’s id, so the status and reply webhooks for this text can find the record again. |
| Service                      | Auto, the default: iMessage when the person uses it, otherwise SMS through your iPhone.                                                     |

#### Test it

Put your own number in **To** and press **Test step**. A text arrives on your phone from your own number, and Zapier shows the message DogBot returned with `state: "queued"`. Then map Zapier’s field back into **To** and turn the Zap on.

## Before you turn it on

- Text only people who asked to hear from you. Anyone who replies STOP goes on your stop list, and DogBot cancels texts to them. [Stop words](https://getdogbot.com/docs/concepts/stop-words)
- A text that can’t go yet waits with a hold rather than failing: texting hours, your Mac away, a daily limit. [Holds](https://getdogbot.com/docs/concepts/holds)
- [Zapier with DogBot](https://getdogbot.com/integrations/zapier) on the integrations page says what else the two do together.
