WTS Chat icon

WTS Chat

Get data from Wts API

Overview

This node interacts with the WTS Chat API to retrieve detailed information about a specific "Panel" entity by its unique identifier. The "Get Panel By ID" operation fetches a panel's data and optionally includes related details such as cards, steps, step card counts, step fields, and tags associated with the panel.

Typical use cases include:

  • Retrieving comprehensive information about a project management or CRM panel for reporting or automation.
  • Fetching panel details along with its associated cards and steps to synchronize data with other systems.
  • Using panel metadata and tags to trigger workflows based on panel status or contents.

Example: A user wants to get all information about a sales pipeline panel including its cards and tags to update a dashboard or send notifications.

Properties

Name Meaning
Panel ID The unique identifier of the panel to retrieve.
Include Details Optional list of additional related data to include in the response. Options are:
- Cards: Include cards within the panel.
- Steps: Include steps associated with the panel.
- StepsCardCount: Include count of cards per step.
- StepsFields: Include fields related to steps.
- Tags: Include tags assigned to the panel.

Output

The output is a JSON object representing the panel data retrieved from the WTS API. It contains the panel's core properties and, depending on the selected "Include Details" options, may also include nested arrays or objects for:

  • Cards: List of cards belonging to the panel.
  • Steps: Steps defined within the panel.
  • StepsCardCount: Counts of cards per step.
  • StepsFields: Additional fields related to steps.
  • Tags: Tags associated with the panel.

The structure reflects the API response and can be used directly in subsequent workflow nodes for processing or decision-making.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the WTS Chat API via an API key credential configured in n8n.
  • The node uses the WtsCrmService module internally to call the getPanelById method.
  • Network access to https://api.wts.chat is necessary.

Troubleshooting

  • Missing Panel ID: If the "Panel ID" property is empty, the node throws an error prompting to fill in the panel ID field.
  • API Errors: Any issues communicating with the WTS API (e.g., invalid API key, network errors) will result in an error wrapped as a NodeApiError.
  • Invalid Include Details Values: Selecting unsupported values in "Include Details" might cause unexpected results or API errors.
  • Rate Limits: If many requests are made in quick succession, the API might throttle requests; consider adding delays between executions.

To resolve errors:

  • Ensure the "Panel ID" is correctly provided.
  • Verify that the API key credential is valid and has sufficient permissions.
  • Check network connectivity to the WTS API endpoint.
  • Review the selected "Include Details" options for correctness.

Links and References

Discussion