Actions39
- Panel Actions
- Message Actions
- Chatbot Actions
- Contact Actions
- Sequence Actions
- Session Actions
Overview
This node interacts with the WTS Chat API to send a message template within a specific chat session. It allows users to specify the session ID, select a template by name or ID, and provide parameters for the template. The node supports sending files either by URL or by uploading a base64-encoded file from the input data. It also supports synchronous message sending, which can be useful for workflows requiring immediate confirmation of message delivery.
Use Case Examples
- Sending a predefined message template to a customer support chat session to automate responses.
- Using dynamic parameters to customize the template content based on session-specific data.
- Uploading and sending a file as part of the template message within a session.
Properties
| Name | Meaning |
|---|---|
| Session ID | The unique identifier of the chat session where the template message will be sent. |
| Url | URL of the file to be sent with the template message, if applicable. |
| Input Field File Name | The name of the input field containing the base64 string of the file to be sent with the template message. |
| Send Synchronous Message | Determines whether the message sending should be synchronous (wait for confirmation before proceeding). |
| Template Name or ID | The selected template to send in the session, chosen from a list or specified by ID. |
| Params | Parameters to customize the template message, specified as name-value pairs. |
Output
JSON
json- The response from the WTS Chat API after sending the template message in the session, including message details and status.
Dependencies
- WTS Chat API
Troubleshooting
- Ensure the Session ID is provided and valid; missing or empty Session ID will cause errors.
- If sending a file, either a URL or a base64-encoded file input must be provided; missing both will cause an error.
- Template selection is mandatory; not selecting a valid template will cause an error.
- Check API key credentials for authentication issues with the WTS Chat API.
- If sending a file from input, ensure the binary data exists and the specified input field name is correct.
Links
- n8n Expressions Documentation - Documentation on how to use expressions in n8n for dynamic parameter values.