Actions76
- Chat Actions
- Contact Actions
- Profile Actions
- LID Actions
- File Actions
- Message 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
Overview
This node interacts with WhatsApp through the Wappfy API, enabling various operations on WhatsApp entities such as sessions, messages, chats, contacts, groups, statuses, channels, polls, profiles, linked IDs, and files. Specifically, for the Channel resource and the Get Messages Preview operation, it retrieves a preview list of recent messages from a specified WhatsApp channel using an invite code.
This operation is useful when you want to quickly fetch a summary or snippet of messages from a channel without retrieving full message details. For example, it can be used to display recent activity in a channel dashboard or to monitor channel conversations for specific keywords or events.
Properties
| Name | Meaning |
|---|---|
| Limit | Number of message preview items to return (default 20). |
| Invite Code | The invite code of the channel to identify which channel's messages to preview (required). |
| Download Media | Boolean flag indicating whether to download media files associated with the messages. |
Output
The output is a JSON array containing message preview objects retrieved from the specified channel. Each item represents a message preview with relevant metadata and content snippets. If the "Download Media" option is enabled, media files related to the messages will also be downloaded and included.
The exact structure of each message preview object depends on the Wappfy API response but typically includes fields like message ID, sender info, timestamp, text snippet, and possibly media metadata.
If the node encounters multiple input items, it aggregates all results into a single output array.
Dependencies
- Requires an active Wappfy API credential configured in n8n, including:
- Base URL of the Wappfy API.
- Instance name identifying the WhatsApp session.
- An API key for authentication.
- The node makes HTTP GET requests to the Wappfy API endpoints.
- No additional external dependencies are required beyond the configured API credentials.
Troubleshooting
- Invalid or missing invite code: The operation requires a valid channel invite code. Ensure the invite code is correct and corresponds to an existing channel.
- API authentication errors: Verify that the API key and instance name are correctly set in the credentials.
- Network issues or API downtime: Check network connectivity and Wappfy API status if requests fail.
- Large limit values: Setting very high limits may cause slow responses or timeouts; use reasonable limits.
- Media download failures: If "Download Media" is enabled but media files fail to download, verify media URLs and permissions.
Common error messages returned by the node usually originate from the Wappfy API and include HTTP status codes and descriptive messages. Review these messages to adjust parameters or credentials accordingly.
Links and References
- Wappfy API Documentation (for detailed API endpoint descriptions)
- WhatsApp Channels Overview (general info about WhatsApp channels)
If you need summaries for other resources or operations, feel free to ask!