WTS Chat icon

WTS Chat

Get data from Wts API

Overview

The "Get Panel By ID" operation in the WTS Chat node retrieves detailed information about a specific panel from the WTS API by its unique identifier. This operation is useful when you want to fetch comprehensive data about a particular panel, including optional related details such as cards, steps, tags, and other metadata.

Typical use cases include:

  • Displaying or processing detailed panel information within an automation workflow.
  • Integrating panel data into dashboards or reports.
  • Using panel details to trigger further actions based on panel content or status.

For example, you might use this operation to get all cards and tags associated with a panel to analyze task progress or customer interactions linked to that panel.

Properties

Name Meaning
Panel ID The unique identifier of the panel to retrieve.
Include Details Optional additional details to include in the response. Possible values: Cards, Steps, StepsCardCount, StepsFields, Tags

Output

The output is a JSON object representing the panel data retrieved from the WTS API. It includes the core panel information and, depending on the selected "Include Details" options, may also contain nested data such as:

  • Cards: List of cards associated with the panel.
  • Steps: Steps defined within the panel.
  • StepsCardCount: Count of cards per step.
  • StepsFields: Fields related to the steps.
  • Tags: Tags assigned to the panel.

This structured JSON allows downstream nodes or workflows to access detailed panel attributes and related entities for further processing.

Dependencies

  • Requires an active connection to the WTS API via an API key credential configured in n8n.
  • The node depends on the WtsCrmService.getPanelById method to fetch panel data.
  • Network connectivity to https://api.wts.chat is necessary.

Troubleshooting

  • Missing Panel ID: If the "Panel ID" property is empty, the node will throw an error indicating the field must be filled.
  • API Errors: Errors returned from the WTS API (e.g., invalid ID, permission issues) are wrapped and thrown as node errors. Check the panel ID validity and API credentials.
  • Include Details Misconfiguration: Selecting incompatible or unsupported detail options may result in incomplete or unexpected data.
  • Network Issues: Ensure the n8n instance has internet access and the API endpoint is reachable.

Links and References

Discussion