build_whatsapp_share_widget
Build embeddable "Share on WhatsApp" widget HTML (web and email variants) with a link preview card and a pre-filled message. Returns self-contained HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL being shared. | |
| title | Yes | Title shown on the preview card. | |
| domain | No | Domain label shown on the card (optional). | |
| thumbnail | No | Preview image URL (optional). | |
| buttonText | No | Call-to-action button text (optional; defaults to "Share on WhatsApp"). | |
| description | Yes | Message text shown above the card (supports *bold*, _italic_, ~strike~). | |
| includeCredit | No | Append a small "Widget by wha.tools" credit line under the widget (optional; default false). | |
| buttonPlacement | No | Where to place the share button relative to the card (optional). |