Skip to content

Edit existing workflows via AI chat #3247

@taylordowns2000

Description

@taylordowns2000

Currently, once a template is chosen via the "Create" button, the user is taken to the canvas and the chat panel disappears. From this point onwards, they're not able to modify their workflow using the AI chat.

But... the AI chat already takes the current workflow.yaml and the chat history... in other words, it's set up to edit workflows already and we should extend this functionality to the canvas.

But here's the catch: Right now, the workflow chat agent does not return job code. This is probably a good thing, as we don't want a high level workflow agent to mess with a user's existing job code until we have a nice code suggestion interface (coming next, like cursor) that allows the user to view each change and accept/reject it in the inspector.

So... for this issue, we'd want:

  • the chat panel to stay available (but be collapsible) on the left side of the canvas
  • the workflow chat to be able to modify YAML but not modify job code.
  • to make sure that for existing jobs it preserves job code.
  • to make sure that if you went back to a previous message in the chat you could still view the workflow as it looked at that point in time. (Without saving.) maybe related to Workflow Diagram: add undo/redo #2177

Note that deleting a step entirely will result in deleting job code, but that's OK as we'll have the previous version of the job code in the chat and/or in the snapshot history and/or in GitHub.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions