Agentic AI Framework for Java Developers
Spring AI Alibaba Admin is a one-stop Agent platform that supports visualized Agent development, observability, evaluation, and MCP management, etc. It also integrates with open-source low-code platforms like Dify, enabling rapid migration from DSL to Spring AI Alibaba project.
Spring AI Alibaba Agent Framework is an agent development framework that can quickly develop agents with built-in Context Engineering and Human In The Loop support. For scenarios requiring more complex process control, Agent Framework offers built-in workflows like SequentialAgent, ParallelAgent, RoutingAgent, LoopAgent.
Spring AI Alibaba Graph serves as the underlying runtime of the Agent Framework, providing essential capabilities such as persistence, workflow orchestration, and streaming required for long-running stateful agents. Compared to the Agent Framework, users can build more flexible multi-agent workflows based on the Graph API.
Multi-Agent Orchestration: Compose multiple agents with built-in patterns including SequentialAgent, ParallelAgent, RoutingAgent, and LoopAgent for complex task execution.
Multimodal Support: ReactAgent with text and media input (image understanding). ReactAgent with tool based image or audio generation.
Voice Agent: WebSocket-based real-time voice agent that supports streaming audio or text input and responds with generated audio.
Context Engineering: Built-in best practices for context engineering policies to improve agent reliability and performance, including human-in-the-loop, context compaction, context editing, model & tool call limit, tool retry, planning, dynamic tool selection.
Graph-based Workflow: Graph based workflow runtime and api for conditional routing, nested graphs, parallel execution, and state management. Export workflows to PlantUML and Mermaid formats.
A2A Support: Agent-to-Agent communication support with Nacos integration, enabling distributed agent coordination and collaboration across services.
Rich Model, Tool and MCP Support: Leveraging core concepts of Spring AI, supports multiple LLM providers (DashScope, OpenAI, etc.), tool calling, and Model Context Protocol (MCP).
One-stop Agent Platform: Build agent in a visualized way, deploy agent without code or export as a standalone java project.
There's a ChatBot example provided by the community at examples/chatbot.
Download the code.
git clone --depth=1 https://github.com/alibaba/spring-ai-alibaba.git
cd spring-ai-alibabaStart the ChatBot.
Before starting, set API-KEY first (visit Aliyun Bailian to get API-KEY):
# this example uses 'spring-ai-alibaba-starter-dashscope', visit https://java2ai.com to learn how to use OpenAI/DeepSeek.
export AI_DASHSCOPE_API_KEY=your-api-key# Maven installation is optional when using mvnw.
./mvnw -pl examples/chatbot spring-boot:runChat with ChatBot.
Open the browser and visit http://localhost:8080/chatui/index.html to chat with the ChatBot.
Add dependencies
<dependencies>
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-agent-framework</artifactId>
<version>1.1.2.0</version>
</dependency>
<dependency>
<groupId>com.alibaba.cloud.ai</groupId>
<artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
<version>1.1.2.1</version>
</dependency>
</dependencies>Define Chatbot
For more details of how to write a Chatbot, please check the Quick Start on our official website.
This project consists of several core components:
| Repository | Description | ⭐ |
|---|---|---|
| Spring AI Alibaba Graph | A low-level orchestration framework and runtime for building, managing, and deploying long-running, stateful agents. | |
| Spring AI Alibaba Admin | Local visualization toolkit for the development of agent applications, supporting project management, runtime visualization, tracing, and agent evaluation. | |
| Spring AI Extensions | Extended implementations for Spring AI core concepts, including DashScopeChatModel, MCP registry, etc. | |
| Spring AI Alibaba Examples | Spring AI Alibaba Examples. | |
| JManus | A Java implementation of Manus built with Spring AI Alibaba, currently used in many applications within Alibaba Group. | |
| DataAgent | A natural language to SQL project based on Spring AI Alibaba, enabling you to query databases directly with natural language without writing complex SQL. | |
| DeepResearch | Deep Research implemented based on spring-ai-alibaba-graph. |
Dingtalk Group (钉钉群), search 182255021470 and join.
WeChat Group (微信公众号), scan the QR code below and follow us.
Made with ❤️ by the Spring AI Alibaba Team
[Dependency Upgrade] Upgrade a2a-java-sdk from 0.2.5.Beta2 to 1.0.0.Final
[community] 新的框架问题或者 bug,PR 等可以提在 https://github.com/agentic-spring-ai/agentic-spring-ai/issues
[BUG] DashScopeMultimodalEmbeddingAutoConfiguration 2.0.0-M1.1版本在启动是报错显示找不到该类
[Question] 这项目还更新维护么
v2.0 GA版本
2.0 GA版本还有吗?
[Feature] 探讨增加可选的百智 MCP 限定工具研究示例
[Feature] Support Spring AI 2.0.0
[BUG] AnalyticDB PG vector store `AdVectorFilterExpressionConverter` hardcode `$.` jsonpath, ADB PG FastANN vector search does not support jsonpath filter
[BUG] [admin] Prompt Playground/Evaluator/Experiment fail: Could not copy property 'outputSchema' from source to target (spring-ai 1.1.2 regression)