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 contacts. Specifically, the "Get Business Profile" operation under the "Contact" resource retrieves detailed business profile information for a given WhatsApp contact. This is useful in scenarios where you want to enrich your workflows with business-related data of contacts, such as displaying company info, verifying business authenticity, or personalizing communication based on business details.
Practical examples:
- Automatically fetching and displaying a business profile when a customer sends a message.
- Enriching CRM records with WhatsApp business profile data.
- Triggering specific workflow branches depending on the type or status of a business contact.
Properties
| Name | Meaning |
|---|---|
| Contact ID | The unique identifier of the WhatsApp contact whose business profile you want to retrieve. Format must be a phone number with country code followed by @s.whatsapp.net (e.g., 1234567890@s.whatsapp.net). |
Output
The output JSON contains the business profile information of the specified WhatsApp contact. This typically includes fields such as business name, description, address, email, website, and other relevant business metadata associated with the contact.
If the node supports binary data output (not explicitly shown here), it would generally represent media related to the contact's profile, but for this operation, the focus is on JSON data describing the business profile.
Dependencies
- Requires an API key credential for authenticating with the WSAPI WhatsApp API.
- The node expects the base URL of the WSAPI service to be configured in the credentials.
- No additional external dependencies are indicated beyond the WSAPI service.
Troubleshooting
- Invalid Contact ID format: Ensure the Contact ID follows the required format (
phoneNumber@s.whatsapp.net). Incorrect formatting will likely cause errors or empty responses. - Authentication errors: Verify that the API key credential is correctly set up and has the necessary permissions.
- Resource or Operation not recognized: If the node throws errors about unknown resources or operations, confirm that the Resource is set to "Contact" and Operation to "Get Business Profile".
- Empty or missing business profile: Not all contacts have business profiles. Handle cases where the returned data might be empty or incomplete gracefully in your workflow.
- Network or API errors: Check connectivity and WSAPI service status if requests fail unexpectedly.
Links and References
- WhatsApp Business Profile Documentation
- WSAPI WhatsApp API Official Site (generic placeholder, replace with actual WSAPI documentation link if available)
- n8n Documentation on Creating Custom Nodes