# Hermoso: send_whatsapp_message · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/send_whatsapp_message/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / send_whatsapp_message

# `send_whatsapp_message`

Send a WhatsApp message destructive

Area: WHATSAPP BUSINESS · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Send a WhatsApp message from one of the brand’s registered numbers to a customer. TWO KINDS, and which one is legal depends on time: pass `template` (an APPROVED template name) to START a conversation — the only thing WhatsApp accepts outside the 24-hour customer-service window — or `text` for a free-form reply INSIDE that window, which opens only when the customer messages the business first. Inside the window it can also send `interactive` (reply buttons, a list, a link button, a location request or a form) or `media` (image, video, audio, document); exactly one kind per message. To ANSWER someone who wrote in, use read_whatsapp_inbox (or list_inbox + reply_to_inbox_item): it shows the conversation and whether the window is open. A free-form message to someone whose window Hermoso knows has closed is refused for free; when it cannot tell, Meta judges and a closed window comes back as a re-engagement error the reply explains. THIS REACHES A REAL PERSON’S PHONE AND META BILLS THE BUSINESS for the conversation, so it is confirm-gated: show the user the exact message and the recipient, get an explicit yes, then call again with confirm:true. WhatsApp policy REQUIRES the business to hold the recipient’s opt-in first. An unapproved template is refused BEFORE the send, against the status Meta holds. ACCEPTED IS NOT DELIVERED — the reply reports what Meta accepted, and delivery arrives later on a webhook (read_whatsapp_inbox shows it as the message status), so never tell the user it was delivered. THE VARIABLE COUNT IS CHECKED BEFORE ANYTHING IS DISPATCHED: Hermoso reads the template’s own components back from Meta and refuses a payload that supplies the wrong number of values, naming exactly what is missing — for free, before a real phone is involved, instead of Meta answering 132000 after the attempt. It refuses only what it can prove; anything it cannot determine is sent for Meta to judge. 0 Hermoso credits.

## Parameters

Parameter Type Description

`phoneNumberId` required `string` WHICH NUMBER IT SENDS FROM — from list_whatsapp_accounts (a WABA can have several)

`to` `string` the recipient in full international form, e.g. +14165550142 — or, for someone who reached the business by WhatsApp username and shared no number, their business-scoped user id exactly as received (e.g. US.13491208655302741918). Authentication templates need the phone number. Omit it only with groupId.

`template` `string` an APPROVED template name — required to start a conversation outside the 24-hour window

`language` `string` which language of that template, e.g. en_US. Omitted, Hermoso uses the first one it finds and reports which.

`wabaId` `string` the account the template’s review status is read from. Optional — it defaults to the account that owns phoneNumberId, and a wabaId naming a DIFFERENT account is refused rather than silently preferred

`components` `object[]` the template’s variable values, in Meta’s component form. The count must match the {{1}}, {{2}} placeholders exactly. Hermoso checks this against the template’s real components before dispatching and refuses a provable mismatch by name. A media header needs its own component holding the link even though it carries no {{n}}, and a carousel needs one entry per card.

`text` `string` a free-form message — only lands INSIDE the 24-hour window

`interactive` `object` inside the window: { type, body, header?, footer?, … }. type "buttons": buttons [{ id, title }] (1–3, title ≤20). "list": button (≤20), sections [{ title, rows: [{ id, title ≤24, description? ≤72 }] }] (≤10 rows in all, text header only, body ≤4096). "cta_url": displayText (≤20) + url. "location_request": body only. "flow": flowId or flowName, flowCta, mode draft|published, screen?, data?. body ≤1024; header is text (≤60) or { type: image|video|document, url }; footer ≤60. Over a limit is refused, never cut

`location` `object` inside the window: a map pin, e.g. the store

`location.latitude` required `number`

`location.longitude` required `number`

`location.name` `string`

`location.address` `string`

`contacts` `object[]` inside the window: contact cards (up to 20), e.g. the sales line

`contacts[].name` required `string`

`contacts[].phone` `string`

`contacts[].email` `string`

`contacts[].company` `string`

`contacts[].url` `string`

`media` `object` inside the window: { type: image|video|audio|document|sticker (WebP ≤500KB), url (public https) or id, caption? (≤1024, not audio), filename? (document), voice? (audio: an OPUS .ogg voice note) }. Image JPEG/PNG/WebP ≤5MB, video MP4/3GP ≤16MB, audio AAC/AMR/MP3/M4A/OGG ≤16MB, document PDF/Office/TXT ≤100MB

`groupId` `string` send to a WhatsApp GROUP instead of a person (manage_whatsapp_number list_groups); text, media or a template, not interactive. Omit `to`

`confirm` `boolean` REQUIRED true — this sends a real message to a real phone and Meta bills the business for it

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/send_whatsapp_message`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"send_whatsapp_message","arguments":{"phoneNumberId":"<string>"}}}`
**CLI**

`hermoso call send_whatsapp_message --json '{"phoneNumberId":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [read_whatsapp_inbox](https://hermoso.ai/docs/reference/publish/read_whatsapp_inbox/) Read and answer WhatsApp messages
- [list_inbox](https://hermoso.ai/docs/reference/publish/list_inbox/) One inbox for comments, replies, mentions, reviews and DMs
- [reply_to_inbox_item](https://hermoso.ai/docs/reference/publish/reply_to_inbox_item/) Reply to anything in the inbox
- [send_whatsapp_broadcast](https://hermoso.ai/docs/reference/publish/send_whatsapp_broadcast/) Broadcast a WhatsApp template to many people
- [delete_whatsapp_template](https://hermoso.ai/docs/reference/publish/delete_whatsapp_template/) Delete a WhatsApp message template
- [manage_whatsapp_number](https://hermoso.ai/docs/reference/publish/manage_whatsapp_number/) WhatsApp number settings, blocklist and groups
- [create_whatsapp_template](https://hermoso.ai/docs/reference/publish/create_whatsapp_template/) Create a WhatsApp message template
- [manage_whatsapp_flow](https://hermoso.ai/docs/reference/publish/manage_whatsapp_flow/) WhatsApp forms (Flows)
- [list_whatsapp_templates](https://hermoso.ai/docs/reference/publish/list_whatsapp_templates/) WhatsApp message templates
- [manage_whatsapp_calling](https://hermoso.ai/docs/reference/publish/manage_whatsapp_calling/) WhatsApp calls

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
