Sign inSign up

Open-source for 3 months, Snail AI becomes Gitee GVP: Bringing AI capabilities into business applications

Open SourceReports & Dashboards
2026-12-03 12:55 0 views • 0 downloads 0KB
Open-source for 3 months, Snail AI becomes Gitee GVP: Bringing AI capabilities into business applications

This Time, We Obtained Gitee GVP, and We Want to Explain This Clearly: Snail AI Is Not Just a Callable AI Service, Its Agent Client Can Be Embedded into Your Own Business Application Process Like a Normal Starter, Allowing AI to Execute Naturally Alongside Business CodeIt Is Targeted at Java / Spring Technical Stack Teams, Providing Intelligent Entity Management, Model Management, RAG Knowledge Base, MCP Tool Interface, Skill Extension, OpenAPI, Resource Management, and Statistical AnalysisTypical Scenarios:

Business System Embedded AI Execution:

Image

:Embedding the Agent Client as a Starter into the Business Application, AI Reasoning and Tool Calls Executed Alongside Business Code, with No Data Leaving the Intranet

  • Business Page with AI Entrance::Adding a RAG Question-Answer or Auxiliary Analysis Entrance to Customer Service, Ticket, or Knowledge Base Pages
  • External System OpenAPI Interface::Calling the Agent Using Application Credentials + OpenAPI for Synchronous or Streamed Dialogs
  • Internal Tool Calls::Agent Calling Intranet Services or Internal APIs via MCP or Local Tools
  • Platform Operations::Unified Backend Management of Applications, Models, Intelligent Entities, Knowledge Bases, and Usage
  • 01 Agent Can Be Called by Business SystemsA Single Agent Can Serve as an AI Capability Unit in Pages, Processes, and Backend Systems

In Snail AI, the Same Business System Can Configure Different Agents Based on Scenarios: the Financial Module Interfaces with Financial Knowledge Bases, the R&D Platform Interfaces with Project Documents, and the Customer Service System Interfaces with Product FAQs

Business Applications Only Need to Call the Corresponding Agent, with Models, Knowledge Bases, Tools, Skills, and Memories Maintained in the Snail AI Backend

02 Unified Model Management, Reducing Scattered Configurations

Image
Image

Model Keys, Endpoints, States, Default Models, and Connectivity Verification Are All Managed on the Platform

Enterprises Frequently Use Multiple Model Capabilities Such as Chat, Embedding, and Rerank Simultaneously

Snail AI Centralizes Model Providers and Configurations, Allowing Business Sides to Choose the Models They Need Without Scattering Keys and Addresses Across Multiple Services

Image

03 Enterprise Knowledge Should Be Accessible to AI

RAG Enables Models to Answer Company-Specific Information Rather Than Relying on General Knowledge Guesswork

Snail AI Supports PDF, Word, Excel, PPT, Markdown, HTML, TXT, CSV, and Other Common Documents

Image
Image

After Document Upload, It Undergoes Parsing, Sharding, Vectorization, and Indexing; Relevant Content Is Retrieved and Returned to the Model During Dialog

04 Server-Agent Bidirectional Flow: AI Execution Nodes Directly Embedded into Business Systems

Most AI platforms follow the "business-side remote AI" pattern: data needs to be exported to the Internet, internal tools need to be whitelisted, and internal interfaces need to be reverse proxied. And Snail AI adoptsServer + Agent Client bidirectional flow architecture,which splits the roles into two halves:

  • ServerServer: entry, permission, orchestration, model/knowledge base/Skill/session governance, RAG search, statistical analysis.
  • Agent ClientAgent: a lightweight client in the form of a Spring Boot Starter, running on the business side's own application, responsible for model calls, tool execution, interceptor chain, Skill execution.
  • gRPC bidirectional flowMaintain long connections, the Server pushes reasoning tasks to the Client for execution, and the Client streams back the results.
Image

What did the client mode bring?

  • Same process = same permissionsClient is located in the JVM of the business application, AI can directly reuse the existing DAO, Feign, cache, and internal HTTP client. Writing a custom tool is just writing a normal Spring Bean.
  • Data within the intranet does not go outAll data reading, model requests, and tool calls occur within the internal network of the business side. Server only handles routing and orchestration, without touching the original business data.
  • Low access thresholdA Starter + a yaml segment, and the business application starts to register as an execution node upon launch.
  • Heartbeat + automatic reconnectionThe Client reports active conversation numbers every 10 seconds. Automatic reconnection is recovered after network jitter and process restart.
  • Horizontal expansion across multiple instancesSame appId can start multiple Clients, Server load balancing; combined with node labels (env、 region、 team), backend can visualize management, one-click kick out abnormal nodes, support rolling release and gradient.

Accessing is actually just three steps:

<!-- 1. Business application pom.xml import Starter -->
<dependency>
  <groupId>com.aizuda</groupId>
  <artifactId>snail-ai-agent-executor-starter</artifactId>
</dependency>
2. application.yml configured with Server address and application credentials
snail-ai:
  enabled: true
  server:
    host: snail-ai-server.your-corp.com
    port: 18888
  app-id: your-app-id
  token: SAI_xxxxxxxxxxxxxxxxxxxxxxxx
port: 18889 # Local Client's gRPC port
# 3. Start business application —— Client automatically registers to Server,
# Your business application is also the execution node of AI.

Custom tools are even handier, write a@ToolAnnotated Spring Bean, read your own business library data, call your own internal services, Agent can be used in the dialogue - no need to deploy additional tool services, nor need to open additional networks.

05 Client is not a black box: able to intervene in model interaction at every step

