# Wix recipes

> Text people who fill in a form or book on your Wix site.

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

## How Wix connects

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

## Text people who fill in a form

| Part             | What it is                                |
| ---------------- | ----------------------------------------- |
| Trigger          | When a form is submitted on your Wix site |
| Action           | BlueBot’s **Send Text** action            |
| Connects through | [Zapier](https://usebluebot.com/docs/zapier)                    |

### Steps

1. Start a Zap with Wix’s trigger for a new form submission.
2. Add BlueBot’s Send Text action and map the phone field to To.
3. Write the text with the person’s first name mapped in.

### Map the fields

| BlueBot field                | Map it to                                                                                                                                |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Wix. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, thanks for your message! This is Ana from Petal & Stem. I’ll text you back within the hour.                         |
| `{{first_name}}` in the text | Wix’s first name field.                                                                                                                  |
| Metadata                     | `source` set to `wix`, 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 BlueBot returned with `state: "queued"`. Then map Wix’s field back into **To** and turn the Zap on.

## Confirm bookings

| Part             | What it is                              |
| ---------------- | --------------------------------------- |
| Trigger          | When a booking is made on your Wix site |
| Action           | BlueBot’s **Send Text** action          |
| Connects through | [Zapier](https://usebluebot.com/docs/zapier)                  |

### Steps

1. Start a Zap with Wix’s trigger for a new booking.
2. Add BlueBot’s Send Text action and map the client’s phone to To.
3. Write the text with the service and time mapped in.

### Map the fields

| BlueBot field                | Map it to                                                                                                                                |
| ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| To                           | The person’s mobile number from Wix. US numbers can leave off the +1.                                                                    |
| Text                         | Hi {{first_name}}, you’re booked for {{service}} on {{date}} at {{time}}. Reply here if you need to change it.                   |
| `{{first_name}}` in the text | Wix’s first name field.                                                                                                                  |
| `{{service}}` in the text    | Wix’s service field.                                                                                                                     |
| `{{date}}` in the text       | Wix’s date field.                                                                                                                        |
| `{{time}}` in the text       | Wix’s time field.                                                                                                                        |
| Metadata                     | `source` set to `wix`, 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 BlueBot returned with `state: "queued"`. Then map Wix’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 BlueBot cancels texts to them. [Stop words](https://usebluebot.com/docs/concepts/stop-words)
- A text that can’t go yet waits with a hold rather than failing: quiet hours, your Mac away, a daily limit. [Holds](https://usebluebot.com/docs/concepts/holds)
- [Wix with BlueBot](https://usebluebot.com/integrations/wix) on the integrations page says what else the two do together.
