Actions39
- Panel Actions
- Message Actions
- Chatbot Actions
- Contact Actions
- Sequence Actions
- Session Actions
Overview
This node interacts with the WTS Chat API to perform various messaging operations. Specifically, the 'Send Template To Contact' operation allows users to send a predefined message template to a contact via a specified communication channel. It supports dynamic template parameters, file attachments (either as URLs or binary files), and options to control message sending behavior such as synchronous sending, enabling chatbots, hiding sessions, and forcing session starts. This operation is useful for automating personalized message delivery in customer support, marketing campaigns, or chatbot interactions.
Use Case Examples
- Sending a promotional message template with personalized parameters to a customer on Instagram.
- Automating customer support responses by sending predefined templates with attached files through a specified channel.
- Triggering chatbot interactions by sending template messages with bot activation enabled.
Properties
| Name | Meaning |
|---|---|
| Chatbot Name or ID | Select or specify the chatbot to use for sending the message template. |
| Department Name or ID | Select or specify the department associated with the message sending context. |
| User Name or ID | Select or specify the user within the chosen department to send the message. |
| From Name or ID | Select or specify the communication channel from which the message will be sent. |
| Templates Name or ID | Select or specify the message template to send. |
| Params | Parameters to customize the template message, each with a name and value. |
| To | The recipient's phone number or username to send the message to. |
| Url | URL of a file to attach to the template message, if applicable. |
| Input Field File Name | Name of the input field containing the base64 encoded file to attach to the message. |
| Send Synchronous Message | Flag to determine if the message should be sent synchronously. |
| Enable Bot | Flag to activate the chatbot upon receiving a response from the contact. |
| Hidden Session | Flag to mark the session as hidden. |
| Force Start Session | Flag to force the start of a new session when sending the message. |
Output
JSON
json- Response data from the WTS Chat API after sending the template message, including message status and details.
Dependencies
- WTS Chat API
Troubleshooting
- Ensure the 'From' channel and 'To' recipient fields are correctly filled; missing these will cause errors.
- If sending a file, verify that the file exists in the input data or a valid URL is provided.
- Template selection is mandatory; failure to select a template will result in an error.
- Check API key credentials are correctly configured to avoid authentication errors.
- For synchronous message sending, ensure the flag is set appropriately to avoid unexpected behavior.
Links
- n8n Expressions Documentation - Guide on using expressions to dynamically set parameter values.