Actions55
- Message Actions
- Contact Actions
- Chat Actions
- Group Actions
- Queue Actions
- Account Actions
- Session Actions
- Session Control Actions
- Call Actions
Contact → Set Profile Image
AI-generatedOverview
This node integrates with the Maytapi WhatsApp Unofficial API to perform various WhatsApp-related actions. Specifically, for the Contact resource and Set Profile Image operation, it allows you to set or update the profile picture of your WhatsApp account by providing a URL to an image.
This operation is useful when you want to programmatically update your WhatsApp profile picture as part of an automated workflow, such as updating branding images, seasonal profile pictures, or syncing profile images across multiple accounts.
Practical Example
- Automatically update your WhatsApp profile picture daily with a new promotional banner hosted on your website.
- Change the profile image based on specific events or campaigns triggered in your CRM or marketing automation system.
Properties
| Name | Meaning |
|---|---|
| Phone ID Source | Select how to provide the Phone ID: either "From Credentials" (uses Phone ID stored in credentials) or "Custom" (enter a custom Phone ID). This identifies the WhatsApp instance to operate on. |
| Phone ID | (Required if "Custom" Phone ID Source selected) Enter the WhatsApp instance Phone ID manually. |
| Image URL | (Required) The URL of the image to set as the profile picture. It is recommended to use square images sized around 512x512 pixels. |
Output
The output JSON contains the response from the Maytapi API after attempting to set the profile image. Typically, this will include success status and any relevant messages returned by the API.
No binary data is output by this operation.
Example output JSON structure:
{
"success": true,
"message": "Profile image updated successfully"
}
Dependencies
- Requires an active connection to the Maytapi WhatsApp API service.
- Requires an API key credential configured in n8n to authenticate requests.
- The Phone ID must be provided either via credentials or manually as input.
- The image must be accessible via a public URL.
Troubleshooting
- Phone ID is required error: Ensure that the Phone ID is correctly set either in the credentials or provided as a custom value.
- Invalid Image URL or upload failure: Verify that the image URL is publicly accessible and points directly to an image file. The image should ideally be a square PNG or JPEG around 512x512 pixels.
- API errors: Check your Maytapi API key validity and quota limits. Also, ensure the WhatsApp instance associated with the Phone ID is active and connected.
- Network issues: Confirm that your n8n instance can reach the Maytapi API endpoint and the image URL.