reply_to_meta_message
Reply to a Messenger / Instagram DM destructive
Description
Send a text reply to someone who has messaged the brand. THIS REACHES A REAL PERSON — show the user the exact text and who it goes to, get a yes, then send. Pass `conversationId` as well as `recipientId` and Hermoso checks Meta’s 24-hour window for free BEFORE sending, and refuses with the real reason instead of letting Meta refuse it; without one it sends and discloses that the window could not be checked. HERMOSO SENDS REPLIES ONLY: messaging_type is always RESPONSE, and proactive messages and message tags are not offered at all — that is a deliberate product boundary, not a gap. THE ONE PROACTIVE THING MESSENGER ALLOWS IS A MARKETING-MESSAGES SUBSCRIPTION: to ask a person in the inbox to SUBSCRIBE to marketing messages, call request_messenger_optin (Meta’s own opt-in template, in the ads group — enable_tools(["ads"]) or find_tools if it is not in your list). Never answer that with a plain-text reply asking them to say YES, and never say the capability does not exist. And a closed window is a RULE that only the person writing again reopens. `recipientId` is a PAGE-SCOPED ID on Messenger and an INSTAGRAM-SCOPED ID on Instagram (read_meta_conversation returns it as `replyTo`); a username or a handle is not one and cannot be turned into one. ACCEPTED IS NOT DELIVERED — never report it as delivered or read. RICH REPLIES: `attachments` (photos, video, voice notes, PDFs by https URL; upload_file turns a local file into one), `buttons` (up to 3 link or postback buttons under the text), `cards` (a carousel of up to 10), `quickReplies` (up to 13 tap-to-answer chips), `replyToMessageId` (answer one earlier message), `senderAction` (typing_on, typing_off or mark_seen, sent first). One reply can become several Meta messages, sent in order: the text, the media, the cards; the answer lists each part and, when one is refused, which parts went out. Limits are Meta’s and a reply over one is refused, never cut (Instagram text is 1000 bytes). 0 credits.
Parameters
| Parameter | Type | Description |
|---|---|---|
recipientIdrequired | string | the PSID (Messenger) or IGSID (Instagram) to reply to — `replyTo` from read_meta_conversation |
text | string | the reply text; optional when sending only attachments, cards or a senderAction |
attachments | object[] | photos, a video, a voice note or a PDF; images group into one message |
attachments[].urlrequired | string | https URL Meta downloads |
attachments[].type | "image" | "video" | "audio" | "file" | guessed from the file name when omitted |
buttons | object[] | up to 3 buttons under the text (text required, 640 characters max with buttons) |
buttons[].typerequired | "url" | "postback" | url opens a page; postback sends `payload` back as a tap |
buttons[].titlerequired | string | up to 20 characters |
buttons[].url | string | |
buttons[].payload | string | |
cards | object[] | a carousel of up to 10 cards |
cards[].titlerequired | string | up to 80 characters |
cards[].subtitle | string | up to 80 characters |
cards[].imageUrl | string | |
cards[].url | string | opened when the card is tapped |
cards[].buttons | object[] | up to 3 |
cards[].buttons[].typerequired | "url" | "postback" | |
cards[].buttons[].titlerequired | string | |
cards[].buttons[].url | string | |
cards[].buttons[].payload | string | |
quickReplies | string | object[] | up to 13 chips on the last message; they disappear after the next message |
replyToMessageId | string | a message id from read_meta_conversation to answer inline |
senderAction | "typing_on" | "typing_off" | "mark_seen" | shown to the person; can be sent on its own |
humanAgent | boolean | HUMAN AGENT — true when a PERSON on the team is personally answering a customer's question more than 24 hours after they last wrote (up to 7 days): Meta's HUMAN_AGENT tag. Never for automated, promotional or unrelated messages. Meta grants the tag only after approving Hermoso's Human Agent feature (App Review, pending); until then Meta refuses it and the reply says so. |
conversationId | string | strongly recommended: it is what lets the 24-hour window be checked BEFORE sending rather than discovered by a refusal |
platform | "MESSENGER" | "INSTAGRAM" | MESSENGER or INSTAGRAM; the channel the conversation is on |
account | string | which Instagram account — an @handle or id from list_connector_accounts("instagram"). The way a DIRECT (Instagram Login) account is reached; omit for the Page-linked one. |
pageId | string | Facebook Page that owns the conversation; omit when only one Page is connected |
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/reply_to_meta_message.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"reply_to_meta_message","arguments":{"recipientId":"<string>"}}}
CLI
hermoso call reply_to_meta_message --json '{"recipientId":"<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.
Related tools
request_messenger_optinAsk a Messenger contact to subscribe to marketing messagesenable_toolsTurn on more Hermoso toolsfind_toolsFind a Hermoso tool by name or taskread_meta_conversationRead one Messenger / Instagram DM threadupload_fileUpload a local file -> durable public URLlist_meta_conversationsThe brand’s Messenger and Instagram DM threads