WTS Chat icon

WTS Chat

Get data from Wts API

Overview

This node interacts with the "Sequence" resource of the WTS Chat API, specifically supporting the operation Get Contacts By Sequence. It retrieves all contacts associated with a given sequence ID. This is useful in scenarios where you want to manage or analyze contacts grouped under specific sequences, such as marketing campaigns, automated workflows, or customer engagement sequences.

Practical example:
If you have a sequence representing a drip email campaign or a sales follow-up process, this node can fetch all contacts currently enrolled in that sequence, enabling further processing like sending targeted messages, updating contact information, or exporting contact lists.

Properties

Name Meaning
Sequence ID The unique identifier of the sequence for which to retrieve associated contacts. Must be provided as a string.

Output

The node outputs an array of JSON objects, each representing a contact associated with the specified sequence. The exact structure of each contact object depends on the WTS Chat API response but typically includes contact details such as name, phone number, email, and other metadata.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the WTS Chat API via an API key credential.
  • The node expects the API key credential to be configured in n8n prior to execution.
  • Network access to https://api.wts.chat is required.

Troubleshooting

  • Error: "SequenceID is empty!"
    Occurs if the Sequence ID property is not set or is an empty string. Ensure you provide a valid sequence ID.

  • API errors (e.g., authentication failure, network issues)
    These will be thrown as node errors. Verify your API key credential is correct and has sufficient permissions. Also, check network connectivity.

  • Rate limiting or timeout errors
    If many requests are made in quick succession, the API might throttle requests. Consider adding delays or handling retries.

Links and References

Discussion