Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

The node enables interaction with WhatsApp through the Wappfy API, specifically allowing users to retrieve messages from a specified chat. This operation is useful for scenarios where you want to fetch recent conversation history or monitor chat activity programmatically. For example, you could use this node to:

  • Retrieve the last 20 messages from a customer support chat to analyze customer inquiries.
  • Download media files attached in recent messages for archival or processing.
  • Integrate WhatsApp chat data into CRM or analytics platforms.

Properties

Name Meaning
Chat ID The unique identifier of the chat from which to retrieve messages (e.g., 123456789@c.us).
Limit Number of messages to return from the chat. Default is 20.
Download Media Whether to download media files attached to the messages (true or false). Default is false.

Output

The output is an array of JSON objects representing individual messages retrieved from the specified chat. Each message object contains details such as message content, sender info, timestamps, and potentially media metadata if media is included.

If the "Download Media" option is enabled, media files associated with messages will be downloaded and included accordingly.

Dependencies

  • Requires a valid API key credential for the Wappfy API.
  • The node uses the Wappfy API base URL and instance name configured in credentials.
  • Network access to the Wappfy API endpoint is necessary.

Troubleshooting

  • Invalid Chat ID: If the provided Chat ID does not exist or is malformed, the API may return an error or empty result. Verify the Chat ID format and existence.
  • API Authentication Errors: Missing or invalid API key will cause authentication failures. Ensure the API key credential is correctly set up.
  • Rate Limits or Quotas: Excessive requests might be throttled by the API. Check your API usage limits.
  • Media Download Failures: If "Download Media" is enabled but media URLs are inaccessible, media files may fail to download. Confirm network access and media availability.
  • Empty Results: If no messages are returned, verify that the chat has messages and the limit parameter is appropriate.

Links and References

  • Wappfy API Documentation (general reference for API endpoints)
  • WhatsApp chat ID formats: typically <number>@c.us for direct chats and <number>@g.us for groups.

This summary focuses on the "Chat" resource with the "Get Messages" operation as requested.

Discussion