Skip to content

[FEAT] Autocomplete/Template in `Trigger Run for workflows in the ui #2847

@StefanBRas

Description

@StefanBRas

Is your feature request related to a problem? Please describe.
When I want to run a workflow from the UI, I need to remember or look up what input it takes.
I'm using the python-sdk where the input is strictly typed with a pydantic model, so the schema is known.

Specifically it's in this view:

Image

Describe the solution you'd like

There's a lot of ways to handle it, either it could

  • be populated with examples values (json-schema also allows examples, maybe it could just use that if set)
  • have the auto complete know about available fields and their types
  • Be a fully typed form with something like https://jsonforms.io/
  • Maybe (optionally) validate it before submitting?

Conforming to the full json-schema spec can sometimes be a hassle, but I think it would be very valuable even if it only supported simple fields and maybe not complex unions and the like until later.

Describe alternatives you've considered
Remembering all inputs and their types.
Create a template and store somewhere locally and paste that in.
Keep having a lot of workflows that fail to start because I forgot the input.

Additional context
Pydantic models has a built-in method to create a json-schema for a model, which could be used directly.

This is mostly a problem when I'm testing or developing on a new flow, because in prod I will not manually run the workflows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions