Skip to the page

Recipes

WordPress recipes

Add BlueBot’s “Text us” button to a WordPress site, or text people from its forms.

Three recipes for WordPress. 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 WordPress connects

  • Built in: It works inside BlueBot with nothing else to set up.
  • Text Hook: A Text Hook is a BlueBot address the app posts its own webhook to. You map its fields to a recipient and a template, and each post becomes a text.
  • Zapier: BlueBot’s Zapier app has a Send Text action and instant triggers for incoming texts and every change of state.

Add a “Text us” button

PartWhat it is
TriggerA visitor taps “Text us” on your site
ActionWordPress acts on what BlueBot reports
Connects throughBuilt in

Steps

  1. Copy the website widget’s script tag from BlueBot’s dashboard.
  2. Add it to every page through your theme’s header or a plugin that adds scripts.
  3. A visitor types their name, number and question, and BlueBot texts them from your number.
  4. The conversation carries on in iMessage, and you answer from your phone, your Mac or BlueBot’s inbox.

Test it

Try it once with your own number before you turn it on for anyone else.

Answer common questions with Autopilot

PartWhat it is
TriggerA visitor’s question comes in through the button
ActionBlueBot’s webhook starts it, and WordPress takes the text
Connects throughBuilt in

Steps

  1. Turn on Autopilot and give it your instructions and FAQ.
  2. It drafts a reply to each new question from what you gave it, and hands off when it isn’t sure.
  3. Read each draft in BlueBot’s inbox and send it, or let Autopilot send on its own once you trust it.

Map the fields

From BlueBotInto WordPress
FromThe phone number to find the person by in WordPress. It’s in E.164 (+15555550123); search by the last 10 digits if WordPress stores numbers another way.
TextThe words, for a note, a row or a message. Null when the person sent only a picture.
Received AtWhen it came in, in UTC.
FilesPictures and voice memos. Each url works for an hour, so copy a file you want to keep.
Chat IDSet when the text came in a group chat; null for a one-to-one text.

Test it

Text your BlueBot number from another phone and check that the step ran. BlueBot copies texts from people you’ve texted through it, unless you set Which chats to copy to Everything.

Text people who fill in a form

PartWhat it is
TriggerA form plugin posts its webhook
ActionA BlueBot Text Hook turns each post into a text
Connects throughText Hook

Steps

  1. Make a Text Hook in BlueBot and copy its address.
  2. In a form plugin that can post a webhook, add the address to your form.
  3. Submit the form once, then map the name and phone fields from the payload BlueBot kept.
  4. Write the template, and each submission becomes a text from your number.

Map the fields

Text Hook settingSet it to
RecipientThe field in WordPress’s post that holds the person’s phone number, written as a path such as {{body.phone}}.
TextHi {{body.first_name}}, thanks for your message. This is Priya at Cedar Dental. I’ll text you back today about an appointment.
Metadatasource set to wordpress. BlueBot adds the hook’s id by itself.

Test it

Post a sample to the hook’s address with your own number in the phone field, as below. A text arrives on your phone, and the hook’s page lists the post.

A test post shaped like WordPress’s
curl -X POST "https://usebluebot.com/h/YOUR_HOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"phone":"+15555550123","first_name":"Maria"}'

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
  • A text that can’t go yet waits with a hold rather than failing: quiet hours, your Mac away, a daily limit. Holds
  • WordPress with BlueBot on the integrations page says what else the two do together.