WTS Chat icon

WTS Chat

Get data from Wts API

Overview

This node interacts with the WTS Chat API to manage contacts, including retrieving all contacts with various filtering and pagination options. It supports fetching contacts by status, creation and update date ranges, and includes options to include additional details such as tags, custom fields, and portfolios. The node can automatically paginate through multiple pages of contacts or retrieve a specific page with a defined page size. This is useful for scenarios where users need to list and manage large sets of contact data from the WTS Chat platform, such as syncing contacts, reporting, or integrating contact data into workflows.

Use Case Examples

  1. Retrieve all active contacts with tags and custom fields included.
  2. List contacts created after a specific date, sorted by name in ascending order.
  3. Automatically paginate through all contact pages up to a maximum number of pages.

Properties

Name Meaning
Include Details Specifies additional contact details to include in the response, such as Tags, CustomFields, and Portfolios.
Status Filters contacts by their status. Defaults to ACTIVE if not specified.
CreatedAt.After Filter contacts created after this date and time.
CreatedAt.Before Filter contacts created before this date and time.
UpdatedAt.After Filter contacts updated after this date and time.
UpdatedAt.Before Filter contacts updated before this date and time.
Auto Pagination Enable automatic pagination to retrieve multiple pages of contacts.
Max Pages Maximum number of pages to retrieve when auto pagination is enabled.
Page Number The specific page number to retrieve when auto pagination is disabled.
Page Size Number of contacts to retrieve per page when auto pagination is disabled.
Order By Field name to sort the contacts by.
Order Direction Direction of sorting, either ascending or descending.

Output

JSON

  • json - The JSON output contains the list of contacts retrieved from the WTS Chat API, including any requested details such as tags, custom fields, and portfolios.

Dependencies

  • WTS Chat API with an API key credential

Troubleshooting

  • Common issues include invalid or missing API key credentials, which will cause authentication errors.
  • Incorrect date formats for filtering by creation or update dates may result in no data returned or errors.
  • If auto pagination is enabled, the node may take longer to execute depending on the number of pages and contacts.
  • Errors related to missing required parameters like page number or page size when auto pagination is disabled.
  • API rate limits or network issues may cause request failures; retry or check API status if errors occur.

Discussion