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, profiles, polls, LIDs, and files. Specifically, for the Chat resource and the Get Picture operation, the node retrieves the profile picture of a specified chat.
This operation is useful when you want to programmatically obtain the current display picture of a chat (either individual or group) in WhatsApp. For example, it can be used in automation workflows that need to display or process chat images, update contact lists with pictures, or archive chat metadata including images.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The unique identifier of the chat whose picture you want to retrieve. Example format: 123456789@c.us for direct chats or 123456789@g.us for groups. |
| Refresh | Boolean flag indicating whether to refresh the picture from the server instead of using cached data. |
Output
The output JSON contains the response from the Wappfy API endpoint that returns the chat picture. Typically, this will include metadata about the picture or a URL to the image itself.
- The exact structure depends on the API response but generally includes fields like the image URL or base64 encoded image data.
- If the node supports binary data output for images, it would represent the chat picture file; however, in this implementation, the output is JSON only.
Dependencies
- Requires an active Wappfy API credential configured in n8n, which includes:
- Base URL of the Wappfy API instance.
- Instance name identifying the WhatsApp session.
- An API key or token for authentication.
- The node makes HTTP GET requests to the Wappfy API endpoints.
- Proper network access to the Wappfy API service is necessary.
Troubleshooting
Common issues:
- Invalid or missing Chat ID: Ensure the Chat ID is correctly formatted and corresponds to an existing chat.
- Authentication errors: Verify that the API key credential is valid and has sufficient permissions.
- Network connectivity problems: Confirm that the n8n instance can reach the Wappfy API endpoint.
- Cache issues: If the picture does not update, try setting the "Refresh" property to true to force fetching the latest image.
Error messages:
- Errors returned by the API will be included in the node output if "Continue On Fail" is enabled.
- Typical HTTP errors (e.g., 401 Unauthorized, 404 Not Found) indicate credential or resource identification problems.
- To resolve, check credentials, Chat ID correctness, and API availability.
Links and References
- Wappfy API Documentation (general reference for API endpoints)
- WhatsApp Chat Identifiers Format (for understanding chat ID formats)
This summary focuses on the Chat > Get Picture operation based on the provided source code and input properties.