Lead form create

From logly/mureo · View interactive version

Lead form create is an AI agent skill from the GitHub repository logly/mureo. Create a Meta Instant Form (Lead Ad form) through a one-question-at-a-time interview. Use when the user asks to create a lead form, Instant Form, CV form, or similar. The agent collects required parameters via a guided dialogue, confirms, then calls meta_ads_lead_forms_create. Also use when the user

How to use this skill

Skill file

Lead Form Create

PREREQUISITE: Read ../_mureo-shared/SKILL.md for auth, security rules, output format, and Tool Selection.

Tool names below refer to the built-in platforms; a namespaced variant (see _mureo-shared → Namespaced built-in variants) is used with its prefix substituted.

Drive an interactive interview that produces a Meta Instant Form (Lead Ad form) on the user's Facebook Page. The skill is for the first-time creation flow — lifecycle operations (update / archive / duplicate) live in their own paths.

Prerequisites

Steps

Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and consult advisors (mureo_consult_advisor) before drawing conclusions.

How to drive the interview

This skill is a dialogue, not a form-fill. Ask the user one question at a time and wait for an answer before moving on. Do not dump every parameter at once. The user-facing experience the operator asked for is "answer a few questions and the form appears" — pacing matters.

For every step below:

  1. State what you're about to ask in one sentence.
  2. Offer a sensible default (drawn from STRATEGY.md / Persona / Brand Voice / prior meta_ads_lead_forms_list results) so the user can answer with "use the default" instead of typing.
  3. After they answer, repeat their answer back in one sentence and move on.

Skip a step only when the answer is unambiguous from STATE.json / STRATEGY.md (e.g. only one Facebook Page on the account → still confirm in one line, do not silently assume).

  1. Identify the Facebook Page: Ask the user for the Page ID that will own the form (e.g. "Which Facebook Page should host this form? Paste the Page ID."). mureo does not currently ship a Page-listing helper, so do not pretend to enumerate Pages — if the user does not know their Page ID, point them at Meta Business Suite → Page Settings → Page Info, or https://www.facebook.com/<page-name>/about. Capture the supplied page_id for the create call.
  1. Form name: Ask for the form name shown in Ads Manager + Page Lead Center. Default suggestion uses the current campaign / Persona context — e.g. "2026 Q2 — <Persona> lead form". Confirm the picked name with the user before moving on.
  1. Lead questions to collect: Ask "What information do you need from each lead?" with a one-sentence default (e.g. "Most B2B advertisers ask for name + email + phone — use that default?"). Build the questions list:

Adding more than ~3 standard questions noticeably reduces submission rate — warn the user when the list grows beyond that.

  1. Privacy policy URL: Ask the user for the advertiser's privacy policy URL. Meta requires https:// and will reject the form otherwise — validate the prefix and re-prompt if the input does not start with https://. Suggest pulling the URL from STRATEGY.md when possible.
  1. Intro card (context_card)?: Ask "Do you want an intro / welcome screen before the form questions? It typically lifts CVR." If yes, collect — one question per step:

1. Pick an existing Page photo — call meta_ads_pages_photos_list with the form's page_id, show the returned photos (id, name, created_time, preview url and its width/height) and let the user choose one. Pass the chosen id as context_card.cover_photo_id. mureo cannot upload a new photo for the user, so a picture that is not on the Page yet has to be posted to the Page first (Meta Business Suite → Page → Photos) or handled by path 3.

2. Skip the cover — cover_photo_id is optional. Omit it entirely and the intro screen still renders with title + content.

3. Set it by hand — the user adds the cover in Ads Manager → form builder → intro screen after the form is created.

  1. Post-submission behaviour: follow_up_action_url is always required by Meta (omitting it fails with error_subcode 1892085 / "Missing field(s): FollowUpActionURL"), so always ask for the completion-screen URL — "Where should the form send people after they submit?" Default it from STRATEGY.md or the site's thank-you page so the user can accept in one word, and never invent one silently. Then ask whether they also want a full custom completion screen with title / body / CTA button (thank_you_page). That is an optional add-on on top of follow_up_action_url, not a replacement — if yes, collect one question per step: title, body, button_type (VIEW_WEBSITE / CALL_BUSINESS / MESSAGE_BUSINESS / DOWNLOAD / DOWNLOAD_APP), website_url, button_text.
  1. Higher-intent (3-step) mode?: Explain the trade-off in one sentence: "Higher-intent mode adds a review step before submit. It improves lead quality and trims junk submissions, but it costs total volume." Then ask yes/no. Default is false (single-step) unless the operator's STRATEGY.md flags quality over volume.
  1. Locale: Ask whether to use the Page's primary locale or override (e.g. ja_JP for a Japanese form on a multilingual Page). Default = Page primary locale.

Confirm before mutating

Once every answer is collected, summarise the full payload in a short bulleted list (form name, questions, privacy URL, follow-up action URL, intro card on/off, thank-you on/off, higher-intent on/off, locale) and ask the user to confirm before calling the tool. Do not call meta_ads_lead_forms_create until the user gives an explicit go-ahead.

Create the form

Call meta_ads_lead_forms_create with the collected parameters. On success, report the new form_id back to the user. On failure, surface the platform error verbatim and offer to retry with adjusted parameters (do not silently retry with different values).

Suggest the natural next step

After the form is created, suggest using it in a Lead Ad creative: "To wire this form into an ad, run meta_ads_creatives_create_lead with form_id=<new_id>, page_id=<page_id>, and either an image_hash or a video_id." Stop there — building the creative belongs to a separate flow; this skill's job is the form.

Edge cases

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.