WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

This node operation retrieves messages from a specified group in an admin-only context within a WhatsApp automation workflow. It is useful for scenarios where an administrator needs to access group messages for monitoring, analysis, or record-keeping purposes. For example, a community manager might use this to fetch recent messages from a group to review discussions or moderate content.

Use Case Examples

  1. Fetch the last 50 messages from a group to analyze member engagement.
  2. Retrieve messages from a group to archive conversations for compliance purposes.

Properties

Name Meaning
Session The session name used to authenticate and identify the WhatsApp session for the request.
Id The unique identifier of the WhatsApp group from which to retrieve messages.
Request Options Additional settings to control request behavior such as batching, SSL certificate validation, proxy usage, and timeout duration.

Output

JSON

  • messages - Array of messages retrieved from the specified group.
  • groupId - The ID of the group from which messages were fetched.
  • session - The session name used for the request.

Dependencies

  • WhatsApp API or service accessed via the session name provided.

Troubleshooting

  • Ensure the session name is valid and active; invalid sessions will cause authentication failures.
  • Verify the group ID is correct and that the session has admin privileges for the group; otherwise, message retrieval will fail.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security risks.
  • Check proxy settings if requests are not going through, especially in restricted network environments.
  • Timeout errors may occur if the server is slow or unresponsive; increase the timeout setting if needed.

Discussion