Send a private message
send_messageSend a private message to a contact after user approval. Uses approved WhatsApp templates when the 24-hour messaging window has expired.
Instructions
Send a private message to a contact. Two rules that cause most failures: on Facebook, Instagram and WhatsApp a free-form message only reaches someone within 24 hours of their last message, and outside that window WhatsApp needs an approved template (pass template_name). Show the user what you are about to send and let them approve it first — this goes out under their brand.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The message, already approved by the user. | |
| id_account | Yes | ||
| id_contact | Yes | ||
| template_name | No | An approved WhatsApp template, for messages outside the 24h window. | |
| id_organization | No | The PlanVortex organization id. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| already_existed | Yes |