Automate Workflow Across ERPNext with AI
An agent that moves ERPNext documents through their workflow states from the apps approvers already use: it posts pending Purchase Orders to Slack, applies the approval, and emails suppliers the PDF.
PUR-ORD-2026-00412 approved in Slack by Tomasz at 11:06. Sent to the supplier:
How do I automate ERPNext approval workflows across Slack and email?
Keep the workflow in ERPNext and let an agent carry it between apps.
- 01
Trigger fires
When a Purchase Order or Material Request reaches a state like Pending Approval, the agent reads the document, checks which user holds the approving role, and posts the items, quantities, rates and warehouse to that person in Slack.
- 02
Read the document and find who holds the approver role
A reply of approve or reject becomes the matching workflow action in ERPNext, applied through the API so role permissions still hold.
- 03
Post items, rates and warehouse to the Slack channel
After approval it downloads the PDF in your print format and emails it to the supplier.
- 04
Apply the approve or reject action in ERPNext
Documents dated into a closed fiscal year, or in a currency with no exchange rate for the day, stop for a person.
- 05
You approve
Anything under your confidence bar waits for a human.
How you tell it what to do
Built in plain English.
You write the rule the way you'd describe it to a teammate. The agent reads the rule, breaks it into the actions it'll take, and confirms the apps it'll touch — before it does anything.
- 1Read the document and find who holds the approver role
- 2Post items, rates and warehouse to the Slack channel
- 3Apply the approve or reject action in ERPNext
- 4Email the supplier the PDF in your print format
How it connects
Connect ERPNext. The agent does the rest.
Claude and ChatGPT are already running on our side. You connect ERPNext with one click, and workflow automation runs inside it.
Claude and ChatGPT run on our keys. Nothing for you to configure.
- ERPNextConnect
- SlackConnect
- GmailConnect
Runs on your data, in your apps.
Nothing to deploy. Nothing to maintain.
Actions
What ERPNext + DeskFerry can do
Real ERPNext actions your AI agent can perform automatically — no manual work required.
Add Comment
Tool to add a comment to a document in ERPNext/Frappe. Use when you need to add comments or notes to any document type like ToDo, Issue, Task, or custom DocTypes.
Add Tag
Tool to add a tag to a document in ERPNext. Use when you need to categorize or label documents for organization and filtering purposes.
Apply Workflow
Tool to apply a workflow action to a document in ERPNext/Frappe. Use when you need to transition a document through workflow states (e.g., approve, reject, submit). The document must have a workflow configured for its doctype.
Cancel Document
Cancel a submitted document in ERPNext/Frappe to change its status from Submitted to Cancelled. Use for submittable DocTypes when you need to reverse or cancel a submitted transaction. Document must be in Submitted state (docstatus=1) before cancellation.
Create Document
Tool to create a new document of a specific DocType in ERPNext. Use when you need to create records like ToDo, Customer, Lead, Sales Invoice, etc. The document data should include all required fields for the specific DocType. Standard fields like creation, modified, and owner are automatically set by ERPNext.
Create Timesheet
Tool to create a new Timesheet record in ERPNext. Use when you need to log time entries for employees or projects.
Create Webhook
Tool to create a new webhook configuration in ERPNext. Use when you need to set up automated callbacks for DocType events like creation, updates, or submissions.
Delete Document
Tool to delete a document using the Frappe client API. Use when you need to remove a specific document by its doctype and name.
Delete Document
Tool to delete a specific document by DocType and name. Use when you need to remove a document from ERPNext. Requires delete permissions for the specified DocType.
Download file from ERPNext
Tool to download a file from ERPNext by its URL. Use when you need to retrieve file content from the ERPNext instance using the file's URL path.
No active user holds the Purchase Manager role since Ines left, so nobody can apply Approve.
Transaction date is Mar 28, inside fiscal year 2025-2026, which has been closed. Needs a new date first.
Supplier bills in NOK and there is no NOK to GBP rate for today, so the total can't be checked.
Human in the loop
Approve before it sends.
Every draft lands in a review queue. You approve, edit, or reject — the agent never acts on its own unless you explicitly turn that on for a workflow you trust.
Governance
Every action, with the reasoning attached.
Each step the agent takes is logged with what it did, why it did it, and which app it touched. Audit-ready, so security and compliance can sign off without backfilling.
- Agent11:09 AM
Emailed the PUR-ORD-2026-00412 PDF (Standard print format, with letterhead) to orders@lindqvist-steel.se.
- Tomasz11:06 AM
Replied approve in #purchasing; Approve applied to PUR-ORD-2026-00412.
- Agent10:58 AM
Held PUR-ORD-2026-00405 instead of posting it for approval.
Reason: There is no NOK to GBP exchange rate for today, so the approver would see a total the agent can't verify.
- Agent10:52 AM
Posted PUR-ORD-2026-00412 to #purchasing and tagged Tomasz as the Purchase Manager.
- Agent10:51 AM
Read PUR-ORD-2026-00412: 1 item, SEK 48,600, workflow state Pending Approval.
How it works
Get started in three steps
Step 01
Connect ERPNext, Slack and the purchasing mailbox
Use an API key for an ERPNext user whose roles match the job. The agent can only apply workflow actions that user is allowed to apply.
Step 02
Describe the route
Name the DocTypes and states to watch, the Slack channel for each, the print format to send, and which suppliers want a copy at a second address.
Step 03
Clear the stuck documents
Documents with no approver, outside an open fiscal year or missing an exchange rate wait in the queue, linked, with the reason stated.
Start automating Workflow Automation for ERPNext
7-day free trial. Works with the tools you already use.
FAQ
Frequently asked questions
Do I need a Workflow set up in ERPNext first?
For the approval step, yes. The agent applies transitions that already exist in the Workflow for that DocType, such as Approve or Reject, so states, allowed roles and conditions stay under your administrator's control. For DocTypes without a workflow it can still read, comment, tag and create documents, but it won't invent an approval path.
Can approvers act from Slack without logging in to ERPNext?
They reply in the Slack thread and the agent applies the action in ERPNext under its own API user, then adds a comment on the document naming who approved. If you need each approval recorded under the approver's own ERPNext user, keep the final click in ERPNext and use Slack only for the reminder.
Which other apps can an ERPNext workflow reach?
Any app the agent is connected to. Common routes are Slack or Microsoft Teams for approvals, Gmail or Outlook for supplier emails, Google Sheets for a daily list of open documents, and a helpdesk where an ERPNext Issue should open a ticket. No webhook code is needed, though the agent can create an ERPNext Webhook if you prefer push over polling.
What if someone edits the Purchase Order after approval was requested?
Before applying the action, the agent re-reads the document and compares it with what it posted to Slack. If quantities, rates or the supplier changed in between, it does not apply the approval. It posts the difference in the thread and asks again, so nobody approves a version they didn't see.
Can it cancel or amend submitted documents?
It can cancel a submitted document if the rule allows it and the API user has the permission, but by default cancellations go to the review queue. Cancelling a Purchase Order that already has a Purchase Receipt against it touches stock, so most teams keep that decision with a person.
Explore more
