Integration · ERP
AI agents for ERPNext
Find and read any ERPNext or Frappe record (customers, items, stock, sales orders, invoices, quotations), create and update records, submit documents and call whitelisted methods, on Frappe Cloud or your own server.
- Actions
- 15
- Read
- 8
- Write
- 7
Actions
What your agents can do in ERPNext
15 actions. Each one is a tool your agents can call and a step your workflows can run.
Read 8
Look things up. Nothing changes.
Find records
Lists records of any DocType (Customer, Item, Sales Order, Sales Invoice, Quotation, Purchase Order, Supplier, Lead, Contact, Address, Bin, Stock Ledger Entry, Task …) with filters like [["status"…
Count records
Counts the records of a DocType that match filters, like open sales orders ([["status", "=", "To Deliver and Bill"]]) or unpaid invoices ([["outstanding_amount", ">", 0], ["docstatus", "=", 1]]).
Read a record
Reads one record of a DocType by its name (ID), like Sales Order SAL-ORD-2026-00012 or Customer "Acme Ltd", with every field and its child tables (a sales order's items, taxes, payment_schedule).
Find customers
Finds customers whose name or ID contains a text, optionally in a customer group or territory, leaving out disabled ones unless asked.
Find items
Finds items whose code or name contains a text, optionally in an item group, leaving out disabled ones.
Check stock levels
Reads stock per item and warehouse (ERPNext's Bin) for an item, a warehouse, or both, optionally only where stock is on hand.
Find sales orders
Lists sales orders, newest first, for a customer, a status (Draft, On Hold, To Deliver and Bill, To Bill, To Deliver, Completed, Cancelled, Closed) or an order-date range.
Find sales invoices
Lists sales invoices, newest first, for a customer, a status.
Write 7
Create, change or send.
Create a record
Creates a record of any DocType from its field values, with child rows as lists, like a Lead {"lead_name": "Jane Doe", "email_id": "jane@example.com"} or a ToDo {"description": "Call back"}.
Update a record
Writes field values to one record by its DocType and name; only the fields given change, like {"status": "Replied"} on a Lead or {"delivery_date": "2026-11-02"} on a draft sales order.
Submit a document
Submits a draft document that can be submitted (Sales Order, Sales Invoice, Quotation, Purchase Order, Delivery Note, Stock Entry, Payment Entry …) by setting its docstatus to 1.
Call a server method
Calls a whitelisted Python method by its dotted path with arguments by name, as a POST, which can change data.
Create a customer
Creates a customer with a name, type (Company or Individual) and optionally a customer group, territory, default currency and tax ID.
Create a sales order
Creates a draft sales order for a customer with item lines (item code, quantity, and a rate only to override the price list) and a delivery date.
Create a quotation
Creates a draft quotation for a customer (or a lead) with item lines (item code, quantity, and a rate only to override the price list) and how long it is valid.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Enter the API credentials from your ERPNext account.
What you enter
- API key
- API secret
Settings
- ERPNext address
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your ERPNext data
Ask a question in plain words. The agent can find records, count records or read a record in ERPNext, then answers with what it found.
- 02
Let an agent update ERPNext
Have the agent create a record or update a record in ERPNext as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent ERPNext and Slack: it can find records in ERPNext and post a summary to a Slack channel in the same run.
FAQ
ERPNext and MyDeepAgents
Can MyDeepAgents connect to ERPNext?
Yes. The ERPNext connector has 15 actions: 8 read and 7 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect ERPNext?
Enter the API credentials from your ERPNext account. You'll need: API key and API secret. The connection also asks for: ERPNext address. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in ERPNext without asking?
Only if you let it. Each of the 7 actions that change data can be set to wait for a person's approval before it runs.
Can I use ERPNext in workflows as well as agents?
Yes. Every ERPNext action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put ERPNext to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.