frappe-workflow-generator

Generate Frappe workflow JSON definitions for document approvals and state transitions.

25|14|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-workflow-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frappe-workflow-generator
Source: https://github.com/Venkateshvenki404224/frappe-apps-manager/tree/main/frappe-apps-manager/skills/frappe-workflow-generator
Command: npx skills add https://github.com/Venkateshvenki404224/frappe-apps-manager --skill frappe-workflow-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill eliminates the tedious manual setup of complex approval processes and state transitions in Frappe, which can be time-consuming and prone to errors. It automates the generation of robust workflow definitions.

Core Features & Use Cases

  • Workflow JSON Generation: Create complete Frappe Workflow JSON structures for various approval and state management needs.
  • Conditional Transitions: Implement logic for state changes based on document data, such as amount-based routing for approvals.
  • Use Case: Automatically generate a multi-level approval workflow for Sales Invoices, where invoices exceeding a specific amount require manager approval before submission.

Quick Start

Generate a Frappe workflow for Sales Orders that requires approval from a 'Sales Manager' role before submission.

Frequently Asked Questions about frappe-workflow-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate approval workflows in Frappe without manual configuration?

Frappe workflow automation generates production-ready JSON workflow definitions that eliminate manual setup of approval processes. It creates complete state management structures with transitions, role-based routing, and conditional logic for multi-step approvals, reducing configuration errors and deployment time.

Can I set up amount-based conditional routing for document approvals in Frappe?

Yes, conditional transitions enable state changes based on document data—such as routing invoices exceeding a threshold to manager approval. The workflow generator implements JSON-based rules that evaluate document fields and dynamically determine approval paths without hardcoding logic.

What's the best way to create multi-level approval workflows for ERPNext documents?

Generate workflows programmatically using JSON definitions that capture states, transitions, doc_status updates, and role-based access. This approach scales approval chains across document types like Sales Orders and Invoices while maintaining consistency and enabling rapid iteration.

Does Frappe workflow generation support role-based access control in approvals?

Yes, generated workflows implement role-based access and conditional transitions, restricting approval actions to specified roles. The JSON structure embeds permission logic directly into state transitions, ensuring only authorized users can move documents between states.

How do I handle state transitions and document lifecycle events in Frappe workflows?

Workflow JSON definitions capture complete lifecycle sequences by defining states, transitions between them, doc_status values, and update_field operations. This structure manages document progression through approval stages while triggering field updates and lifecycle events automatically.