create_lead_form
Create a lead generation form on a Facebook Page to collect user information with customizable questions and privacy policy.
Instructions
Create a new lead generation form on a Facebook Page. Requires pages_manage_ads permission.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"page_id": "<page_id>",
"name": "<name>",
"questions": "<questions>",
"privacy_policy_url": "<privacy_policy_url>"
},
"name": "create_lead_form"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lead form name | |
| page_id | Yes | Facebook Page ID | |
| questions | Yes | JSON array of questions. Each: {key: string, type: 'CUSTOM'|'EMAIL'|'PHONE'|'FULL_NAME'|'CITY'|'STATE'|'COUNTRY'|'ZIP'|'JOB_TITLE'|'COMPANY_NAME', label?: string} | |
| thank_you_page | No | JSON object: {title: string, body: string, button_text?: string, button_type?: 'VIEW_WEBSITE'|'DOWNLOAD'} | |
| privacy_policy_url | Yes | URL to privacy policy | |
| follow_up_action_url | No | URL to redirect after submission |