create_linkedin_lead_form
Create a LinkedIn lead gen form
Description
Create a LinkedIn LEAD GEN FORM — the form a lead gen ad opens, prefilled from the member’s LinkedIn profile so they submit in two taps. Owned by an ad account (adAccountId, the usual choice for ads) or a company Page (pageId). Give it a name (only shown in Campaign Manager), the headline people see, the questions (predefined fields LinkedIn prefills, plus custom text or multiple-choice questions), a privacy policy URL, optional consent checkboxes, a thank-you message and a thank-you button with its landing page. Created PUBLISHED by default — LinkedIn still lets you edit every field until a running ad uses it. Read back from LinkedIn before you are told it exists. Then attach it with create_linkedin_ads_creative(leadFormId) under a LEAD_GENERATION campaign; the leads it collects are read with list_linkedin_leads. A form cannot spend money. Free.
Parameters
| Parameter | Type | Description |
|---|---|---|
adAccountId | string | own the form by this ad account |
pageId | string | or own it by a company Page (from list_linkedin_pages) |
namerequired | string | internal name, shown in Campaign Manager |
headlinerequired | string | the title of the form people see |
description | string | form description shown under the headline (optional) |
questionsrequired | object[] | the fields to ask, in order: predefined names LinkedIn prefills from the member profile (FIRST_NAME, LAST_NAME, EMAIL, WORK_EMAIL, PHONE_NUMBER, COMPANY_NAME, JOB_TITLE, SENIORITY, COMPANY_SIZE, INDUSTRY, CITY, COUNTRY, ZIP_CODE, LINKEDIN_PROFILE_LINK …; friendly spellings like "work email" work) and/or custom questions {question, type:"text", maxLength?} or {question, options:[2–15 choices]} |
privacyPolicyUrl | string | your privacy policy URL — LinkedIn shows it on the form |
legalDisclaimer | string | 1–2000 characters |
consents | object[] | consent checkbox texts, or {text, required:true} |
thankYouMessage | string | message shown to the person after they submit the form |
thankYouLandingPage | string | where the thank-you button sends people |
thankYouCta | "VISIT_COMPANY_WEBSITE" | "LEARN_MORE" | "VIEW_NOW" | "DOWNLOAD_NOW" | "TRY_NOW" | thank-you button label: visit website, learn more, view now, download or try now |
hiddenFields | object | tracking values carried on every lead, {name: value}, max 20 |
locale | string | default en_US |
state | "PUBLISHED" | "DRAFT" | default PUBLISHED |
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_linkedin_lead_form.
MCP (tools/call)
{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"create_linkedin_lead_form","arguments":{"name":"<string>","headline":"<string>","questions":"<array>"}}}
CLI
hermoso call create_linkedin_lead_form --json '{"name":"<string>","headline":"<string>","questions":"<array>"}'
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
create_linkedin_ads_creativeCreate a LinkedIn ad (creative, draft)list_linkedin_leadsList LinkedIn leads (form responses)update_linkedin_lead_formEdit or archive a LinkedIn lead gen formupdate_linkedin_ads_creativeEdit a LinkedIn ad (copy, landing page, button, lead form)preview_linkedin_adPreview a LinkedIn ad + its review statusset_linkedin_ads_trackingLinkedIn ads dynamic UTM trackingdelete_linkedin_ads_objectDelete a LinkedIn campaign group / campaign / adcreate_linkedin_conversion_ruleCreate a LinkedIn conversion rulelist_linkedin_conversion_rulesList LinkedIn conversion rulesupdate_linkedin_conversion_ruleUpdate or disable a LinkedIn conversion rule