Description
Feature Request: Programmatically Generate and Validate flowData
JSON Schema for Non-GUI Flow Creation
Describe the feature you'd like
I am interested in a programmatic method to generate and validate the JSON flowData
structure used by Flowise without relying on the GUI. Presently, Flowise requires users to build AI workflows by dragging and dropping controls in the GUI, which are then internally represented in a JSON schema within the flowData
column in the database. However, for advanced usage, it would be beneficial if we could bypass the GUI altogether.
Instead of manually reverse-engineering the structure of this JSON, it would be ideal if there were an official API, SDK, or standardized library to:
- Generate
flowData
JSON: Allow developers to create the JSON configuration for workflows programmatically. - Validate
flowData
JSON: Ensure the generated JSON adheres to the same validation rules as the GUI so we can confirm its correctness before saving it to the database.
This approach would allow developers to dynamically generate flows, perhaps by leveraging LLMs to build prompt chains directly, without relying on a manual, GUI-based approach. Additionally, having this feature would improve flexibility for teams looking to automate or customize workflows in bulk, support CI/CD processes, or integrate Flowise-based workflows into other systems programmatically.
Or maybe this is doable today but I haven't seen where and how to do this. Any help with this would be greatly appreciated!
EJK