Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Chat → Get Messages
AI-generatedOverview
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 pull the last 20 messages from a customer support chat to analyze customer inquiries or automate responses based on message content.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat from which to retrieve messages (e.g., 123456789@c.us). |
| Limit | The maximum number of messages to return. Defaults to 20 if not specified. |
| Download Media | Whether to download media files attached to the messages (true or false). |
Output
The output contains an array of message objects in the json field. Each object represents a message retrieved from the specified chat and includes all relevant message details as provided by the Wappfy API. 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.
- Needs configuration of the Wappfy API base URL and instance name within the credentials.
- The node makes HTTP requests to the Wappfy API endpoints to perform operations.
Troubleshooting
Common Issues:
- Invalid or missing chat ID will result in errors or empty results.
- Exceeding the limit parameter may cause performance issues or API rate limiting.
- Enabling media download without proper permissions or network access might fail to retrieve media files.
Error Messages:
- Errors returned from the Wappfy API are passed through; typical messages include invalid session, unauthorized access, or resource not found.
- To resolve, verify that the API key and instance name are correct, the chat ID exists, and the user has permission to access the chat.
Links and References
- Wappfy API Documentation (for detailed API usage and parameters)
- WhatsApp Business API Overview (general background on WhatsApp messaging APIs)