Loops
Loops are the foundational organizational structure in HITL.sh that connect human reviewers with content and decisions requiring oversight. Think of a loop as a team or group of reviewers who collaborate to handle specific types of requests from your applications.What is a Loop?
A loop in HITL.sh is a structured group that:- Manages Reviewers: Organizes human reviewers who can respond to requests
- Receives Requests: Accepts requests created via the API for human review
- Broadcasts Notifications: Sends push notifications to mobile devices when new requests arrive
- Tracks Member Activity: Monitors who’s active and available to respond
- Controls Access: Manages who can create requests and who can review them
Loops are created and managed by API key holders, while reviewers join loops via the mobile app using invite codes or QR codes.
Loop Components
Basic Properties
Every loop has fundamental properties that define its identity and behavior:Name & Description
Name & Description
- Name: Clear, descriptive identifier for the loop (required, max 100 characters)
- Description: Detailed explanation of the loop’s purpose and scope (optional, max 500 characters)
- Icon: Visual identifier for the loop (required, max 100 characters - typically an emoji or short text)
- Creator: User who created and owns the loop
Membership
Membership
- Active Members: Reviewers who can receive and respond to requests
- Pending Members: Users who’ve been invited but haven’t joined yet
- Member Count: Total number of people in the loop
- Invite Code: Unique code for joining the loop
Access Control
Access Control
- Creator Permissions: Only loop creators can modify settings and add requests
- Member Permissions: Members can only view and respond to requests
- API Access: Only the creator’s API key can create requests in the loop
Invite System
Loops use a simple but effective invite system:- QR Code: Scan with the HITL mobile app camera
- Invite Code: Enter the 6-digit code in the app
- Direct Link: Share URL that opens the mobile app directly
Loop Lifecycle
1. Creation
Loops are created via the API by users who need human reviewers:2. Reviewer Recruitment
Once created, loops need human reviewers to function:1
Share Invite Code
Distribute the 6-digit invite code to potential reviewers via email, Slack, or other communication channels.
2
QR Code Sharing
Use the provided QR code URL to generate scannable codes for easy mobile app joining.
3
Direct Mobile Links
Create deep links that open the HITL mobile app directly to the join screen.
4
Monitor Membership
Track who joins and ensure you have adequate reviewer coverage.
3. Active Operation
With reviewers in place, loops continuously process requests:4. Management & Updates
Loop creators can modify settings and membership:Loop Types & Use Cases
Content Moderation Loops
Review user-generated content for policy compliance:Quality Assurance Loops
Review AI-generated or automated content:Business Process Loops
Handle approval workflows and decision-making:Verification & Compliance Loops
Verify information accuracy and regulatory compliance:Loop Management
Monitoring Loop Health
Keep track of loop performance and member engagement:Member Management
Track and manage loop membership:Best Practices
Loop Design
1
Clear Purpose
Give loops specific, well-defined purposes rather than general “review everything” mandates.
2
Right Size
Aim for 3-10 active members per loop - enough for coverage but small enough for accountability.
3
Descriptive Names
Use names that clearly indicate what the loop reviews and how urgent it is.
4
Regular Maintenance
Periodically review membership, remove inactive users, and update descriptions.
Operational Efficiency
Redundancy Planning
Always have multiple active reviewers to ensure coverage during off-hours or vacations.
Priority Management
Use different loops for different priority levels rather than mixing urgent and routine requests.
Specialization
Create specialized loops for different types of content (text, images, different domains).
Performance Monitoring
Regularly check completion rates and response times to identify bottlenecks.
Reviewer Experience
- Clear Guidelines: Provide reviewers with explicit instructions and examples
- Reasonable Workload: Don’t overwhelm loops with too many requests
- Feedback Loop: Use the feedback API to acknowledge good reviewer performance
- Training Materials: Share documentation about what to look for and how to respond
Scaling Patterns
Single Loop → Multiple Loops
As your needs grow, consider splitting loops:Geographic Distribution
Create region-specific loops for timezone coverage:Hierarchical Review
Set up escalation between loops:Troubleshooting
Common Issues
No Active Members
No Active Members
Problem: Requests timeout because no reviewers are available.Solutions:
- Check that invite codes have been shared and used
- Verify reviewers have the mobile app installed and notifications enabled
- Consider timezone differences when recruiting reviewers
- Monitor member activity and remove/replace inactive users
Low Response Rates
Low Response Rates
Problem: Many requests timeout instead of being completed.Solutions:
- Increase timeout durations to allow more response time
- Add more reviewers to increase coverage
- Adjust priorities - too many high-priority requests reduce effectiveness
- Check if request instructions are clear and actionable
Inconsistent Responses
Inconsistent Responses
Problem: Reviewers give different answers to similar requests.Solutions:
- Provide clearer guidelines and examples
- Use more structured response types (single select vs. text)
- Consider reviewer training or calibration exercises
- Review response configurations to ensure options are clear
Member Management Issues
Member Management Issues
Problem: Can’t remove members or invite codes aren’t working.Solutions:
- Only loop creators can manage membership - including removing members, updating loop details, and deleting loops
- Loop creators cannot remove themselves from the loop
- Invite codes are case-sensitive and expire after extended periods
- Removed members can rejoin with the same invite code if needed
- Check API responses for specific error messages
Next Steps
Create Your First Loop
Start building your reviewer team with the loops API
Request Management
Learn how to create and manage requests within your loops
Mobile App Setup
Help your reviewers get set up with the HITL mobile app
API Reference
Explore all available loop management endpoints