Actions12
- Chat Actions
- Session Actions
- Webhook Actions
Chat → Send Buttons
AI-generatedOverview
The node enables sending interactive button messages through the StevoChat API within a chat context. It allows users to send messages containing buttons that recipients can click, facilitating richer and more engaging conversations. This is particularly useful for customer support, marketing campaigns, or any scenario where you want to prompt users with predefined response options.
For example, a business could send a message with buttons like "Yes", "No", and "More Info" to quickly gather user feedback or guide them through a decision process.
Properties
| Name | Meaning |
|---|---|
| Phone | The recipient's phone number including country code. |
| Buttons | A JSON array representing the buttons to be sent. Each button defines an interactive option. |
| ID (Optional) | An optional message ID to uniquely identify the message being sent. |
Output
The node outputs a JSON object representing the response from the StevoChat API after sending the button message. This typically includes details about the sent message such as status, message ID, or any metadata returned by the API.
The node does not output binary data.
Dependencies
- Requires an active connection to the StevoChat API.
- Needs an API authentication token configured in the node credentials to authorize requests.
- The node uses HTTP POST requests to the
/chat/send/buttonsendpoint of the StevoChat API.
Troubleshooting
- Invalid JSON in Buttons: Since the
Buttonsproperty expects a JSON string, malformed JSON will cause errors. Ensure the JSON array is correctly formatted. - Missing Required Fields: Omitting the
PhoneorButtonsproperties will result in request failures. - API Authentication Errors: If the API key or token is invalid or missing, the node will fail to authenticate.
- Network Issues: Connectivity problems may cause timeouts or failed requests.
- Error Messages: The node returns error messages from the API; reading these carefully helps identify issues like invalid phone numbers or unsupported button formats.
To resolve errors, verify input correctness, ensure valid credentials, and check network connectivity.
Links and References
- StevoChat API Documentation (replace with actual URL)
- n8n Documentation on Creating Custom Nodes