Custom Workflows
Create and manage custom workflows in Netasampark.
Workflow Builder
Creating Workflows
- Navigate to Workflows
- Click "Create Workflow"
- Define triggers
- Add actions
- Set conditions
- Test workflow
- Activate
Workflow Components
Triggers
- New grievance submitted
- Message received
- Campaign started
- Status changed
- Scheduled time
Actions
- Send notification
- Assign task
- Update status
- Create record
- Send message
Conditions
- If/else logic
- Multiple conditions
- Time-based conditions
- Data-based conditions
Example Workflows
Auto-Assign Grievance
Trigger: New grievance submitted
Condition: Category = "Infrastructure"
Action: Assign to Infrastructure Department
Escalation Workflow
Trigger: Grievance status = "In Progress"
Condition: Time since assignment > 48 hours
Action: Escalate to Department Head
Campaign Follow-up
Trigger: Campaign completed
Condition: Voter responded = false
Action: Send follow-up message after 3 days
Workflow Management
Testing
- Test with sample data
- Validate conditions
- Check actions
- Review logs
Monitoring
- Workflow execution logs
- Success/failure rates
- Performance metrics
- Error tracking
API Integration
Create Workflow
POST /api/workflows
{
"name": "Auto Assign Infrastructure",
"trigger": "grievance.submitted",
"conditions": [
{
"field": "category",
"operator": "equals",
"value": "infrastructure"
}
],
"actions": [
{
"type": "assign",
"target": "department",
"value": "infrastructure-dept"
}
]
}