Server-Agent architecture does not treat Client as a "black box executor". Business parties can intervene in model interactions at three key positions on the Client side: tool definition, ChatClient construction, LLM request/response interception。

Image

Extension point one: customizing Tool

Write a Spring Bean with a@Tool wrapper, package internal API, database query into Agent callable tools. Parameters, context useToolContextTransmit, user identity and tenant information can be passed through.

@Component
public class QueryOrderTool {
@Tool(name = "query_order", description = "Query order information")
public String queryOrder(@ToolParam(description = "Order ID") String orderId,
                             ToolContext toolContext) {
        String userId = (String) toolContext.getContext().get("userId");
return orderService.query(userId, orderId); // Directly call local service
    }
}

Extension point two: ChatClientCustomizer (Customize ChatClient construction)

After getting itChatClient.Builderthen, before formal dialogue, you can insert default tools context, default parameters, system prompt word patches, such as injecting the current logged-in user into ToolContext, so that the tool can naturally carry business identity.

@Component
public class MyChatClientCustomizer implements ChatClientCustomizer {
    @Override
    public void customize(ChatClientBuildContext context) {
        context.getBuilder().defaultToolContext(Map.of(
            "userId", CurrentUser.id(),
            "tenantId", CurrentUser.tenant()
        ));
    }
}

Extension Point Three: SnailAiInterceptor (LLM Request/Response Interceptor)

Rewrite the prompt and add context before sending the request to LLM; audit, de-identify, track, and inject business actions after the response is returned.

@Component
public class SensitiveMaskInterceptor implements SnailAiInterceptor {
    @Override
public ChatClientRequest beforeRequest(ChatClientRequest request) { /* de-identify, add watermark */ }
    @Override
public ChatClientResponse afterResponse(ChatClientResponse response) { /* auditing, logging */ }
}

These three extension points make Client not only "run inference", but alsoembed business identity, authentication, auditing, tracking, data masking, etc. engineering actions into every step of model interaction——Server-side orchestration of intelligent entities, Client-side management of model interaction compliance and security boundaries.

06 Two access methods, choose according to scenario

Snail AI does not require business systems to switch to a unified chat page. Wherever you want to add AI, add an entry point, such as a work order detail page with an auxiliary analysis, a knowledge base with a Q&A, or an operation and maintenance background with a troubleshooting assistant.

According to business and network environment, you can choose two access methods or combine them:

 
OpenAPI call
Agent Client embedded
Form
Business system as client, walk HTTP/SSE to Server
Client as Starter run in business application
Data location
Data passed through network to Snail AI for processing
Data left in business locally, Server only does orchestration
Access difficulty
Add SDK, configure host/appId/token
Add a Starter dependency, configure Server address
Suitable Use Cases
Independent deployment, cross-system integration, external applications
Intranet systems, data sensitivity, reuse local services and Bean

Project'ssnail-ai-agent-exampledemonstrated OpenAPI path: a few lines of code can get the Agent list, create a session, initiate synchronous or streaming (SSE) dialog. If you want to go with the embedded path, please refer to Chapter 04's three-step connection.

Real-case connection in RuoYi-Vue-Plus

RuoYi-Vue-Plus is a powerful backend scaffolding project, many teams will build their own business backend based on it. By connecting Snail AI, RuoYi-Vue-Plus can quickly have AI dialog and intelligent entity execution capabilities. The connection is very simple, just introduce the Chat module, embed the Snail AI dialog page into the existing menu, and then associate the RuoYi user identity through openId.

After the user initiates a dialog in the RuoYi-Vue-Plus backend, the Chat page makes an OpenAPI request to the Snail AI Server for dialog scheduling, and the Server then hands over the task to the Agent Client for execution. After the connection is made, AI is no longer just a single chat entry, but can call local services, read business data, and execute specific tasks around its business scenario.

Image
Image

07 MCP, Skill, and businessized Agent

On the tool side, Agent can be connected toMCPthird-party tool services (SSE, Streamable HTTP, Stdio), supporting API Key, Bearer Token, OAuth 2.0; or directly write custom Tool calls to local services on the Client side.SkillIt's like a domain specification document, telling the Agent how to think, how to act, and which tools to use in a specific scenario.

Image

When implemented, Snail AI is responsible for model management, knowledge base, tool invocation, sessions, and execution nodes; your system is responsible for business pages, permission entries, and workflow orchestration. AI is no longer an isolated dialog page, but naturally grows in your business.

08 Welcome to Gitee for support

Star, Issue, PR, document feedback, all will make the project move forward one step.

Snail AI now has basic capabilities such as model management, intelligent entity management, RAG, MCP, Skill, OpenAPI, Server-Agent, resource management, and statistical analysis. In the future, we will continue to work on workflow, multi-Agent collaboration, more model interfaces, multi-tenancy, audit logs, and automated evaluation.

If you are adding AI capabilities to your business system or your team mainly uses Java / Spring technology stack, you can try running Snail AI. First, connect a business page, a knowledge base, and an Agent, and you can see if it's suitable for your team. A Star won't make the project perfect immediately, but it will make more developers see it, and it will let the maintainers know that it's worth continuing to do.

Open-source address

Run Snail AI, and give your business application AI capabilities.

Project address: https://gitee.com/aizuda/snail-ai

Project documents: https://snailai.opensnail.com/

Quick start: https://snailai.opensnail.com/guide/quick-start.html

Finally, we would like to express our special gratitude

  • RuoYi-Vue-Plus:https://gitee.com/dromara/RuoYi-Vue-Plus
  • wemirr-platform:https://gitee.com/battcn/wemirr-platform
#1
资源直链https://gitee.com/aizuda/snail-ai
Download

Next steps

Browse similar deployable resources