NashTech Blog

Table of Contents

Welcome back to our journey to Akka Agentic AI! The last blog, Akka Agentic AI: Secret to Planning a Perfect Trip – Part 3, provides a step-by-step guide to add a Weather AI Agent that help us retrieve weather forecast info to plan a trip. However, till now a User had capability to look at a single trip plan at a moment. What if User wants to see all previous suggestions? To compare the plans and select the best suited one.

This article will guide us on adding a view via which a User can query all trip plans recommended by Akka AI Agents.

Add a Plan View

  • The query selects all rows for a given userId.
  • The view is updated from the state changes of the workflow.
  • The workflow id corresponds to the session id.

Expose the View via an Endpoint

Next, all we need to do is add a new endpoint that gets the previous plans for a given userId.

Let’s Plan Trips!

1. Set OpenAI API Key as environment variable

2. Start the service locally

3. Plan Trip 1

4. Plan Trip 2

5. Retrieve all Recommended Trips

The point to note is, the list includes recommended plans for both – Scotland and Chicago.

Next Steps

Till now we have been telling the AI Agents (Weather Agent & Planning Agent) how to coordinate. But in a complex application, with 10s or 100s of AI Agents, managing their workflow can be cumbersome. To avoid that we can benefit from letting the AI model come up with a workflow which agents can use to process a request. We will explore that feature in our next blog, so stay tuned 🙂

Further Reading

Picture of Himanshu Gupta

Himanshu Gupta

Himanshu Gupta is a Principal Architect passionate about building scalable systems, AI‑driven solutions, and high‑impact digital platforms. He enjoys exploring emerging technologies, writing technical articles, and creating accelerators that help teams move faster. Outside of work, he focuses on continuous learning and sharing knowledge with the tech community.

Leave a Comment

Your email address will not be published. Required fields are marked *

Suggested Article

Scroll to Top