Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node interacts with the Wassenger WhatsApp API to manage chat statuses for WhatsApp numbers. Specifically, the "Set Chat Status" operation allows users to update the internal status of a particular chat associated with a WhatsApp number. This is useful in customer support or sales scenarios where chats need to be tracked by their lifecycle stage, such as marking conversations as active, pending, resolved, archived, or removed.

Practical examples:

  • A support agent marks a chat as "resolved" after successfully assisting a customer.
  • Automatically archiving chats that have been inactive for a certain period.
  • Setting a chat to "pending" when awaiting customer response.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number (device) from which the chat belongs. This is selected from available devices.
Chat ID The unique identifier of the chat to update. Examples include user chats like 447362053576@c.us or group chats like 44736205357600000000@g.us.
Status The new internal status to assign to the chat. Options are: Active, Pending, Resolved, Archived, Removed.

Output

The node outputs JSON data representing the result of the status update operation. Typically, this will include confirmation details about the updated chat status or any relevant metadata returned by the Wassenger API.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Wassenger WhatsApp API.
  • The node depends on the Wassenger service being accessible and properly configured.
  • The "WhatsApp Number" must be registered and available within the Wassenger account.
  • The node uses dynamic loading of WhatsApp numbers (devices) via a method named getDevices.

Troubleshooting

  • Common issues:

    • Invalid or missing WhatsApp number/device ID can cause failures.
    • Incorrect chat ID format may lead to errors; ensure IDs follow the expected pattern (number@c.us for users, number@g.us for groups).
    • Insufficient permissions or expired API keys will prevent successful updates.
    • Network connectivity problems with the Wassenger API endpoint.
  • Error messages:

    • Errors related to authentication usually indicate invalid or missing API credentials.
    • "Chat not found" or similar messages suggest the provided chat ID does not exist or is inaccessible.
    • Validation errors if the status value is not one of the allowed options.
  • Resolutions:

    • Verify API key validity and permissions.
    • Confirm the WhatsApp number and chat ID are correct and active.
    • Check network connectivity and API endpoint availability.
    • Use the node's "Continue On Fail" option to handle errors gracefully during batch operations.

Links and References

Discussion