Build WhatsApp Reply Link
replies_whatsapp_linkBuild a clickable WhatsApp deep link with a pre-filled message from a template or raw text. The link opens WhatsApp for manual sending, supporting Arabic and English.
Instructions
Compose a reply (from a template + variables, or from raw text) and wrap it in a clickable https://wa.me deep link that opens WhatsApp with the message pre-filled, ready for a human to press send. Arabic and English text both work — the text is URL-encoded as UTF-8.
Args:
phone (string): customer's phone number, any formatting accepted (spaces, +, dashes) as long as it includes the country code, e.g. '+966 5x xxx xxxx'. Non-digit characters are stripped automatically.
template_id (string, optional): template id from replies_search_templates
variables (object, optional): variable name -> value map, used when template_id is given
text (string, optional): raw message text, used instead of template_id
Provide either template_id or text (not both, not neither).
Returns: { url, text, missingVariables }. This does NOT send anything — it only builds a link. Opening the link (or the human clicking it) still requires WhatsApp to be installed/logged in on that device; sending is a manual click, nothing is sent automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw message text (alternative to template_id) | |
| phone | Yes | Customer phone number with country code, any formatting | |
| variables | No | Variable name -> value map | |
| template_id | No | Template id to compose from |