Actions76
- Message Actions
- Chat Actions
- Contact 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
- Profile Actions
- LID Actions
- File Actions
Overview
This node enables sending a contact card via WhatsApp using the Wappfy API. It supports sending contacts either by specifying a contact ID (phone number or WhatsApp ID) or by providing raw vCard data. This functionality is useful for automating the sharing of contact information in personal or group chats, such as sending business cards, emergency contacts, or customer support details.
Practical examples:
- Automatically send a customer's contact info to a support agent.
- Share a team member's contact card in a group chat.
- Distribute event organizer contact details via WhatsApp messages.
Properties
| Name | Meaning |
|---|---|
| Chat ID | The identifier of the chat where the contact will be sent. Format examples: 123456789@c.us for direct chat, 123456789@g.us for group chat. |
| Contact Source | The source format of the contact data to send. Options: Contact ID (phone number or WhatsApp ID), vCard (raw vCard data). |
| Contact ID | Phone number or WhatsApp ID of the contact to send. Required if Contact Source is Contact ID. |
| vCard Data | Raw vCard string data representing the contact card. Required if Contact Source is vCard. Format example starts with BEGIN:VCARD.... |
Output
The node outputs the JSON response returned by the Wappfy API after attempting to send the contact. This typically includes status information about the message delivery or any errors encountered.
If multiple input items are processed, the output is an array of JSON objects corresponding to each item.
No binary data output is produced by this operation.
Dependencies
- Requires a configured Wappfy API credential with base URL, instance name, and an API key.
- The node makes HTTP POST requests to the Wappfy API endpoints to send contact messages.
- Proper network access to the Wappfy API service is necessary.
Troubleshooting
- Invalid Chat ID: Ensure the Chat ID is correctly formatted and corresponds to an existing chat on WhatsApp.
- Incorrect Contact Data: If using Contact ID, verify the phone number or WhatsApp ID is valid. For vCard, ensure the data is properly formatted according to vCard standards.
- Authentication Errors: Confirm that the API key credential is valid and has sufficient permissions.
- API Endpoint Errors: Network issues or incorrect instance names can cause failures; verify configuration settings.
- Error Messages: The node returns error details from the API in the output JSON under an
errorfield whencontinueOnFailis enabled. Review these messages for specific troubleshooting.
Links and References
- Wappfy API Documentation (for detailed API usage and contact message formats)
- vCard Format Specification (for creating valid vCard data)