WaAPI icon

WaAPI

Interact with WaAPI API

Actions85

Overview

This node interacts with the WaAPI API to retrieve chat data filtered by a specific label ID. It is designed to fetch chats that are tagged or categorized under a particular label, which can be useful for organizing and managing conversations based on custom labels.

Common scenarios include:

  • Retrieving all chats associated with a certain category or topic.
  • Filtering conversations for reporting or analytics based on labels.
  • Automating workflows that depend on chats grouped by labels.

For example, a user might want to get all customer support chats labeled as "urgent" to prioritize responses.

Properties

Name Meaning
Id The instance ID representing the specific WaAPI instance to query.
Label Id The identifier of the label used to filter chats. This determines which labeled chats to retrieve.

Output

The node outputs JSON data containing the list of chats associated with the specified label ID. Each item in the output represents a chat object with its details as returned by the WaAPI API.

No binary data output is indicated.

Dependencies

  • Requires an active connection to the WaAPI API service.
  • Needs an API key credential configured in n8n to authenticate requests to WaAPI.
  • The base URL for API requests is https://waapi.app/api/v1.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Invalid or missing API credentials: Ensure the API key credential is correctly set up in n8n; otherwise, authentication will fail.
  • Incorrect instance ID or label ID: Verify that the provided IDs exist and are valid within your WaAPI account.
  • Network issues or API downtime: Check network connectivity and WaAPI service status if requests time out or fail.
  • Unexpected response format: If the API changes, the node may not parse responses correctly; verify API version compatibility.

Links and References

Discussion