WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

This node retrieves the presence status of a user in a chat session. It is useful for scenarios where you need to monitor or react to the online/offline status of a user in real-time communication applications, such as customer support chat systems or collaborative platforms.

Use Case Examples

  1. Check if a user is currently online before sending a message.
  2. Monitor user presence to trigger notifications or status updates in an app.

Properties

Name Meaning
Session The name of the chat session to query presence for.
Chat Id The unique identifier of the chat to get the presence status from.
Request Options Additional options to control request behavior such as batching, SSL validation, proxy settings, and timeout.

Output

JSON

  • presenceStatus - The presence status of the user in the chat (e.g., online, offline, away).
  • lastSeen - Timestamp of the user's last presence update.
  • session - The session name used in the request.
  • chatId - The chat identifier used in the request.

Dependencies

  • Requires an API key credential or authentication token to access the chat service API.

Troubleshooting

  • Ensure the session name and chat ID are correctly provided and exist in the chat system.
  • If SSL errors occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.
  • Check proxy settings if requests fail in network-restricted environments.
  • Timeout errors may occur if the server is slow or unresponsive; increase the timeout setting if needed.

Discussion