hermosodocs

post_purchase_survey

How-did-you-hear survey (after an order)

Area: THE HERMOSO TAG · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

POST-PURCHASE SURVEY, "How did you hear about us?": what buyers SAY brought them, beside what tracking saw. Asked in three places: on Shopify’s Thank you and Order status pages (the "Hermoso survey" app block, placed once in Settings > Checkout > Customize; not on Shopify Starter), on a hosted page (pageUrl) any store links from its own order email or SMS, and through a signed webhook for answers collected anywhere else (WooCommerce, another survey app, a form). Each answer is written to the Shopify order (metafield hermoso.how_did_you_hear, shown on the order page) and to the brand’s contact (field how_did_you_hear, tag survey:<channel>), and sent as survey.answered to the brand’s Slack, Discord or webhook alerts. action get (default): settings, the page and webhook links, the answer count, whether the Shopify block has loaded. set: enabled, question, options [{ label, channel?, freeText? }] (2-20; channel such as instagram, tiktok, google, ai, word_of_mouth, creator, podcast, email, other), thankYou, shuffle, writeToOrder, writeToContact, accent (hex). link: orderId, email, value, currency -> a link signed with the brand’s secret, so the answer is tied to that order. secret: the signing secret for links and the webhook (rotate:true makes a new one; old signatures stop working). record: an answer the user or agent already has (answer = an option id or label, or the buyer’s own words; otherText, orderId, email, value, currency, at). answers: the answers (days or from/to, channel, source, limit). report: answers and revenue per answer, and for each answer what tracking recorded for the same orders, including how many buyers named a channel tracking credited to direct traffic or nothing. sync: retry writing answers onto orders and contacts. Free.

Parameters

ParameterTypeDescription
action"get" | "set" | "link" | "secret" | "answers" | "record" | "report" | "sync"default get
enabledbooleanset: true turns the survey on everywhere (Shopify block, hosted page, webhook)
questionstringset: the question, up to 160 characters
optionsobject[]set: 2-20 answers, replaces the list
options[].idstring
options[].labelrequiredstring
options[].channelstring
options[].freeTextbooleanthis answer asks the buyer to type where (one option at most)
thankYoustringset: the line shown after answering
shufflebooleanset: shuffle the answers per buyer (default true; a free-text answer stays last)
writeToOrderbooleanset: write the answer onto the Shopify order (default true)
writeToContactbooleanset: save the answer on the brand’s contact for that email (default true)
accentstring | nullset: the hosted page’s button colour, hex; null for the default
rotatebooleansecret: true makes a new secret
answerstringrecord: an option id or label, or the buyer’s own words
optionIdstring
otherTextstring
orderIdstringlink / record: the order (a Shopify gid, or the store’s own order number)
emailstringlink / record: the buyer’s email (stored hashed; used for the contact)
valuenumberlink / record: the order total
currencystringthree letters, e.g. USD
atstringrecord: when it was answered, ISO time
daysnumberanswers / report: the last N days (default 30)
fromstring
tostring
channelstringanswers: only this channel
source"shopify" | "hosted" | "webhook" | "agent"answers: only this door
limitnumberanswers: 1-200, default 50

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/post_purchase_survey.

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"post_purchase_survey","arguments":{}}}

CLI

hermoso call post_purchase_survey --json '{}'

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 759 Ad campaign management tools · tools.json