generate_bulk_whatsapp_links
Generate personalized WhatsApp click-to-chat (wa.me) links for a list of contacts from one message template. Everything uses a single {{…}} syntax: {{field}} placeholders are replaced per contact; {{field|fallback}} supplies a default for empty/missing fields; {{FirstName}} is derived from a name field; and {{option a|option b}} spintax (a group whose first option is not a field) picks one variation per contact (stable per number) so messages are not identical. Returns a JSON array of {phone, message, link}. Runs locally; no message is sent: each link opens WhatsApp with the text pre-filled and a human taps send.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contacts | Yes | Up to 500 contacts. Each needs a "phone" (international format, digits only) plus any placeholder fields as string properties. | |
| template | Yes | Message template with {{field}} placeholders, e.g. 'Hello {{name}}, see you at {{time}}'. Supports {{field|fallback}} defaults, {{FirstName}} derived from a name field, and {{a|b|c}} spintax variation (a {{…}} group whose first option isn't a field). Placeholder matching is case-insensitive; WhatsApp formatting (*bold*, _italic_) is kept. |