WaAPI icon

WaAPI

Interact with WaAPI API

Actions83

Overview

This node interacts with the WaAPI API to retrieve chat data filtered by a specific label ID. It is useful in scenarios where you want to organize or analyze chats based on labels, such as categorizing customer support conversations, filtering marketing campaign responses, or managing chat groups by tags.

For example, if you have labeled chats for different product inquiries, this node can fetch all chats associated with a particular product label, enabling targeted processing or reporting.

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 are retrieved.

Output

The node outputs JSON data containing the list of chats that match the specified label ID. Each item in the output corresponds to a chat object as returned by the WaAPI API. The structure typically includes chat metadata such as chat ID, participants, messages, timestamps, and label information.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the WaAPI API.
  • The node uses the base URL https://waapi.app/api/v1 for API requests.
  • Proper configuration of the API key credential within n8n is necessary for successful operation.

Troubleshooting

  • Common Issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Providing an incorrect or non-existent label ID may result in empty results.
    • Network connectivity issues can prevent the node from reaching the WaAPI service.
  • Error Messages:

    • Authentication errors typically indicate problems with the API key; verify the credential setup.
    • "Not Found" or similar errors may mean the instance ID or label ID does not exist; double-check input values.
    • Timeout or connection errors suggest network problems; ensure internet access and API availability.

Links and References

Discussion