Actions35
- Chat Actions
- Chatwoot Actions
- Group Actions
- Instance Actions
- Message Actions
- Webhook Actions
Message → Send Link Preview
AI-generatedOverview
This node operation sends a WhatsApp message containing a text with a link to a specified contact. WhatsApp automatically generates a preview for supported links such as YouTube videos, websites, and articles. This is useful for scenarios where you want to share rich link previews with contacts, enhancing message engagement and providing more context.
Use Case Examples
- Sending a YouTube video link with a preview to a friend.
- Sharing a website link with an automatic preview to a customer via WhatsApp.
Properties
| Name | Meaning |
|---|---|
| To (Contact) | The WhatsApp contact to send the link preview to, formatted as phone_number@s.whatsapp.net (e.g., 551199999999@s.whatsapp.net). |
| Text with Link | The text message containing the link that WhatsApp will automatically preview. Supports YouTube, websites, and other link types. |
Output
JSON
messageId- The unique identifier of the sent message.status- The status of the message sending operation (e.g., sent, failed).to- The recipient WhatsApp contact to whom the message was sent.previewData- The data of the link preview generated by WhatsApp, if available.
Dependencies
- Requires an API key credential for MegaAPI WhatsApp service authentication.
Troubleshooting
- Ensure the 'To (Contact)' field is correctly formatted as phone_number@s.whatsapp.net to avoid sending errors.
- Verify that the link in 'Text with Link' is a supported type for WhatsApp link previews (e.g., YouTube, websites).
- Check API credentials and network connectivity if message sending fails.
- Common error messages include 'Unknown message operation' if the operation parameter is incorrect, and 'Unknown resource' if the resource parameter is invalid. These can be resolved by selecting the correct resource and operation in the node configuration.