WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Message → Send Contact

AI-generated

Overview

This node operation sends a contact message via the WasenderAPI. It allows users to specify the recipient's phone number or group/channel JID, and the contact details to be sent, including the contact's name and phone number. This operation is useful for automating the sharing of contact information in WhatsApp messages, such as sending a business contact or a personal contact to a user or group.

Use Case Examples

  1. Sending a contact card to a customer with the contact's name and phone number.
  2. Sharing a colleague's contact information in a group chat automatically.

Properties

Name Meaning
Recipient The phone number, group JID, or channel JID to which the contact message will be sent. Required for the operation.
Message Options Additional options for the message, such as replying to a specific message ID.
Contact Name The name of the contact to be sent. Required for the operation.
Contact Phone The phone number of the contact to be sent. Required for the operation.
Options Request options including retry behavior for failed API requests.

Output

JSON

  • to - The recipient's phone number or group/channel JID.
  • contact
    • name - The name of the contact sent in the message.
    • phone - The phone number of the contact sent in the message.
  • replyTo - The ID of the message this contact message is replying to, if specified.

Dependencies

  • WasenderAPI service with an API key credential for authentication.

Troubleshooting

  • Ensure the recipient's phone number or group/channel JID is correctly formatted and valid.
  • Verify that the contact name and phone number are provided and correctly formatted.
  • Check API credentials and session selection to ensure the WasenderAPI requests are authenticated and authorized.
  • If the API returns errors like 408, 429, 500, 502, or 503, the node will retry requests based on the configured retry options. Adjust retry settings if needed.

Discussion