Actions50
- Message Actions
- Contact Actions
- Account Actions
- Call Actions
- Chat Actions
- Group Actions
- Instance Actions
- Media Actions
- Session Actions
- User Actions
Overview
This node integrates with the WSAPI WhatsApp API to perform various operations related to WhatsApp resources. Specifically, for the Contact resource and the Get Picture operation, it retrieves the profile picture of a specified WhatsApp contact. This is useful in scenarios where you want to display or process the profile image of a contact within your workflow, such as enriching contact data, creating personalized messages, or managing contact profiles.
Practical Examples
- Automatically fetching and displaying a contact's WhatsApp profile picture in a CRM system.
- Archiving contact images for record-keeping or auditing purposes.
- Using the contact's profile picture in automated marketing or notification messages.
Properties
| Name | Meaning |
|---|---|
| Contact ID | The unique identifier of the WhatsApp contact whose picture you want to retrieve. Format: phone number with country code followed by @s.whatsapp.net (e.g., 1234567890@s.whatsapp.net). |
Output
The node outputs JSON data representing the contact's profile picture information. While the exact structure depends on the WSAPI response, typically it includes metadata about the picture and possibly a URL or binary data reference to the image itself.
If the node supports binary output for the picture, this binary data represents the actual image file of the contact's profile picture, which can be used downstream in workflows for saving, displaying, or further processing.
Dependencies
- Requires an active connection to the WSAPI WhatsApp API via an API key credential configured in n8n.
- The node uses the base URL from the provided credentials to make API requests.
- No additional external dependencies are indicated beyond the WSAPI service.
Troubleshooting
- Invalid Contact ID format: Ensure the Contact ID follows the required format (
phone_number@s.whatsapp.net). Incorrect formatting will likely cause errors or empty responses. - Missing or invalid API credentials: The node requires valid API authentication; verify that the API key credential is correctly set up and has necessary permissions.
- Contact without a profile picture: If the contact does not have a profile picture, the node might return empty data or an error indicating no picture found.
- Network or API errors: Check connectivity and WSAPI service status if requests fail unexpectedly.
- Operation not implemented error: This occurs if the operation name is incorrect or unsupported; ensure "Get Picture" is selected under the Contact resource.
Links and References
- WSAPI WhatsApp API Documentation (general reference for API capabilities)
- n8n Documentation - Creating Custom Nodes
- WhatsApp Business API Overview (for understanding WhatsApp contact identifiers and media handling)