Actions6
- Send Message Actions
Overview
This node integrates with a WhatsApp messaging API to send messages, specifically supporting sending contact information as a message. It is useful for automating communication workflows where you need to share contact details via WhatsApp programmatically. For example, a customer support system could automatically send a contact card of a representative to a user, or a CRM system might share client contacts directly through WhatsApp.
The "Send Contact" operation under the "Send Message" resource allows sending a contact card (vCard-like data) to a specified recipient number.
Properties
| Name | Meaning |
|---|---|
| Recipient | The phone number of the message recipient including country code (e.g., 5531900000000). |
| Delay | Optional delay in milliseconds before sending the message (e.g., 1200 ms). |
| Presence | Status indicator of your presence while sending the message. Options: Available, Composing, Empty, Paused, Recording, Unavailable. |
| Contacts | JSON array containing contact objects to send. Each object should include fields like fullName, wuid (phone number), and phoneNumber. This represents the contact card(s) being sent. |
Output
The node outputs JSON data representing the response from the WhatsApp API after attempting to send the contact message. This typically includes status information about the message delivery. If binary data were involved (not indicated here), it would represent media content, but this node focuses on JSON contact message data only.
Dependencies
- Requires an API key credential for authenticating with the WhatsApp API service.
- Needs the base URL of the WhatsApp API endpoint configured in credentials.
- Relies on the external WhatsApp API service to send messages and contacts.
Troubleshooting
- Invalid phone number format: Ensure the recipient number includes the correct country code without extra characters.
- Missing required fields: The "Contacts" property must be a valid JSON array with proper contact details; otherwise, the API call will fail.
- API authentication errors: Verify that the API key credential is correctly set up and has necessary permissions.
- Delay not working: Confirm the delay value is a number in milliseconds; invalid values may cause unexpected behavior.
- Presence status ignored: Some API implementations might not support presence updates; check API documentation if presence status does not reflect.
Links and References
- WhatsApp Business API documentation (general reference): https://developers.facebook.com/docs/whatsapp
- Example JSON structure for contact cards (vCard-like): https://en.wikipedia.org/wiki/VCard