Actions39
- Chatbot Actions
- Contact Actions
- Message Actions
- Panel Actions
- Sequence Actions
- Session Actions
Overview
The "Send Text To Contact" operation of the WTS Chat n8n node allows you to send a plain text message to a specific contact via a selected channel (such as WhatsApp, Instagram, etc.). This is useful for automating outbound communication, such as sending notifications, alerts, reminders, or personalized messages directly from your workflows.
Common scenarios:
- Sending appointment reminders to clients.
- Notifying users about order status updates.
- Sending marketing or promotional messages to contacts.
- Automating customer support responses.
Example:
Automatically send a thank-you message to a customer after they complete a purchase.
Properties
Below are the input properties relevant to the "Message" resource and "Send Text To Contact" operation:
| Display Name | Type | Description |
|---|---|---|
| Text | string | The content of the message to be sent. Required. |
| Chatbot Name or ID | options | Select a chatbot to use, or specify its ID. Optional; can be left as "Undefined". |
| Department Name or ID | options | Select a department or specify its ID. Optional; can be left as "Undefined". |
| User Name or ID | options | Select a user within the chosen department, or specify their ID. Only shown if a department is selected. |
| From Name or ID | options | The channel (e.g., WhatsApp, Instagram) from which the message will be sent. Required. |
| To | string | The recipient's number or username. Required. |
| Send Synchronous Message | boolean | Whether to send the message synchronously (wait for response before proceeding). Optional. |
| Enable Bot | boolean | If enabled, activates the chatbot upon receiving a response from the contact. Optional. |
| Hidden Session | boolean | If enabled, the session will be hidden. Optional. |
| Force Start Session | boolean | If enabled, forces the start of a new session. Optional. |
Output
The node returns a single item with a json field containing the API response from the WTS Chat service. The structure of this output depends on the external API but typically includes details about the sent message, such as:
{
"id": "message_id",
"status": "sent",
"to": "+1234567890",
"from": "channel_id",
"body": {
"text": "Your message here"
},
"timestamp": "2024-06-01T12:34:56Z",
// ...other metadata fields
}
- There is no binary output for this operation.
Dependencies
- External Service: Requires access to the WTS Chat API.
- API Key: You must configure valid WTS Chat API credentials (
wtsApi) in n8n. - n8n Configuration: Ensure the node has access to the required credentials and that the base URL is set to
https://api.wts.chat.
Troubleshooting
Common issues and error messages:
"Choose channel / Fill in the From field":
The "From Name or ID" property is required. Make sure you select a channel."Set an Instagram number or username for sending / Fill in the To field":
The "To" property is required. Enter the recipient's number or username."Write a text to send / Fill in the Text field":
The "Text" property is required. Enter the message content."There is no data in the input":
This error may occur if you attempt to send a file instead of text. For this operation, ensure only text is provided."Invalid credentials" or authentication errors:
Check that your WTS Chat API credentials are correctly configured in n8n.
How to resolve:
- Double-check all required fields are filled.
- Ensure the selected options (department, user, bot) are valid and not left as "Undefined" unless optional.
- Verify your API key and connection to the WTS Chat service.