{
"id": "rul_01HX...",
"name": "New Lead Follow-Up",
"trigger": "lead_created",
"triggerConditions": [
{
"field": "source",
"operator": "eq",
"value": "website_form"
}
],
"exitConditions": [
{
"field": "status",
"operator": "eq",
"value": "converted"
}
],
"steps": [
{
"type": "send_email",
"order": 1,
"config": {
"mode": "template",
"templateId": "tmpl_01HX..."
}
},
{
"type": "wait",
"order": 2,
"config": {
"duration": 3,
"unit": "days"
}
},
{
"type": "create_task",
"order": 3,
"config": {
"name": "Follow up with {{lead.firstName}}",
"assignTo": "assigned_user",
"dueDays": 1
}
}
],
"isActive": true,
"enrolledCount": 142,
"createdAt": "2025-01-10T09:00:00Z"
}