WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The node interacts with the "Sequence" resource of the WTS Chat API, specifically supporting operations to manage contacts within sequences. The "Remove Contact To Sequence" operation allows users to remove a contact from a specified sequence by providing either the contact's ID or phone number along with the sequence ID.

This node is beneficial in scenarios where automated workflows need to dynamically manage contact memberships in messaging or marketing sequences, such as unsubscribing users from campaigns or cleaning up contact lists based on certain triggers.

Example use case:

  • Automatically removing a customer from a promotional message sequence when they opt out via a form submission.
  • Removing contacts who have completed a sequence to avoid duplicate messaging.

Properties

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

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

Output

The output is an array of JSON objects representing the response from the WTS Chat API after attempting to remove the contact from the sequence. The exact structure depends on the API response but typically includes confirmation details about the removal operation.

No binary data output is produced by this operation.

Dependencies

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

Troubleshooting

  • Missing Sequence ID: If the sequence ID is empty or not provided, the node throws an error indicating that the SequenceID field must be filled.
  • Missing Contact Identification: If neither Contact ID nor Phone Number is provided, the node throws an error instructing to add a contact either by ID or phone number.
  • API Errors: Any errors returned by the WTS Chat API during the removal process are caught and rethrown as node errors with descriptive messages.
  • Rate Limiting / Delays: The node includes a delay mechanism when processing multiple items to avoid hitting rate limits; if you experience delays, consider batch sizes accordingly.

Links and References

Discussion