{
"name": "capture_lead",
"description": "Use when visitor expresses interest in learning more, asks about pricing, or wants to be contacted.",
"executionType": "form",
"formSchema": {
"fields": [
{
"name": "name",
"label": "Full Name",
"type": "text",
"placeholder": "John Smith",
"validation": {
"required": { "value": true, "message": "Please enter your name" }
}
},
{
"name": "email",
"label": "Work Email",
"type": "email",
"placeholder": "[email protected]",
"validation": {
"required": { "value": true, "message": "Email is required" },
"pattern": {
"value": "^[^@]+@[^@]+\\.[^@]+$",
"message": "Please enter a valid email"
}
}
},
{
"name": "phone",
"label": "Phone Number",
"type": "tel",
"placeholder": "+1 (555) 123-4567"
},
{
"name": "company",
"label": "Company",
"type": "text"
},
{
"name": "role",
"label": "Your Role",
"type": "select",
"options": [
{ "label": "Executive", "value": "executive" },
{ "label": "Manager", "value": "manager" },
{ "label": "Individual Contributor", "value": "ic" },
{ "label": "Other", "value": "other" }
]
},
{
"name": "interest",
"label": "What are you interested in?",
"type": "multiselect",
"options": [
{ "label": "Product Demo", "value": "demo" },
{ "label": "Pricing Information", "value": "pricing" },
{ "label": "Technical Questions", "value": "technical" },
{ "label": "Partnership", "value": "partnership" }
]
},
{
"name": "message",
"label": "Anything else we should know?",
"type": "textarea",
"placeholder": "Tell us about your use case..."
}
],
"submitLabel": "Get in Touch",
"successMessage": "Thanks! Our team will reach out within 24 hours."
},
"formPostActions": [
{
"type": "webhook",
"url": "https://hooks.zapier.com/hooks/catch/123/abc",
"headers": { "Content-Type": "application/json" }
},
{
"type": "slack",
"webhookUrl": "https://hooks.slack.com/services/...",
"messageTemplate": "🎯 *New Lead!*\n\n*Name:* {{name}}\n*Email:* {{email}}\n*Company:* {{company}}\n*Role:* {{role}}\n*Interest:* {{interest}}\n*Message:* {{message}}"
},
{
"type": "email",
"recipientIds": ["sales-team-user-id"],
"subject": "New Lead: {{name}} from {{company}}"
}
]
}