3.12. Workflows
Workflows are a beta feature. They work only for organizations with beta access.
Your assistant can find and read workflows, start runs, follow them, and pause, resume or cancel them. Workflows themselves are built and edited in the Plansom app.
Finding and Reading Workflows
Your assistant lists the workflows you can see: draft and active ones by default, or archived ones if you ask. For one workflow, it explains what it is for, who owns it, and each step in order: what the step does and who it involves.
The first step of every workflow is an agent that starts each run by creating the run's goal under the workflow's goal. If it finds several new items, it creates a goal for each, and each extra goal starts its own run from step 2. If it finds nothing, the run ends with nothing to do, which isn't a failure. Later steps work on the run's goal unless they name a fixed goal.
Task titles and agent instructions can hold placeholders, such as the workflow name, run number, start time and the run's goal name, which are filled in when the step runs.
Try asking:
- "What workflows do we have?"
- "What does the onboarding workflow do?"
- "Who gets the tasks in the proposal workflow?"
Tools: plansom_workflows, plansom_workflow
Running a Workflow
Your assistant starts one run of an active workflow, acting for you. You can pass details for the run, up to 2,000 characters, which the first step's agent receives with its instructions.
Before the run starts, Plansom checks the workflow. If something would stop it, for example it isn't active, a person it names has left the organization or a goal it uses was deleted, nothing starts and your assistant tells you what to fix in the app.
Anyone the workflow is shared with can run it, including people with view access.
Try asking:
- "Run the onboarding workflow"
- "Run the sales workflow for Acme, contact jane@acme.com"
Tool: plansom_workflow_run
Following a Run
Your assistant shows how a run is going: its goal, its status, each step's status and what it created (a task or an agent's work), and up to the latest 50 events in its timeline. Point at a run by its number, for example "onboarding run #3", or leave it out for the latest run. Once its first step has created a goal, a run is named "workflow #number (goal)". A run waits at a task step until the task is done, and at an agent step until the agent's work is approved or finishes.
It can also list the runs waiting on you: agent results you need to review, or questions you need to answer. Review those as you would any agent's work. See Checking and Approving an Agent's Work.
Try asking:
- "How is the onboarding run going?"
- "Who is the legal step waiting on?"
- "Which workflow runs are waiting for me?"
Tools: plansom_workflow_run_status, plansom_workflow_runs_awaiting_me
Pausing, Resuming or Cancelling a Run
- Pause: no new step starts until you resume. Work already started carries on
- Resume: the run continues from where it stopped
- Cancel: the run ends for good and its unfinished steps are cancelled. Tasks it already created stay. This can't be undone
The workflow's owner and editors can control any of its runs. A viewer can control the runs that act for them.
Try asking:
- "Pause the onboarding run"
- "Carry on with it"
- "Stop that run"
Tool: plansom_workflow_control