Send WhatsApp or channel message
BetaChanges data
Sends a message on WhatsApp or another MessageBird channel.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The MessageBird connection the step signs in with. |
| ToRequired | The person's address on that channel — for WhatsApp, their phone number. |
| Channel idRequired | The MessageBird channel to send from, from Channels in the dashboard. It decides which product the message goes out on. |
| Message type | Outside the 24 hours after the person last wrote to you, WhatsApp only delivers an approved template. |
| Message | text |
| Address of the image or file | A public https address MessageBird can fetch the file from. |
| Template | The approved WhatsApp template, as JSON: its namespace, its name, the language and the values that fill its placeholders. |
| Status report address | MessageBird calls this address when the status changes. |
| Your reference | A label of at most 36 characters that MessageBird carries with the message. |
| Fall back to channel | Send over this channel instead when the first one does not deliver in time. |
| after | How long to wait first, e.g. 5m or 1h. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `messagebird`) |
to | textits `{{ }}` must give a string |
channelId | textits `{{ }}` must give a string |
type | "text" or "image" or "file" or "hsm", by default "text" |
text | textused when `type` is "text" |
mediaUrl | textits `{{ }}` must give a string; used when `type` is one of "image", "file" |
hsm | any JSONused when `type` is "hsm" |
reportUrl | text |
trackId | textits `{{ }}` must give a string |
fallbackChannelId | textits `{{ }}` must give a string |
fallbackAfter | text |
Output
| Field | Type |
|---|---|
messageId | string |
statusaccepted, pending, sent, delivered or failed | string |
Sample output, and the expression for each field
- messageId"cm-1"
- status"accepted"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"channelId": "<channel id>",
"connection": "<connection id>",
"fallbackAfter": "",
"fallbackChannelId": "",
"mediaUrl": "",
"reportUrl": "",
"text": "",
"to": "<to>",
"trackId": "",
"type": "text"
},
"label": "Send WhatsApp or channel message",
"type": "messagebird.sendConversationMessage",
"version": 1
}