AI agents, chatbots and forecasting for ERPNext
Savyant Systems sets up AI on ERPNext and the Frappe Framework: agents that draft routine work for your approval, chatbots that answer from live data, and demand, stock and cash forecasts tested on your own history. It runs on Frappe Flow and the Frappe MCP server, so every user's permissions stay in force.
- Frappe Flow, v16.60 and later
- Frappe MCP, v16 and later
- Claude, OpenAI or a self-hosted model
- You approve anything that posts
Security
Your data stays yours. Your rules stay in force.
- User's own rolesNever more than the person asking
- Approval firstDrafts before anything posts
- Full audit trailEvery AI action is logged
- Your choice of modelCloud API or your own server
Frappe MCP
Plug any AI into ERPNext, safely
- Frappe v16 or later
- 13 tools
- On by default for new sites
Agent instructions guide the client. They do not grant access. Source: Frappe docs.
What AI does for you
Less chasing. Faster answers. Better plans.
- WatchDecideActAgentic AI
Routine work, done for you
Drafts ready every morning. You approve.
Explore → - ChatbotsStock of FG-204?340 in Main WH, 120 reserved.Quote 200 pcs
Answers in seconds
Ask in plain words. Get live numbers.
Explore → -
Forecasting
Plans you can trust
Demand, stock and cash, tested first.
Explore →
Agentic AI
AI agents: routine work, done before you ask
- Trigger
- Read
- Decide
- Draft
- You approve
How much does it do alone?
Answer. Reads and reports. Changes nothing.
Chatbots
ERPNext chatbots: ask once, get the answer
Gross margin is 31.4%, down 2.1 pts. Two items bought at higher prices explain most of it.
Source: Sales Invoice, Purchase ReceiptEach bot sees only what that person may see.
Forecasting
AI forecasting: plan with numbers, not guesses
- 20–50%Lower forecast errorsAI forecasting in supply chain. McKinsey, via Oracle
- 65%Fewer unavailable productsUp to, from the same source
- ~20%Better forecast accuracyAfter AI was added to ERP. INFORMS
- ~33%Higher inventory turnoverSame INFORMS review
Figures come from other companies and from vendor and secondary sources. A direction, not a promise. We measure accuracy on your own data first.
Business impact
Find problems in days, not at month-end
- Margin
Found at month-end, after the sale is done.
Flagged the day a price or cost moves.
- Receivables
Reminders go out when someone remembers.
Drafts ready every morning for approval.
- Stock
A shortage shows up when a work order stops.
Reorder drafted before cover runs out.
- Planning
Last year's sheet and a guess.
A forecast with a range, tested on your history.
- Month-end
Days of checking entries by hand.
Exceptions listed. You review only those.
In ERPNext
See it inside your ERPNext
Business Health
Sales vs last year
Receivables aging
- 0 to 30 days60%
- 31 to 60 days25%
- Over 60 days15%
Needs attention
| Margin | Down 2.1 pts, mostly on 2 items bought at higher prices | Review |
| Cash | Overdue receivables up 12%. 3 customers past 30 days | Chase |
| Delivery | 1 work order will miss its date. Valve DN50 is the blocker | Open |
Item Margin
| Item | Standard cost | Actual cost | Selling price | Margin |
|---|---|---|---|---|
| FG-101 | ₹410 | ₹412 | ₹560 | |
| FG-204 | ₹690 | ₹732 | ₹715 | |
| FG-311 | ₹1,120 | ₹1,150 | ₹1,540 | |
| FG-420 | ₹260 | ₹266 | ₹365 | |
| FG-508 | ₹830 | ₹851 | ₹1,090 |
Work Order Schedule
Demand Forecast
Next 10 weeks AI forecast
Reorder suggestions
| Steel sheet | Cover 8 weeks, lead time 3 weeks | Create Material Request |
| Valve DN50 | Below reorder level, due Thursday | Create Material Request |
| Gasket 12 | Cover 14 weeks | OK |
Agent Runs
| Agent | Result | Time | Status |
|---|---|---|---|
| Collections | 5 reminder emails drafted | 07:00 | Waiting |
| Reorder | Material Request MR-0231 | 06:00 | Waiting |
| Margin watchdog | FG-204 below target margin | 10:12 | Approved |
| Month-end | Checking 412 entries | 18:00 | Running |
Illustrative screens with sample data.
The assistant inside Frappe
- Ask in plain language
- Agents for routine work
- Same permissions as the user
Flow is in beta and can make mistakes. Read more in the Frappe documentation.
How we start
From first call to a working agent
Pick the two or three jobs worth automating first.
The full delivery method →FAQ
AI for ERPNext: your questions answered
What is agentic AI in ERPNext?
Agentic AI in ERPNext means small AI agents that run on a schedule or when a document changes. An agent reads your ERPNext data, applies your rules and prepares the next step, such as reminder emails for overdue invoices, a Material Request for low stock or an alert for a margin drop. You choose how much it does alone: answer only, draft, act after approval, or run alone on low-risk jobs. Anything that posts to the books should stay behind an approval.
Can I connect Claude to ERPNext?
Yes, on Frappe v16 or later. Frappe has a built-in Model Context Protocol (MCP) server, so an MCP client such as Claude Desktop or Claude Code can connect to your ERPNext site, sign in with OAuth and work with your data through tools. The agent acts as the signed-in user and gets only that user's permissions. We set up OAuth, a limited agent user and an approval step for you.
What is Frappe MCP?
Frappe MCP is the Model Context Protocol server built into Frappe v16 and later, served at /api/v2/mcp over Streamable HTTP. It exposes 13 tools that let an AI agent search DocTypes, read, create, update and delete documents, and call whitelisted methods. It is on by default for new sites and can be switched off in System Settings, AI Agents. Document tools apply read, create, write and delete permissions, including field-level permissions.
What is Frappe Flow and do I need it?
Frappe Flow is the AI assistant and agent framework that comes with Frappe, from v16.60, and it is in beta. Your team asks questions in plain language and builds agents for routine work, always with the permissions of the person asking. You do not need Flow to use AI with ERPNext, because MCP and custom agents are other routes, but it is the quickest way to put AI in your team's hands. We set it up and train your team.
Is it safe to use AI with ERPNext data?
It can be, if it is set up with care. Flow and MCP work with the permissions of the user, so the AI cannot read or change what that user cannot. We keep approvals on for anything that posts to the books, run scheduled agents as a user with only the roles the job needs, keep sensitive files out of Flow knowledge bases because they do not check each user's permissions, and log what the AI does.
Can AI see data a user is not allowed to see?
Not through Flow chat or MCP. Both apply the signed-in user's permissions, including field-level rules, so a Sales User cannot get salary slips just by asking. Two settings need design care: Flow knowledge bases do not check each user's permissions, and Flow triggers run without asking for approval, so they should run as a user with limited roles. We design around both.
Can AI forecast demand, stock and cash flow in ERPNext?
Yes. We build forecasts on your own ERPNext history: sales and demand by item, stock cover and reorder points, and receivables and cash flow. We start with a simple baseline, test it against months the model has not seen, and keep an AI model only where it beats the baseline. The result can feed a Demand Plan, a Material Request or a cash report inside ERPNext.
How accurate is AI forecasting?
It depends on your data: how much history you have, how regular demand is and how clean the masters are. Published studies report forecast errors falling by 20 to 50 percent and fewer stockouts, but those figures come from other companies. We measure accuracy on your data before you rely on it, and we do not promise a number in advance.
Which AI models can we use with ERPNext?
Frappe Flow connects to Anthropic or OpenAI with an API key, and a custom provider can point to any server that speaks the OpenAI API, including Ollama and LM Studio, which lets a model run on your own hardware. MCP clients such as Claude and Codex connect to the same site. We help you choose by data sensitivity, cost and answer quality.
Which ERPNext and Frappe version do I need?
Frappe Flow needs Frappe v16.60 or later, and the built-in MCP server needs Frappe v16 or later. Forecasts, margin checks and business health summaries can often be built on an earlier version through reports and scripts. Tell us your version and we will say what is possible now and what needs an upgrade first.
Can you build a chatbot on my ERPNext data for customers?
Yes. Inside ERPNext, Flow gives your team chat on live data. For customers, we build website and WhatsApp chatbots on the same ERPNext data, for example order status and delivery updates, and they show a customer only their own records. We start with read-only answers and add actions later.
Does Savyant Systems build its own AI apps for ERPNext?
Yes. Savyant HQ is our AI sales app that runs inside ERPNext. Its agents find, verify and score B2B leads, research each company and draft a personal email; a second AI reviews the draft and a person approves every message before it is sent. It works with Google Gemini or Anthropic Claude. The same approach, with agents that draft and people that approve, is how we build AI for your own processes.
How do we start with AI in ERPNext?
We start with a discovery call to pick the two or three jobs worth automating. Then we connect Flow or MCP, the model and user roles, run one use case in draft mode so you review every action, and only then add approvals, monitoring and more agents.
Put AI to work on your ERPNext data
Tell us what you want to see every morning. We will show it on your own data.
We reply within one working day.
