WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The node integrates with the WTS Chat API to manage sequences and contacts within those sequences. Specifically, the "Add Contact To Sequence" operation allows users to add a contact to a specified sequence by providing either the contact's ID or phone number along with the sequence ID.

This operation is useful in scenarios such as marketing automation, customer engagement workflows, or sales pipelines where contacts need to be enrolled into predefined communication sequences for follow-ups, drip campaigns, or onboarding processes.

Practical example:
A user wants to enroll a new lead into an email or messaging sequence after capturing their contact details. By specifying the sequence ID and the contact's phone number or contact ID, this node operation adds the contact to that sequence, triggering subsequent automated messages or actions defined in the sequence.

Properties

Name Meaning
Sequence ID The unique identifier of the sequence to which the contact will be added.
Contact ID The unique identifier of the contact to add to the sequence.
Phone Number The phone number of the contact to add to the sequence (alternative to Contact ID).

Note: Either Contact ID or Phone Number must be provided to identify the contact.

Output

  • The output is a JSON object representing the result of adding the contact to the sequence.
  • The exact structure depends on the API response from the WTS Chat service but typically includes confirmation details about the contact and sequence association.
  • No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the WTS Chat API.
  • The node uses the WTS Chat API endpoint https://api.wts.chat to perform operations.
  • Proper configuration of the API key credential in n8n is necessary for successful execution.

Troubleshooting

  • Error: "Add a contact either by ID or phone number"
    This error occurs if neither Contact ID nor Phone Number is provided. Ensure at least one identifier is supplied.

  • API errors wrapped as NodeApiError
    These indicate issues returned from the WTS Chat API, such as invalid sequence ID, invalid contact ID/phone number, or authentication failures. Check the API key validity and parameter correctness.

  • Empty or invalid Sequence ID
    If the sequence ID is empty or malformed, the API call will fail. Verify the sequence ID before running the node.

  • Rate limiting or timeout
    If many requests are sent rapidly, the API might throttle requests. The node includes a delay between executions when processing multiple items to mitigate this.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion