ERPNext
ERPRun generic CRUD, querying, and remote-method calls across every ERPNext (Frappe) DocType, including Customer, Sales Order, Item, Sales Invoice, and any custom DocType.
What This Integration Enables
Agents work across every DocType with one generic operation set. On documents they list, read, and write (List Documents, Get Document, Create Document, Update Document, Delete Document) and drive the submittable lifecycle (Submit Document, Cancel Document) for Sales Orders, Sales Invoices, Purchase Orders, and other submittable types. On queries they count and read single values (Count Documents, Get Value) using Frappe's filter format to drive branching and reporting without pulling whole records. Run Method invokes whitelisted server-side ERPNext methods, so an agent can trigger real business logic a custom instance defines. Because the DocType parameter is free text, the same connector reaches built-in and custom DocTypes alike, which makes it the bridge between ERPNext and every system it needs to stay aligned with.
Without FlowRunner
With FlowRunner
Use Case Scenarios
Order-to-Cash Intake
New orders flow in from a store. For each one the agent runs Count Documents against the Sales Order DocType to confirm it is not a duplicate, then Create Document to record it. When the order is ready to bill, it creates the Sales Invoice and, after review, calls Submit Document to finalize it. The order and its invoice land in ERPNext without a person entering documents by hand, and each finalization is a deliberate step rather than a default.
Invoice Mirror to Accounting
After Submit Document finalizes a Sales Invoice in ERPNext, the agent reads the invoice with Get Document and mirrors it into [QuickBooks Online](/integrations/quickbooks-online) with a Create Invoice call. The two systems stay aligned because the mirror happens on the submit event, not during a month-end reconciliation scramble.
Lead Alerting
The agent runs List Documents against the Lead DocType with a filter for new, unassigned leads. For each match it posts the lead detail to the sales channel in [Slack](/integrations/slack) so a rep can pick it up. Leads that used to sit in ERPNext until someone checked now surface the moment they exist.
Human-in-Loop Highlight
Creating and updating documents is safe to run unattended. Submitting a document is the point where ERPNext commits it, and a submitted Sales Invoice is money on the books, so that is where the agent should stop and ask. Human-in-the-loop is the pattern where the agent pauses on the irreversible step, assembles the context, and resumes on a decision. When a workflow is about to call Submit Document on a Sales Invoice above a configurable amount, the agent presents the customer, the total, and the line items, then routes to finance in [Slack](/integrations/slack): "Sales Invoice SINV-2026-00214 for $61,300 is ready to submit. Submit, edit, or hold?" Finance decides. On approval, the agent submits the document and records the approver and timestamp. Small invoices post automatically; the large ones get a human before they are final.
Agent Capabilities
10 actionsDocuments
7- List Documents Lists documents of a given DocType using Frappe filters.
- Get Document Retrieves a single document by DocType and name.
- Create Document Creates a document of any DocType, built-in or custom.
- Update Document Updates fields on an existing document.
- Delete Document Deletes a document by DocType and name.
- Submit Document Submits a submittable document such as a Sales Order or Sales Invoice.
- Cancel Document Cancels a previously submitted document to reverse it.
Query
2- Count Documents Counts documents of a DocType matching Frappe filters. Used for duplicate checks and branching.
- Get Value Reads a single field value from a document without fetching the whole record.
Advanced
1- Run Method Invokes a whitelisted server-side ERPNext method. Used to trigger custom business logic; can change server state, so it is used with care.
Start building with ERPNext
$100 in credits. No card required. Connect in minutes.