WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

Chats → Sync Device Chats

AI-generated

Overview

The node integrates with the WaliChat WhatsApp API to synchronize recent chats from a specified WhatsApp number (device). It fetches a limited number of recent chats and messages per chat, allowing users to keep their workflow updated with the latest conversations on their WhatsApp devices.

This node is beneficial in scenarios such as:

  • Importing recent WhatsApp chats into a CRM or database for analysis.
  • Automating customer support workflows by syncing recent conversations.
  • Archiving or monitoring WhatsApp communications programmatically.

For example, a user can sync the last 50 chats from a particular WhatsApp number and retrieve up to 50 messages per chat to process them further in an automation workflow.

Properties

Name Meaning
WhatsApp Number (device) The ID of the WhatsApp number/device from which to sync chats.
Maximum Chats (size) The maximum number of recent chats to synchronize (default is 50).
Maximum Messages Per Chat (messages) The maximum number of messages to sync per individual chat (default is 50).

Output

The node outputs JSON data representing the synchronized chats and their messages. Each output item corresponds to the result of syncing chats from the specified WhatsApp device, including details about each chat and its messages.

If binary data were involved (e.g., media files), it would be summarized accordingly, but this operation focuses on chat text data.

Dependencies

  • Requires an API key credential for authenticating with the WaliChat WhatsApp API.
  • The node depends on the WaliChat API service being accessible and properly configured.
  • No additional environment variables are explicitly required beyond the API key credential.

Troubleshooting

  • Common Issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Specifying a WhatsApp number (device) that does not exist or is not linked to the API account may result in errors or empty results.
    • Requesting too many chats or messages might lead to rate limiting or timeouts depending on API limits.
  • Error Messages:

    • Authentication errors typically indicate issues with the provided API key; verify the credential setup.
    • "Device not found" or similar errors suggest the WhatsApp number ID is incorrect or unavailable.
    • Timeout or rate limit errors require reducing the requested number of chats/messages or retrying later.

Links and References

Discussion