Skip to main content

Auto-Generated UIs

Windmill automatically generates user interfaces (UIs) for scripts and flows based on their parameters.

Windmill App Editor

You might also be interested by Windmill's App editor, providing a comprehensive solution to customize UIs and interactions for your scripts and flows.

By analyzing the parameters of the main function, Windmill generates an input specification for the script or flow in the JSON Schema format. Windmill then renders the UI for the Script or Flow from that specification.

You don't need to directly interact with the JSON Schema associated with the Script or Flow. It is the result of the analysis of the script parameters of the main function and the optional UI customization.

In the UI customization interface, you can refine information that couldn't be inferred directly from the parameters, such as specifying string enums or restricting lists to numbers. You can also add helpful descriptions to each field.

Customize inputs

Test code

This feature can be directly used in the script & flow editors to test your code.

Build App

You can generate a dedicated app to execute your script or flow.

This is the recommend way to share scripts and flows with operators, with the second option being of sharing the script and variables it depends on (but operators won't be able to load variable directly from the UI/api, only use them within the scripts they have access to).

The apps will be permissioned on behalf of the admin/author, the user is still identified at the time of execution from the Runs and Audit Logs menus.

Script execution Runs menu

View from the Runs menu.

At last, this is an easy way to get an app for your scripts and flows to be customized with Styling and Components.