WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

💬 **CHATTING** · Send Link Custom Preview

AI-generated

Summary

Send a message with a custom link preview to a specified chat in WhatsApp using the selected WhatGHL session.

Inputs

  • Session Mode — Select how the sender session is chosen: Auto (default backend), By Session Name (specific WAHA session), or Select Session (recommend selecting from available sessions).
  • Session — The specific session identifier to send from (used when Session Mode is 'Select Session').
  • Session Name — The WAHA session name to use as the sender (used when Session Mode is 'By Session Name').
  • Chat ID (required) — The destination chat ID to send the message to.
  • Link Message Text (required) — The text message sent to the chat that must include the preview URL somewhere within it.
  • Preview URL (required) — The URL used to generate the custom link preview.
  • Preview Title (required) — The title displayed in the custom link preview.
  • Preview Description (required) — The description displayed in the custom link preview.
  • High Quality Preview — Enable to request a high quality preview from WAHA (default true).
  • Preview Image Source — Choose whether the preview image is provided via a public URL or as base64 encoded data.
  • Preview Image URL (required) — The public image URL for the preview image, required if 'Preview Image Source' is 'Image URL'.
  • Preview Image Base64 (required) — The base64 image data (without the data URL prefix) for the preview image, required if 'Preview Image Source' is 'Base64 Data'.

Output shape

a single JSON object representing the API response from sending the link custom preview message

If the operation succeeds, returns the response from the WhatGHL API. Errors are thrown or returned according to node settings. The node requires valid WhatGHL API credentials with baseUrl and apiKey.

Examples

Example 1: Send a custom link preview message

Set the 'Chat ID', include the 'Link Message Text' containing the 'Preview URL', and specify the 'Preview Title', 'Preview Description', and optionally the preview image by URL or Base64 data. Choose the session mode and session accordingly.

Links

Discussion