Workflow API (purdy plz?)

The addition of some API endpoints for workflow management would be nice.... including updating a workflow with:

  • create blocks (by supplying the type of block, attributes, input blocks and output blocks by name)
  • updating existing blocks by name
  • create/update function (single-step)
  • publish workflow w description
  • update triggers
  • update Test JSON
  • revert to release version
  • initiate test run.
  • update package.json/requirements.txt
  • update Python/JS Configuration
  • get run history
  • get analytics
  • get outline

While it'd be nice to have those endpoints available in general, and I'm sure the VSCode Extension team would be super interested in this as well, it'd be really interesting to see what people share after adding those endpoints as a tool for an AI Agent to build custom workflows or improve efficiency of existing ones on the go :drooling_face: :innocent:

Notes:

  • when Run JS Code or Run Python Code query/block types are used require a .txt file in the request. do not allow .js files do be uploaded, the .txt can safely be opened and scanned for malicious intent or the text just safely copied to the query/block content.... a .js file could get sneaky unless you intend to read it as binary (full :nerd_face: mode go!)
2 Likes

Hi @bobthebear!

Great suggestions, I can make a feature request for this :fire:

Given that agents should be able to interface with a user's workflows this makes a ton of sense.

I am curious about what VSCode Extension team you are referencing :sweat_smile:

Having agent fine tune workflows for performance and efficiency sounds like a dream come true :metal: seeing how agents handle workflow bugs as it iterates will be very interesting :nerd_face:

Also great tidbit on the .txt files, security is very important to us and that should make things easier for the block builder to parse out python and js code as needed!

1 Like

lol I guess I just assumed Retool - Visual Studio Marketplace this was yall?

Yes that is us!

I wasn't sure what team was maintaining that :sweat_smile:

The requested workflows API would 1000% be helpful for that extension.

1 Like