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
Notes:
- when
Run JS Code
orRun 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 (fullmode go!)