Actions85
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
The node interacts with the WaAPI API to synchronize chat history for a specified chat instance. It is useful in scenarios where you want to retrieve and keep an updated record of messages from a particular WhatsApp chat, either individual or group chats. For example, this node can be used to back up chat conversations, analyze message content, or integrate chat data into other workflows such as CRM systems or analytics platforms.
Properties
| Name | Meaning |
|---|---|
| Id | The instance ID representing the specific WhatsApp session or client instance to use. |
| Chat Id | The unique identifier of the chat to sync. Format: <countrycode_short><usernumber>@c.us for individual chats or @g.us suffix for groups. |
Output
The node outputs JSON data containing the synchronized chat history for the specified chat ID. This typically includes message details such as timestamps, sender information, message content, and possibly metadata related to the chat session. There is no indication that binary data is output by this node.
Dependencies
- Requires an API key credential for authenticating with the WaAPI service.
- The node depends on the external WaAPI REST API endpoint at
https://waapi.app/api/v1. - Proper configuration of the API key credential within n8n is necessary for successful requests.
Troubleshooting
- Common issues:
- Invalid or missing instance ID or chat ID parameters will cause the synchronization to fail.
- Authentication errors if the API key credential is not set or invalid.
- Network connectivity problems preventing access to the WaAPI endpoint.
- Error messages:
- Authentication failures usually indicate incorrect or expired API credentials; verify and update the API key.
- "Chat not found" or similar errors suggest the chat ID does not exist or is incorrectly formatted; ensure the chat ID follows the required pattern.
- Timeout or connection errors may require checking network settings or API service status.
Links and References
- WaAPI Official Documentation (for detailed API usage and chat synchronization)
- WhatsApp Chat ID Format Explanation (general guidance on chat ID formats)