Welcome to ATP Development
The Agent Triage Protocol (ATP) enables AI services to request human input through a standardized notification system. This comprehensive guide will walk you through implementing ATP in your applications, from basic setup to advanced patterns.What You’ll Learn
This guide is designed for developers who want to integrate ATP into their applications. By the end of this guide, you will be able to:- Set up and configure ATP clients for your environment
- Register services and handle authentication
- Create and send notifications with various response types
- Process responses securely
- Implement advanced patterns like the decorator-based approach
- Follow best practices for security, performance, and user experience
Core Concepts for Developers
Before diving into implementation details, let’s review the key concepts from a developer’s perspective:The ATP Architecture
ATP consists of three main components:- AI Services (Senders) - Applications that need human input
- ATP Servers - Central coordination points that manage notifications
- Client Applications (Receivers) - Applications that display notifications to users
How ATP Works for Developers
From a developer’s perspective, the typical ATP workflow looks like this:Key Benefits for Developers
Using ATP provides several advantages:- Simplified User Interaction: Focus on your core service logic instead of building notification systems
- Standardized Response Collection: Reliable, type-safe ways to collect user input
- Asynchronous Workflows: Enable AI services to continue running while waiting for human input
- Cross-Platform Support: Reach users on any device that has an ATP-compatible client
- Separation of Concerns: Decouple your service logic from user notification handling
Types of ATP Integrations
There are several ways to integrate ATP into your applications:1. Service Integration
This is the most common use case, where your AI service sends notifications and processes responses:2. Client Integration
Building client applications that display ATP notifications to users:3. Hybrid Integration
Applications that both send notifications and receive responses:Who Should Use This Guide
This guide is designed for:- AI Service Developers: Building AI systems that need human input
- DevOps Engineers: Setting up ATP infrastructure and integrations
- Application Developers: Integrating ATP into existing applications
- Platform Developers: Building systems that will use ATP for user interaction
- REST APIs and asynchronous programming
- Your preferred programming language (Python, JavaScript, etc.)
- Web development concepts like webhooks and authentication
Learning Path
This guide is organized to take you through the complete journey of implementing ATP:- Getting Started - Installation and basic setup
- Service Registration - Registering your service with an ATP server
- Creating Notifications - Designing and sending effective notifications
- Processing Responses - Handling user responses securely
- Advanced Patterns - Using advanced features like decorators
- Client Implementation - Building applications that display notifications
- Best Practices - Ensuring security, performance, and user experience
- Troubleshooting - Solving common issues
Verification: Knowledge Check
Before proceeding, let’s verify your understanding of ATP’s core concepts: If you understand these concepts, you’re ready to move on to the next section and start implementing ATP in your applications.Next Steps
Now that you understand the core concepts of ATP, you’re ready to begin setting up your environment and installing the necessary tools.Getting Started with ATP
Learn how to install, configure, and test your ATP client setup