Build Long-running AI agents that pause, resume, and never lose context with ADK
Blog post from Google Cloud
The tutorial discusses building a New Hire Onboarding Coordinator Agent using the Agent Development Kit (ADK) to address the limitations of stateless chatbots in handling long-term enterprise workflows. Stateless chatbots are inadequate for processes with extended idle times, such as HR onboarding or invoice dispute resolutions, because they rely on appending conversation history, which leads to context pollution, token cost issues, and reasoning errors. The tutorial introduces three architectural shifts: durable memory schemas, event-driven dormancy gates, and multi-agent delegation. By implementing a state machine to track onboarding progress and using persistent session storage, the agent can maintain context across pauses and resumes, ensuring reliable workflow management. This approach includes multi-agent coordination, allowing specialized sub-agents to handle tasks like IT provisioning, which enhances focus and reasoning quality. The tutorial also covers using webhook endpoints to handle idle time effectively and evaluates multi-day flows through tests that simulate delays, ensuring the agent remains functional over extended periods. The tutorial concludes by encouraging users to explore the ADK documentation and deploy their long-running agents for various workflows requiring persistence and state management.