WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Session → Send Presence Update

AI-generated

Overview

This node operation sends a presence update for a specified WhatsApp session. It allows users to set their presence status such as available, composing, paused, recording, or unavailable. This is useful for indicating user activity or availability in WhatsApp sessions, for example, showing when a user is typing or is online.

Use Case Examples

  1. A customer support bot can use this node to show 'composing' status while preparing a reply to a customer message.
  2. An automation workflow can set the presence to 'available' when the user is ready to receive messages and 'unavailable' when offline.

Properties

Name Meaning
Session Selects the WhatsApp session to use for sending the presence update. Optional if the session ID is provided in the input data.
JID The Jabber ID (JID) to use for the presence update, typically the user's own WhatsApp ID, e.g., 1234567890@s.whatsapp.net.
Presence Type The type of presence update to send, such as available, composing, paused, recording, or unavailable.
Delay In Milliseconds Optional delay before sending the presence update, specified in milliseconds.
Options Additional request options such as retry behavior on failure and maximum retry attempts.

Output

JSON

  • json - The JSON response from the API after sending the presence update, containing details of the update status.

Dependencies

  • Requires an API key credential for WasenderAPI to authenticate requests.

Troubleshooting

  • Common issues include missing or invalid session ID, incorrect JID format, or network/API errors causing request failures.
  • Error messages may indicate unsupported session operations or missing required parameters like JID or presence type.
  • Ensure the session is selected or provided in the input data, and the JID is correctly formatted as a WhatsApp JID.

Discussion