WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

This node operation retrieves chat messages from a specified chat session. It is useful for scenarios where you need to fetch conversation history, analyze chat content, or process messages for automation workflows. For example, you can use it to get the latest 100 messages from a chat, filter messages by timestamp, or download media attached to messages.

Use Case Examples

  1. Fetch the last 50 messages from a specific chat session to analyze customer support interactions.
  2. Download media files from chat messages for archival or processing.
  3. Filter messages sent after a certain date to monitor recent conversations.

Properties

Name Meaning
Session The chat session identifier to fetch messages from.
Download Media Whether to download media files attached to the messages.
Chat Id The identifier of the chat to retrieve messages from.
Limit The maximum number of messages to retrieve.
Offset The number of messages to skip before starting to collect the result set.
Filter Timestamp Lte Filter to include messages before or at this timestamp.
Filter Timestamp Gte Filter to include messages after or at this timestamp.
Filter From Me Filter messages to include only those sent by the user (true) or all messages (false).
Request Options Additional request settings such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • messages - Array of retrieved chat messages with their details.
  • media - Downloaded media files associated with the messages, if requested.

Dependencies

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

Troubleshooting

  • Ensure the session and chatId values are correct and valid to avoid empty or error responses.
  • If media download is enabled, verify that the node has sufficient permissions and network access to download media files.
  • Timeout errors may occur if the server is slow or unresponsive; adjust the timeout setting accordingly.
  • SSL certificate errors can be bypassed by enabling the 'Ignore SSL Issues' option, but this reduces security.

Discussion