WSAPI icon

WSAPI

Interact with WSAPI WhatsApp API

Overview

This node interacts with the WSAPI WhatsApp API, specifically allowing users to set their WhatsApp presence status. The "Set Presence" operation under the "Account" resource lets you control whether your WhatsApp account appears online or offline to your contacts.

Common scenarios include:

  • Automatically setting your presence to "Unavailable" during non-working hours to appear offline.
  • Setting presence to "Available" when you want contacts to see you as online and reachable.

Practical example:

  • A user configures this node in an automation workflow to mark themselves as "Unavailable" at night and "Available" again in the morning, managing their visibility on WhatsApp without manual intervention.

Properties

Name Meaning
Status Set your WhatsApp presence status visibility. Options:
- Available: show online status to contacts
- Unavailable: appear offline

Output

The node outputs JSON data representing the result of the presence status update operation. This typically includes confirmation details from the WSAPI WhatsApp API about the new presence state.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the WSAPI WhatsApp API.
  • The node expects a base URL configured in the credentials for the WSAPI endpoint.
  • No other external dependencies are explicitly required.

Troubleshooting

  • Common issues:

    • Invalid or missing API authentication token can cause authorization failures.
    • Incorrect base URL configuration may lead to connection errors.
    • Providing an unsupported status value will likely cause the operation to fail.
  • Error messages:

    • "The resource "account" is not known!" — indicates an invalid resource selection; ensure "Account" is selected.
    • "The operation "setPresence" is not implemented yet!" — suggests the operation name might be misspelled or not supported; verify operation choice.
    • Network or authentication errors returned by the WSAPI should be checked by reviewing credentials and connectivity.

Resolving these usually involves verifying credentials, ensuring correct property values, and checking network access.

Links and References

Discussion