Requests Introduction
Requests are the fundamental building blocks of HITL.sh workflows. They represent pieces of content, decisions, or actions that require human oversight before proceeding. Understanding how to create and structure requests is essential for building effective human-in-the-loop systems.What are Requests?
A request in HITL.sh is a structured data package that contains:- Content to Review: The actual material requiring human oversight
- Context Information: Background data to help reviewers make decisions
- AI Analysis: Results from your AI system’s initial processing
- Metadata: Request details like priority, source, and timestamps
- Routing Instructions: How the request should be handled
Request Examples
- Flagged social media posts for content moderation
- Suspicious financial transactions for fraud review
- AI-generated content for quality assurance
- Customer support tickets requiring escalation
- Compliance documents for verification
Request Lifecycle
Requests follow a straightforward lifecycle from creation to completion:1. Creation
Your application creates a request using the API, specifying the content type, response requirements, and reviewer instructions:2. Broadcasting
The API immediately sends push notifications to all active members of the target loop. Members receive the request in their mobile app with priority-based ordering.3. Pending
The request waits in the queue for a reviewer to claim it. Requests are ordered by priority (critical → high → medium → low) and creation time.4. Claimed
When a reviewer opens the request in their mobile app, it’s marked as “claimed” and removed from other reviewers’ queues to prevent duplicate work.5. Completed
The reviewer submits their response using the configured response type. The request status changes to “completed” and the response data becomes available via the API.6. Webhook (Optional)
If you configured acallback_url
, HITL.sh sends a webhook notification with the response data to your endpoint.
Retrieving the Response
Request Content Types
HITL.sh supports two content types for human review:Markdown Requests
Review text-based content like comments, posts, articles, or documents formatted in markdown
Image Requests
Review visual content like photos, graphics, or screenshots requiring human evaluation
Markdown Content Type
Usetype: "markdown"
for text-based content review:
Image Content Type
Usetype: "image"
for visual content review:
Request Structure
Required Fields
Every request must include these essential elements:Optional Fields
Enhance requests with additional context and configuration:Request Priority Levels
Low Priority
Standard requests with no time sensitivity:- Response Time: 24-48 hours
- Reviewer Level: Any available reviewer
- Examples: General content moderation, routine quality checks
Medium Priority
Standard business requests:- Response Time: 4-8 hours
- Reviewer Level: Standard reviewers
- Examples: Content approval, user reports, policy reviews
High Priority
Time-sensitive requests requiring prompt attention:- Response Time: 1-2 hours
- Reviewer Level: Experienced reviewers
- Examples: Customer escalations, urgent compliance reviews
Critical Priority
Critical requests requiring immediate attention:- Response Time: 15-30 minutes
- Reviewer Level: Senior reviewers or escalation team
- Examples: Security incidents, legal compliance issues, emergency reviews
Request States
Track the progress of requests through their lifecycle:Pending
Request is waiting to be assigned to a reviewer.
Assigned
Request has been assigned to a specific reviewer.
In Review
Reviewer is actively examining the request.
Completed
Human decision has been made and returned.
Escalated
Request has been escalated to a senior reviewer.
Timed Out
Request exceeded response time and was auto-processed.
Creating Effective Requests
Content Presentation
1
Clear Formatting
Present content in a format that’s easy for reviewers to understand.
2
Relevant Context
Include all information reviewers need to make informed decisions.
3
Structured Data
Organize request data logically with consistent formatting.
4
Appropriate Priority
Set realistic priorities based on business impact and urgency.
AI Analysis Integration
Confidence Scores
Include AI confidence levels to help reviewers understand uncertainty.
Flagged Issues
Highlight specific concerns the AI has identified.
Risk Assessment
Provide risk scores and reasoning for human consideration.
Model Information
Include AI model version and processing details for transparency.
Request Performance
Metrics to Track
Monitor request performance to optimize your workflows:Response Time Metrics
Response Time Metrics
- Average response time per request type
- 95th percentile response times
- Time to first response
- Escalation frequency and timing
Quality Metrics
Quality Metrics
- Decision consistency across reviewers
- Inter-rater reliability scores
- Error rates and types
- Reviewer performance trends
Volume Metrics
Volume Metrics
- Requests per day/week/month
- Peak load times and patterns
- Queue length and processing capacity
- Loop utilization rates
Optimization Strategies
1
Batch Processing
Group similar requests to reduce reviewer overhead.
2
Smart Routing
Route requests to reviewers with appropriate expertise.
3
Load Balancing
Distribute requests evenly across your reviewer team.
4
Priority Queuing
Process high-priority requests before lower-priority ones.
Best Practices
Request Design
Clear Content
Present content in a format that’s easy for reviewers to understand.
Relevant Context
Include all information reviewers need to make informed decisions.
Structured Data
Organize request data logically with consistent formatting.
Appropriate Priority
Set realistic priorities based on business impact and urgency.
Performance Optimization
- Validation: Verify request data before submission
- Consistency: Maintain consistent request structure across loops
- Monitoring: Track request processing times and success rates
- Feedback: Use reviewer feedback to improve request quality
Complete Examples
Content Moderation (Markdown)
Review text content for community guidelines:Image Moderation
Review visual content for appropriateness:Retrieving Responses
Next Steps
Ready to start creating requests for your loops?API Reference
See the complete API documentation for creating requests with all parameters and examples.
Response Types
Learn about the 6 response types you can use to collect structured feedback from reviewers.
Create Your First Loop
Set up a loop with reviewers to process your requests.
Mobile App Guide
Understand how reviewers interact with your requests on the mobile app.