Additional samples
|
New to Akka? Start here: Use the Build your first agent with Spec-Driven Development guide to use your AI assistant for implementing a simple agentic service, running it locally and interacting with it. |
In addition to our getting started guides and SDK reference material, we also have many samples available that demonstrate important patterns and abstractions. Full sources for the samples can be downloaded with akka code init or cloned from their respective GitHub repositories. Please refer to the README file in each repository for setup and usage instructions.
Sample |
Orchestration |
Agents |
Memory |
Streaming |
✅ |
✅ |
|||
✅ |
✅ |
|||
✅ |
✅ |
✅ |
✅ |
|
✅ |
✅ |
✅ |
✅ |
|
✅ |
✅ |
✅ |
||
✅ |
||||
✅ |
✅ |
|||
✅ |
✅ |
|||
✅ |
✅ |
✅ |
||
✅ |
✅ |
|||
✅ |
✅ |
✅ |
||
✅ |
✅ |
✅ |
||
✅ |
✅ |
✅ |
✅ |
|
✅ |
✅ |
✅ |
||
✅ |
||||
✅ |
||||
✅ |
||||
Hello World
This sample uses an agent and LLM to generate greetings in different languages. It illustrates how the agent maintains contextual history in a session memory.
Concepts: Agent, LLM
Level: Beginner
Step-by-step guide
GitHub Repository
Hello World (Kotlin)
This sample uses an agent and LLM to generate greetings in different languages. It illustrates how the agent maintains contextual history in a session memory. This sample is built with Kotlin
Concepts: Agent, LLM
Level: Beginner
GitHub Repository
Multi-agent planning and execution
This sample models an outdoor activities planner. It demonstrates how to build a multi-agent system using Akka and an AI model. An Autonomous Agent coordinator delegates to a weather agent and an activity agent through the built-in delegation capability; the model decides which workers to consult for each request and synthesizes the final suggestion.
Concepts: Agent, Autonomous Agent, Delegation, Multi-agent
Level: Intermediate
Step-by-step guide
GitHub Repository
Autonomous agents playground
Samples demonstrating the autonomous agents — an LLM-driven component with built-in durable execution and multi-agent coordination. An Autonomous Agent runs as a process: iterating through an LLM decision loop until its assigned tasks are complete.
Each sample focuses on a specific capability or coordination pattern. They progress from minimal usage to sophisticated multi-agent systems.
Concepts: AutonomousAgent, Multi-agent, LLM
Level: Advanced
GitHub Repository
Chat agent with RAG
This sample illustrates how to use a batching workflow to create embeddings for vector databases, how to consume LLMs and maintain conversation history, use RAG to add knowledge to fixed LLMs, and expose it all as a streaming service. It uses MongoDB Atlas and OpenAI.
Concepts: Agent, RAG, Vector database
Level: Intermediate
Step-by-step guide
GitHub Repository
Travel planning agent
This sample illustrates reliable interaction with an LLM using a workflow. Entities are used for durable state of user preferences and generated trips.
Concepts: Agent, Agent Memory, Workflow, Entity
Level: Beginner
GitHub Repository
Agentic haiku
The sample demonstrates a workflow orchestration using AI agents to generate haiku poetry and an accompanying image with quality assurance.
Concepts: Agent, Workflow, Evaluations
Level: Beginner
GitHub Repository
Medical discharge summary tagging
This sample illustrate the use of LLMs and prompts to summarize activities. It assigns tags to the medical discharge summaries, while also enabling human verification and comparative analysis. Interactions are from a workflow with an agent using the OpenAI API with configurable model choice.
Concepts: Agent, Summarization, Workflow, Entity, OpenAI, Human in the loop
Level: Intermediate
GitHub Repository
IoT sensor monitoring
This sample is a temperature monitoring system that collects, aggregates, and analyzes temperature data from IoT sensors. The system uses AI to generate insights about temperature trends and anomalies across different locations. Collects and aggregates temperature data using Key Value Entities. OpenAI is used for anomaly and trend detection.
Concepts: Agent, IoT, Trend analysis, Anomaly detection, Entity, OpenAI
Level: Intermediate
GitHub Repository
Release note summarizer
This sample is designed to run every time there is a release from configured GitHub repositories. It interacts with Anthropic Claude from an agent and uses tools to retrieve detailed information from GitHub. Entities are used for storing release summaries. A timed action looks for new releases periodically and creates the summary using the LLM.
Concepts: Agent, Entity, Timed Action, Anthropic Claude, Tools, Summarization
Level: Intermediate
GitHub Repository
Customer service chat workflow
The real-estate customer service agent demonstrates how to combine Akka features with an LLM model. It illustrates an agentic workflow for customer service. It processes incoming real-estate inquiries, analyzes the content to extract details, provides follow-up when needed and saves the collected information for future reference.
Concepts: Agent, Workflow, Analysis, Detail extraction, Human in the loop, Agent Memory
Level: Intermediate
GitHub Repository
Trip booking with tools
This app represents a travel agency that searches for flights and accommodations. It’s composed by an LLM (Anthropic) using Spring AI and AI tools to find flights, accommodations and sending mails.
Concepts: Agent, Tools, Anthropic, Spring AI, Workflow
GitHub Repository
Multi-source health sensor analysis
This sample illustrates an AI agent that uses an LLM and multiple tools to analyze data from fitness trackers, medical records and other sensors. It integrates with Fitbit and MongoDB Atlas.
Concepts: Agent, Analysis, Integrations, Vector database
Level: Intermediate
GitHub Repository
Shopping cart
This sample illustrates the basics of building a shopping cart with entities, views, and other core Akka components. There is also a step-by-step guide that gradually adds features to a core cart.
Concepts: Entity, Events, HTTP Endpoint
Level: Beginner
Step-by-step guide
GitHub Repository
Customer data store
This sample illustrates the use of entities and query capabilities with a view. It shows a simple set of traditional queries and the standard create, update, and delete mutations through events.
Concepts: Entity, View, HTTP Endpoint
Level: Intermediate
GitHub Repository
Wallet transfer
This example illustrates a funds transfer workflow between two wallets, where the workflow orchestrates the interaction with an external service to perform the transfer.
Concepts: Transactions, Workflow
Level: Intermediate
GitHub Repository
Wallet transfer with failure compensation
This example illustrates a funds transfer workflow between two wallets. It also illustrates how to set up workflow compensation in order to self-heal work when one or more steps in the workflow fail.
Concepts: Transactions, Workflow, Entity
Level: Intermediate
GitHub Repository
Choreographed user signup flow
This example is a user registration service where the user’s new signup flow implemented as a choreography saga.
Concepts: Choreography, Saga, Workflow
Level: Advanced
GitHub Repository
Akka Chess
This example represents a complete, resilient, automatically scalable, event-sourced chess game. We will be adding a guided tour that will include adding an agent to act as a non-player "brain" that plays chess in real time against human players.
Concepts: Embedded UI, Entity, Workflow, View, Timed Action
Level: Advanced
GitHub Repository