workflowstacks
design

Build AI Apps with spring-ai

Get an AI application framework for engineering, for founders and Java developers, with 8.9k+ GitHub stars
intermediateโฑ 1-2 hours๐Ÿ’ต Free (self-hosted)
9,278 stars2,810 forksJavaHealth Score 9/10Updated 8/8/2026100% free ยท open source
What it is

Build an AI application using code with Spring-projects' Spring-AI.

What you can make with it

Automations like adding new customers to a Notion database and sending them a welcome email via Resend.

How it helps

Spring-AI helps you build, deploy, and manage AI applications efficiently, especially for those already familiar with Java and the Spring framework.

Real use case example

"A founder uses Spring-AI to automate customer onboarding by writing a Java script that integrates with their Notion database and a Mailgun email service. They write and deploy the code, configure Spring-AI to watch their Notion database, and receive an email notification whenever a new customer signs up."

If you're new

When you're new to AI and want a gentle introduction with a solid development framework.

If you're senior

For experienced Java developers who already use the Spring framework and want to incorporate AI into their projects.

Common confusion cleared up

Spring-AI is designed to work seamlessly with existing Spring projects, but it may require additional setup and configuration.

Best inside these AI tools
Claude DesktopClaude CodeCursorCodex CLI
Pairs with
Stripe webhookNotion databaseMailgun email service
Why we list it on WorkflowStacks: It's part of a free and open-source marketplace that saves developers time and resources compared to using paid alternatives.
What it does

Spring-AI provides a framework for building artificial intelligence and machine learning applications using Java and the Spring ecosystem

Install / run
Clone the Spring-AI repository using the command `git clone https://github.com/spring-projects/spring-ai.git`
When to use it
  • โ€ขBuilding a new AI-powered application with a Java-based backend
  • โ€ขIntegrating machine learning models into an existing Spring-based application
  • โ€ขDeveloping a real-time data processing pipeline with AI-driven insights
Quick start
  1. 1Import the Spring-AI project into your IDE, such as Eclipse or IntelliJ, using the `pom.xml` file
  2. 2Configure the AI application framework by creating a `application.properties` file and setting the `spring.ai.model` property
  3. 3Use the `@EnableAI` annotation to enable AI functionality in your Spring application
  4. 4Implement a custom AI model using the `AIModel` interface and integrate it with your application
  5. 5Run the application using the `mvn spring-boot:run` command
Ready-to-paste prompt
Create a simple AI-powered chatbot by implementing the `AIModel` interface and using the `@EnableAI` annotation, then test it using the `curl` command: `curl -X POST -H 'Content-Type: application/json' -d '{"input": "Hello, how are you?"}' http://localhost:8080/chat`
Heads up: Ensure you have Java 11 or later installed, as Spring-AI requires a minimum of Java 11 to function correctly
Saves to your device

Topics

artificial-intelligence
hacktoberfest
java
spring-ai
What's inside โ€” free to inspect
No purchase needed

Read the entire source before you build โ€” unlike paid marketplaces that hide it behind a buy button.

15
top-level files
26
folders
105.9M
source size
Apache-2.0
license
Key files
.editorconfig
AGENTS.md
README.md
File tree
.github/
.mvn/
advisors/
auto-configurations/
design/
document-readers/
mcp/
memory-repositories/
models/
spring-ai-bom/
spring-ai-client-chat/
spring-ai-commons/
spring-ai-docs/
spring-ai-integration-tests/
spring-ai-model/
spring-ai-rag/
spring-ai-retry/
spring-ai-spring-boot-docker-compose/
spring-ai-spring-boot-testcontainers/
spring-ai-template-st/
spring-ai-test/
spring-ai-tool-search-tool/
spring-ai-vector-store/
src/
Quick Actions
Details
Creator
spring-projects
Language
Java
Category
design
Published
6/27/2023

Are you the creator of this tool? Claim your listing โ†’ and earn 85% of every sale.