Java Clean Architecture Masterclass

Java Clean Architecture MasterclassNov 20-21

Join

Spring AI Alibaba

License CI Status Ask DeepWiki Maven central gitleaks badge

A production-ready framework for building Agentic, Workflow, and Multi-agent applications.

Agent Framework Docs, Graph Docs, Spring AI, Examples.

What's Agent Framework

architecture

Spring AI Alibaba Agent Framework is an agent development framework centered around the design philosophy of ReactAgent, enabling developers to build agents with core capabilities such as automatic Context Engineering and Human In The Loop interaction.

For scenarios requiring more complex process control, Agent Framework offers built-in workflows like SequentialAgent, ParallelAgent, RoutingAgent, and LoopAgent based on its Graph Runtime. Developers can also flexibly orchestrate more complex workflows using the Graph API.

Core Features

Getting Started

Prerequisites

Quickly Run a ChatBot

There's a ChatBot example provided by the community at examples/chatbot.

  1. Download the code.

    git clone --depth=1 https://github.com/alibaba/spring-ai-alibaba.git
    cd examples/chatbot
    
  2. Start the ChatBot.

    Before start, set API-KEY firat (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
    
    mvn spring-boot:run
    
  3. Chat with ChatBot.

    Open the browser and visit http://localhost:8080/chatui/index.html to chat with the ChatBot.

chatbot-ui

Chatbot Code Explained

  1. Add dependencies

    <dependencies>
      <dependency>
        <groupId>com.alibaba.cloud.ai</groupId>
        <artifactId>spring-ai-alibaba-agent-framework</artifactId>
        <version>1.1.0.0-RC2</version>
      </dependency>
      <!-- Assume you are going to use DashScope Model. Refer to docs for how to choose model.-->
      <dependency>
        <groupId>com.alibaba.cloud.ai</groupId>
        <artifactId>spring-ai-alibaba-starter-dashscope</artifactId>
        <version>1.1.0.0-RC2</version>
      </dependency>
    </dependencies>
    
  2. Define Chatbot

    For more details of how to write a Chatbot, please check the Quick Start on our official website.

📚 Documentation

Project Structure

This project consists of three core components:

Spring AI Alibaba Ecosystem

Repository Description
Spring AI Alibaba Graph A low-level orchestration framework and runtime for building, managing, and deploying long-running, stateful agents. GitHub Repo stars
Spring AI Alibaba Admin Local visualization toolkit for the development of agent applications, supporting project management, runtime visualization, tracing, and agent evaluation. GitHub Repo stars
Spring AI Extensions Extended implementations for Spring AI core concepts, including DashScopeChatModel, MCP registry, etc. GitHub Repo stars
Spring AI Alibaba Examples Spring AI Alibaba Examples. GitHub Repo stars
JManus A Java implementation of Manus built with Spring AI Alibaba, currently used in many applications within Alibaba Group. GitHub Repo stars
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. GitHub Repo stars
DeepResearch Deep Research implemented based on spring-ai-alibaba-graph. GitHub Repo stars

Contact Us

Resources

Star History

Star History Chart


Made with ❤️ by the Spring AI Alibaba Team

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.