Actions37
- Message Actions
- Media Actions
- Contact Actions
- Group Actions
- Instance Actions
- Webhook Actions
Overview
This node integrates with the Uazapi WhatsApp API to manage WhatsApp contacts and retrieve their profile photos. Specifically, the Contact - Get Profile Photo operation fetches the profile picture of a WhatsApp contact by their phone number.
This is useful in scenarios where you want to display or process the profile photo of a contact within your automation workflows, such as:
- Displaying user avatars in customer support dashboards.
- Archiving contact images for CRM enrichment.
- Triggering actions based on the presence or absence of a profile photo.
Example: Given a WhatsApp number with country code, the node retrieves the URL or data representing that contact's profile photo.
Properties
| Name | Meaning |
|---|---|
| Phone Number | The WhatsApp phone number including country code (e.g., 5511999999999) whose profile photo you want to get. This is required. |
| Additional Fields | Optional extra parameters (none specifically used for this operation but available for extensibility). |
The "Additional Fields" collection includes options like:
- Reply to Message ID
- Delay (seconds)
- Disable Link Preview
- Mention Users
These are general additional options applicable to multiple operations but not specifically used for "Get Profile Photo".
Output
The node outputs JSON data containing the response from the Uazapi API for the profile photo request. Typically, this will include information such as:
- A URL or base64 string representing the contact's profile photo.
- Metadata about the photo if provided by the API.
The output is structured as an array with one item per input, each having a json property holding the API response.
No binary data output is indicated for this operation.
Dependencies
- Requires an active Uazapi WhatsApp API account with valid credentials.
- Needs configuration of an API key credential and instance ID within n8n.
- The node sends authenticated HTTP requests to the Uazapi service endpoint.
- No other external dependencies are required.
Troubleshooting
Common issues:
- Invalid or missing phone number format: Ensure the phone number includes the country code without symbols or spaces.
- Authentication errors: Verify that the API token and API key credentials are correctly configured.
- Contact does not have a profile photo: The API may return empty or null data if no photo exists.
- Network or connectivity problems: Check internet access and Uazapi service status.
Error messages:
- Authorization errors typically indicate invalid or expired tokens; reauthenticate or update credentials.
- "Unknown resource" error means the resource parameter is incorrect; ensure "contact" is selected.
- API rate limits exceeded may cause temporary failures; consider adding delays or retries.
Links and References
- Uazapi Official Documentation (for detailed API endpoints and usage)
- WhatsApp Business API Overview
- n8n Documentation on Creating Custom Nodes
This summary focuses solely on the "Contact" resource and "Get Profile Photo" operation as requested.