Skip to Content
SWARMIXDocs
Workflows

Turn a chat into a workflow

Export a chat that went well as a first draft workflow, then finish it in the editor.

Who can do this:Org admin

When a chat with an agent did exactly what you needed, you can turn it into a workflow so others can run the same steps. Studio reads the chat and builds a first draft from it. You then finish the draft in the editor.

Before you start

You need the organization admin role, and Programs & Workflows installed. The chat has at least one request that the agent worked on.

Export the chat

  1. Open the chat.
  2. Open the + menu and click Export chat to workflow.

Studio opens the draft in its own Workflows tab. It works the same way in a chat with a crew: each task the lead gave a member becomes a step for that member's role.

What the draft contains

Studio builds the draft by fixed rules, without an AI model:

  • Each of your messages starts a new part of the workflow, and becomes the instruction of its steps.
  • The tools the agent used for one message become one Task step, with those tools as suggested tools.
  • A question the agent asked you becomes an Ask the user step, with its options as the form.
  • Tool calls that failed and calls you denied are left out.

Each step shows what it was in the chat, under "Recorded as". That note helps you check the draft and isn't saved with the workflow.

Finish and save the draft

  1. Click Values from the chat. It lists the values that may change next time, such as file names, paths, links and search words.
  2. Make the ones that change into parameters. The others stay as they are.
  3. Read each step and adjust its instructions.
  4. Click Check, then Save draft.

See Build a workflow for the editor. Save the draft before you close the tab: an unsaved draft from a chat is gone, and you export the chat again.

FAQ

On this page