Actions39
- Chatbot Actions
- Contact Actions
- Message Actions
- Panel Actions
- Sequence Actions
- Session Actions
Overview
The WTS Chat node for n8n allows you to interact with the Wts API, specifically to manage contacts, messages, sessions, panels, sequences, and chatbots.
For the Contact resource and the Get By Phone operation, this node retrieves contact information from Wts by searching for a contact using their phone number. This is useful in scenarios where you need to look up user details based on an incoming phone number, automate CRM workflows, or enrich data in your automation pipelines.
Practical examples:
- Automatically fetch contact details when a new message arrives from an unknown number.
- Enrich leads in your CRM by pulling additional information using just a phone number.
- Validate if a phone number exists in your Wts contact database before proceeding with further actions.
Properties
Supported Input Properties
| Display Name | Type | Description |
|---|---|---|
| Phone Number | String | The phone number to search for. Enter the phone number of the contact you want to retrieve. |
| Include Details | Multi-Options | Additional details to include in the response. Options: Tags, CustomFields. |
Output
The output will be a single item (in the json field) containing the contact's information as returned by the Wts API. The structure typically includes:
{
"id": "string",
"name": "string",
"phonenumber": "string",
"email": "string",
"tags": [ /* array of tag objects, if 'Tags' included */ ],
"customFields": { /* object with custom fields, if 'CustomFields' included */ },
// ...other standard contact properties
}
- If Include Details is set, the output will also contain the requested extra fields (
tags,customFields). - The exact structure may vary depending on the Wts API response.
Dependencies
- External Service: Requires access to the Wts API.
- API Key: You must configure valid Wts API credentials in n8n under the name
wtsApi. - n8n Configuration: No special configuration beyond setting up the credentials.
Troubleshooting
Common Issues:
- Invalid or missing phone number: If the phone number is empty or incorrectly formatted, the node may return an error or no results.
- Missing API credentials: If the Wts API key is not configured, the node will fail to connect.
- No matching contact: If no contact is found for the given phone number, the output may be empty or contain an error message from the API.
Error Messages:
"NodeApiError: ..."– Indicates an issue with the API request, such as invalid input or authentication failure.- Resolution: Check that the phone number is correct and that your API credentials are valid.
Links and References
- Wts.chat Official Website
- n8n Documentation
- For more details on the Wts API, refer to their official API documentation (if available).