Actions50
- Account Actions
- Group Actions
- Journal Actions
- Queue Actions
- Sending Actions
- Service Actions
- Status Actions
- Receiving Actions
Sending → sendInteractiveButtons
AI-generatedSummary
Send interactive buttons within a WhatsApp message.
Inputs
- chatId (required) — The recipient's chat ID, formatted as '79000000000@c.us'.
- quotedMessageId — (Optional) The ID of a quoted message to link to.
- header — The title of the message.
- body (required) — The text message content. Emoji symbols are supported.
- footer — The footer text for additional context.
- buttons (required) — Up to 3 buttons can be configured, with options for URL, Call, or Copy actions.
Output shape
no body — success/failure only
Ensure that at least one button is included in the request.
Examples
Example 1: Sending a message with interactive buttons to a user.
chatId: '79000000000@c.us', body: 'Select an option:', buttons: [{buttonText: 'Visit', url: 'https://www.example.com'}, {buttonText: 'Call', phoneNumber: '79000000000'}]