WaliChat icon

WaliChat

Interact with WaliChat WhatsApp API

Actions148

WhatsApp session → Sync session

AI-generated

Overview

The node integrates with the WaliChat WhatsApp API, enabling various WhatsApp-related operations. Specifically, for the WhatsApp session resource and the Sync session operation, it synchronizes the session state of a selected WhatsApp number (device). This is useful to ensure that the session data in n8n is up-to-date with the actual WhatsApp session status, which can help maintain connection stability and accurate session management.

Practical scenarios include:

  • Automatically syncing session information after a device reconnects.
  • Verifying session validity before sending messages.
  • Managing multiple WhatsApp numbers by keeping their sessions synchronized.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) whose session you want to synchronize. Options are dynamically loaded from available devices.

Output

The node outputs JSON data representing the result of the session synchronization operation. This typically includes updated session details such as connection status, session tokens, or metadata related to the WhatsApp number's session.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the WaliChat WhatsApp API.
  • The node depends on the external WaliChat service to perform session synchronization.
  • Proper configuration of the API key credential within n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or expired API key leading to authentication failures.
    • Selecting a WhatsApp number (device) that is not currently registered or active.
    • Network connectivity problems preventing communication with the WaliChat API.
  • Error messages:

    • Errors returned from the API will be surfaced in the node output if "Continue On Fail" is enabled.
    • Typical errors might include "Unauthorized" (check API key), "Device not found" (verify WhatsApp number selection), or timeout errors (check network).
  • Resolutions:

    • Verify and update the API key credential.
    • Ensure the WhatsApp number is correctly set up and active in WaliChat.
    • Check network access and firewall settings.

Links and References

Discussion