Building a Sequential AI Agent with Google ADK

Highly skilled Data Test Automation professional with over 10 years of experience in data quality assurance and software testing. Proven ability to design, execute, and automate testing across the entire SDLC (Software Development Life Cycle) utilizing Agile and Waterfall methodologies. Expertise in End-to-End DWBI project testing and experience working in GCP, AWS, and Azure cloud environments. Proficient in SQL and Python scripting for data test automation.
AI agents are evolving fast, and one of the most exciting patterns emerging today is the sequential agent — an agent that performs tasks step‑by‑step, with each step feeding into the next. If you’ve ever wanted to build an AI workflow that behaves more like a human assistant—thinking, planning, and executing in order—this pattern is for you.
Project Structure
Github repository contains the following key files:
File | Purpose |
| Core sequential agent logic |
| Environment variables (API keys, etc.) |
The heart of the project is agent.py, where the agent is defined and configured.
Summary of the Program
1. Create an idea‑generation agent
LlmAgent whose job is to take a user’s topic and generate 3–5 creative content ideas, outputting only a numbered list.
2. Create a keyword‑research agent
LlmAgent that receives the generated content ideas and produces SEO keyword lists for each idea (primary + secondary keywords).
3. Chain the agents in order
A SequentialAgent is created, which runs the two agents step‑by‑step:
Idea generator
Keyword researcher
Each step receives the previous step’s output.
4. Pass shared state between agents
The first agent stores its output as content_ideas, and the second agent reads that value to produce seo_keywords_map.
5. Expose the full pipeline as the root agent
The content_creation_pipeline becomes the root_agent, meaning any user query triggers the entire workflow automatically.
Execution Output:
GitHub Repo:
https://github.com/puthanvipin/google-adk-sequential-agent/tree/main/sequential_agent




