ADK supplies the full conversation history on each turn. Use that to avoid repeating questions already answered earlier in the session.
Summary of changes
- The original root agent was replaced with a workflow-aware version that:
- Runs inside a multi-turn session and receives full conversation history each turn.
- Follows a repeatable troubleshooting flow for every new issue.
- Calls tools only when they add value (improves determinism).
- Returns concise numbered or bulleted next steps based on tool results.
- Enforces style and safety constraints (calm, practical, and honest).
At-a-glance: Troubleshooting flow
Tools (provided to this agent)
Root agent: structured prompt and tooling
Below is a consolidated example of the root agent definition and its instruction string. The two tools available to this agent are lookup_user and check_service_status.How the flow behaves: examples
Below are two compact interaction examples illustrating how the agent uses session history and tools to be efficient and deterministic.- VPN service degradation example
- Locked email account example
Why this pattern helps
- Deterministic tool use: The prompt explicitly states when to call lookup_user and check_service_status, reducing incorrect or needless tool calls.
- Session-aware interactions: ADK’s multi-turn state allows the agent to reference previous turns and avoid repeating questions.
- Repeatable flow: A concise, explicit troubleshooting flow yields clearer guidance and is easier to extend (for example, by adding a ticket creation tool and a machine-readable ticket schema).
Do NOT claim to access real systems. Always treat tools as limited views of fake or provided data, and surface uncertainties or tool errors clearly to the user.
Next steps
This lesson introduced a stateful, workflow-driven helpdesk agent. Upcoming lessons will add more structure (for example, a ticket schema and a create-ticket tool) so the agent can produce machine-readable outputs that other systems can consume. Try the included lab to experiment with the troubleshooting flow and observe how session state influences the agent’s questions and tool usage.References
- ADK multi-turn session patterns and best practices (see your internal ADK docs)
- General helpdesk and troubleshooting guidance: https://en.wikipedia.org/wiki/Help_desk