{
"name": "lead_capture",
"description": "Capture lead information when visitor expresses interest in a demo, pricing, or wants to be contacted.",
"executionType": "form",
"formSchema": {
"fields": [
{
"name": "firstName",
"label": "First Name",
"type": "text",
"placeholder": "Jane",
"validation": {
"required": { "value": true, "message": "First name is required" }
}
},
{
"name": "lastName",
"label": "Last Name",
"type": "text",
"placeholder": "Smith"
},
{
"name": "email",
"label": "Work Email",
"type": "email",
"placeholder": "[email protected]",
"defaultValue": "{{user.email}}",
"validation": {
"required": { "value": true, "message": "Email is required" }
}
},
{
"name": "phone",
"label": "Phone",
"type": "tel",
"placeholder": "+1 (555) 123-4567"
},
{
"name": "company",
"label": "Company",
"type": "text",
"placeholder": "Acme Inc"
},
{
"name": "companySize",
"label": "Company Size",
"type": "select",
"options": [
{ "label": "1-10 employees", "value": "1-10" },
{ "label": "11-50 employees", "value": "11-50" },
{ "label": "51-200 employees", "value": "51-200" },
{ "label": "201-500 employees", "value": "201-500" },
{ "label": "500+ employees", "value": "500+" }
]
},
{
"name": "interest",
"label": "What are you interested in?",
"type": "multiselect",
"options": [
{ "label": "Product Demo", "value": "demo" },
{ "label": "Pricing", "value": "pricing" },
{ "label": "Technical Questions", "value": "technical" },
{ "label": "Integration Help", "value": "integration" }
]
},
{
"name": "message",
"label": "Anything else?",
"type": "textarea",
"placeholder": "Tell us about your use case..."
}
],
"submitLabel": "Request Demo",
"successMessage": "Thanks! Our team will reach out within 24 hours."
},
"formPostActions": [
{
"type": "webhook",
"url": "https://hooks.zapier.com/hooks/catch/123/abc"
},
{
"type": "slack",
"webhookUrl": "https://hooks.slack.com/services/...",
"messageTemplate": "🎯 *New Lead*\n\n*Name:* {{firstName}} {{lastName}}\n*Email:* {{email}}\n*Company:* {{company}} ({{companySize}})\n*Interest:* {{interest}}"
}
]
}