End-to-end example of a long-running AI agent that pauses, resumes, and never loses context.
It simulates the onboarding of a new employee.
Here are 3 patterns you'll learn from this example:
1. How to implement a durable state machine that persists over time.
2. How to build event-driven agents that stay dormant until they receive a webhook event. No active polling or blocked threads.
3. How to build multi-agent delegation instead of relying on a single agent to do everything.
You can deploy this example in the Gemini Enterprise Platform:
https://fandf.co/4nWzg2Q
You'll find a link to the GitHub repository with the complete source code and a complete explanation of this example in this article:
https://fandf.co/4uVhmPZ
Thanks to the Google Cloud AI team for partnering with me on this post.














