hermosodocs

reply_to_meta_message

Reply to a Messenger / Instagram DM destructive

Area: MESSENGER + INSTAGRAM DIRECT · Publishing & scheduling. Generated from the running MCP server, like the rest of the tool reference.

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

ParameterTypeDescription
recipientIdrequiredstringthe PSID (Messenger) or IGSID (Instagram) to reply to — `replyTo` from read_meta_conversation
textstringthe reply text; optional when sending only attachments, cards or a senderAction
attachmentsobject[]photos, a video, a voice note or a PDF; images group into one message
attachments[].urlrequiredstringhttps URL Meta downloads
attachments[].type"image" | "video" | "audio" | "file"guessed from the file name when omitted
buttonsobject[]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[].titlerequiredstringup to 20 characters
buttons[].urlstring
buttons[].payloadstring
cardsobject[]a carousel of up to 10 cards
cards[].titlerequiredstringup to 80 characters
cards[].subtitlestringup to 80 characters
cards[].imageUrlstring
cards[].urlstringopened when the card is tapped
cards[].buttonsobject[]up to 3
cards[].buttons[].typerequired"url" | "postback"
cards[].buttons[].titlerequiredstring
cards[].buttons[].urlstring
cards[].buttons[].payloadstring
quickRepliesstring | object[]up to 13 chips on the last message; they disappear after the next message
replyToMessageIdstringa 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
humanAgentbooleanHUMAN 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.
conversationIdstringstrongly 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
accountstringwhich 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.
pageIdstringFacebook 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.

All 728 Publishing & scheduling tools · tools.json