hermosodocs

create_meta_lead_form

Create a Meta instant (lead) form

Area: META LEAD ADS · Ad campaign management. Generated from the running MCP server, like the rest of the tool reference.

Description

Create an INSTANT LEAD FORM on a connected Facebook Page — the in-app form a Meta lead ad opens instead of sending someone to a website, so a person can sign up without leaving the app. `questions` takes Meta’s own type names, e.g. ["FULL_NAME","EMAIL","PHONE"]; for anything bespoke pass {type:"CUSTOM", label:"What size fleet do you run?"} and add options:[…] to make it a dropdown. Ask FEWER questions than you think — every extra field costs completions. privacyPolicyUrl is REQUIRED: the form collects real people’s contact details and has to say where their data goes. Optional: headline, contextCard {title, bullets[], buttonText} for the why-should-I screen, thankYou {title, body, buttonType, buttonText, websiteUrl}, locale, followUpActionUrl. CREATING A FORM SPENDS NOTHING and publishes nothing — it is invisible to the public until an ad points at it (create_meta_ad with objective:"OUTCOME_LEADS" + leadFormId), and that ad is created PAUSED. Read the submissions with read_meta_leads. NEEDS pages_manage_ads — see list_meta_lead_forms for what to do if Meta refuses it.

Parameters

ParameterTypeDescription
namerequiredstringinternal name for the form — not shown to the person filling it in
questionsrequiredobject[]Meta question types as strings ("FULL_NAME","EMAIL","PHONE","COMPANY_NAME","JOB_TITLE","CITY","ZIP","WORK_EMAIL","DATE_TIME"…) or objects {type,label,key,options[]} for CUSTOM
privacyPolicyUrlrequiredstringREQUIRED — the business’s privacy policy URL (https://…)
privacyPolicyLinkTextstringlink text shown for the privacy policy URL on the form
pageIdstringwhich connected Page (required only if the profile has more than one)
headlinestringheadline shown above the questions
localestringform language, e.g. EN_US, ES_ES, PT_BR, DE_DE
followUpActionUrlstringhttps URL the person is sent to after submitting the form
contextCardobject{title, bullets[], body, buttonText, style} — the screen shown before the questions
thankYouobject{title, body, buttonType, buttonText, websiteUrl} — shown after submitting
isOptimizedForQualitybooleanadds a review-and-confirm step: fewer leads, better ones
blockNonTargetedbooleantrue = hide the form from people the ad's targeting does not match
trackingParametersobjectextra tracking parameters for the form, as a key/value object

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

MCP (tools/call)

{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_meta_lead_form","arguments":{"name":"<string>","questions":"<array>","privacyPolicyUrl":"<string>"}}}

CLI

hermoso call create_meta_lead_form --json '{"name":"<string>","questions":"<array>","privacyPolicyUrl":"<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 759 Ad campaign management tools · tools.json