Send outbound WhatsApp messages
Start WhatsApp conversations with contacts using approved message templates, personalize them with contact attributes and hand the replies to your agent.
Working draft. These docs are illustrative: names, endpoints and examples describe the intended behaviour and can change before launch.
Outbound WhatsApp lets your agent write to a contact first. You use it for order updates, appointment reminders, abandoned cart nudges and follow-ups after a support case. When the contact replies, the agent continues the conversation.
Before you start
- WhatsApp is connected to the agent. Follow WhatsApp.
- You have at least one approved message template. WhatsApp requires a template for the first message to a contact outside an active conversation. See WhatsApp templates.
- The contacts have a phone number in international format and agreed to receive WhatsApp messages from you. This page is not legal advice.
Send a message to one contact
- Open Contacts and select a contact.
- Select Message > WhatsApp.
- Choose a Template.
- Fill in the template variables. They are prefilled from contact attributes where possible.
- Select Send.
You should see the message in the contact's conversation list with the status Sent, then Delivered.
Send to a list
Use an outbound campaign with the channel set to WhatsApp. Choose the template and map each variable to a contact attribute:
| Template variable | Maps to |
|---|---|
{{1}} |
Contact name |
{{2}} |
Order number or other attribute |
{{3}} |
Appointment date or other attribute |
Contacts with a missing value for a mapped attribute are skipped and listed in the campaign results, so you can fix the data and send again.
Start from an event
If your own system knows when to message, for example when an order ships, use the CLI or the API to start a conversation with a template. For quick tests from a terminal, the octo whatsapp command group is available. Run octo whatsapp --help to see its subcommands.
octo whatsapp --help
What happens after the reply
When the contact answers, the conversation opens and the agent replies using its sources and procedures. Free-form replies are possible while the conversation is active on WhatsApp. When it has been quiet for a while, the next message must again be a template.
Tip: Write a procedure for the message you send. If the template says "Your order has shipped", the agent should know to answer questions about tracking and delivery.
Test it
- Add your own number as a contact.
- Send the template to yourself.
- Reply with a question and check that the agent answers.
- Open Test > Playground to check which procedure it used, if the answer is wrong.
Opt-outs
When a contact replies "stop", they are marked as opted out and skipped in later campaigns. Review the list in Contacts by filtering on WhatsApp opt-out.
Troubleshooting
- Message not delivered. Check the number format and that the template is approved.
- Variables show as blank. Check the contact attribute and the mapping.
- The agent gives a generic answer. Add a procedure for the template's topic.