What is Human-in-the-Loop?
Human-in-the-Loop (HITL) workflows combine the efficiency of automation with human judgment and oversight. Pinkfish enables you to seamlessly integrate human decision points, approvals, and interventions into your automated processes through dynamic web applications, notifications, and data-driven workflow resumption.How Human-in-the-Loop Works in Pinkfish
The HITL Pattern
- Workflow Pause: Automation reaches a decision point or encounters an exception
- Human Notification: System sends email, SMS, or other notification to relevant stakeholders
- Dynamic Interface: Workflow generates an ephemeral HTML application hosted at a secure file storage link
- Human Input: Stakeholder reviews context and provides input through the custom interface
- Data Storage: Human decision is saved to the datastore
- Workflow Resumption: Data change triggers workflow continuation with human input available
Key Components
- Datastore: Stores human decisions and approval data
- File Storage: Hosts ephemeral HTML applications
- Data Collection Triggers: Automatically resume workflows when human input is received
- Email/SMS Notifications: Alert humans when input is needed
- HTML Generation: Create custom approval interfaces dynamically
Implementation Patterns
1. Approval Checkpoints
Add approval gates at critical workflow stages:2. Exception Handling
Handle workflow failures with human intervention:3. Quality Review Gates
Add human quality checks for critical outputs:Creating Dynamic HTML Applications
Ephemeral Web Interfaces
Workflows can generate custom HTML applications for human interaction:Example HTML Generation
Notification Strategies
Multi-Channel Notifications
Alert stakeholders through multiple channels:- Email Notifications: Detailed context with approval links
- SMS Alerts: Urgent notifications for time-sensitive approvals
- Slack Messages: Team notifications with workflow context
- Microsoft Teams: Enterprise collaboration notifications
Escalation Patterns
Implement approval escalation workflows:Advanced HITL Patterns
Collaborative Decision Making
Enable multiple stakeholders to provide input:Conditional Human Intervention
Add smart intervention triggers:Audit Trail Integration
Maintain complete audit trails:Security and Compliance
Secure Access
- Expiring Links: HTML applications use time-limited access URLs
- Authentication: Integrate with organization’s identity systems
- Audit Logging: Complete trail of human interactions
- Data Encryption: Sensitive approval data encrypted in datastore
Compliance Features
- Role-Based Approvals: Route to appropriate stakeholders based on rules
- Approval Hierarchies: Multi-level approval workflows
- Regulatory Compliance: SOX, GDPR, and other regulatory requirement support
- Evidence Collection: Maintain approval artifacts for auditing
Best Practices
Design Principles
- Clear Context: Provide complete information for informed decisions
- Simple Interfaces: Make approval forms easy to understand and use
- Mobile-Friendly: Ensure HTML applications work on mobile devices
- Timeout Handling: Always include escalation and timeout mechanisms
User Experience
- Professional Appearance: Use consistent styling and branding
- Progress Indicators: Show workflow status and next steps
- Help Documentation: Include guidance for approvers
- Confirmation Messages: Provide clear feedback after decisions
Operational Excellence
- Monitor Approval Times: Track and optimize approval processes
- Handle Exceptions: Plan for approver unavailability
- Test Regularly: Validate approval workflows in staging environments
- Document Processes: Maintain clear approval workflow documentation
Integration with Orchestration
Human-in-the-Loop workflows integrate seamlessly with Pinkfish’s orchestration capabilities:- Queue Management: Pause and resume workflows efficiently
- Monitoring: Track approval status and bottlenecks
- Triggers: Automatic workflow resumption on human input
- State Management: Persistent approval state across workflow executions
Ready to add human oversight to your automations? Start with our Workflow Creation Guide or explore Trigger Configuration. Questions? Join our community on Discord