Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Message → Send Contact

AI-generated

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 support contact to users who request help.
  • Share a team member's contact info in a group chat.
  • Distribute event organizer contact details to attendees.

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: 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 valid Wappfy API credential with:
    • Base URL of the Wappfy API instance.
    • Instance name identifier.
    • An API key for authentication.
  • The node makes HTTP requests to the Wappfy API endpoints to perform actions.

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 and registered on WhatsApp. For vCard, ensure the vCard data is properly formatted.
  • Authentication Errors: Confirm that the API key and instance name credentials are correctly configured and active.
  • API Request Failures: Network issues or incorrect API endpoint URLs can cause failures. Check connectivity and credential settings.
  • Error Messages: The node returns error messages from the API in the output JSON under an error field if Continue On Fail is enabled. Review these messages for specific issues.

Links and References

Discussion