Workflows
Create and test a Workflow, then build an enrollment Workflow with ordered Tasks. Read the transcript
Start with brief goals, configure field behavior and Paths, and provide background through authorized Files or Folders. Then organize an enrollment process with ordered Tasks. This lesson uses a synthetic clinic example; adapt the goals and Data Types to your own approved process.
Before You Begin
- Have permission to create Workflows and a business facts File you are allowed to use.
- For the multi-step example, identify the Data Type, consent field, and calendar appointment types your process needs.
Create and Test the First Workflow
- Open Workflows and create a Workflow with a clear name and a brief goal, such as “Answer questions about the clinic.” The First Task field names its first Task; left blank it is Start.
- In Abilities, add File Access and select the business facts File. Give the Workflow only the File access it needs.
- In the editor header, select New chat, choose Persona, pick a test persona, and select Start chat. Ask a question answered by the File. Compare the response with the source facts.
- Publish a Revision after the answer is correct. Continue editing the draft when you want to make changes; the published Revision stays active until you publish another.
Build an Enrollment Workflow
- Create a separate Workflow. Rename its Start Task to Enrollment and briefly state its goal: “Collect the patient’s information.”
- For individual fields on an existing enrollment record, select the Data Type fields in Collect below the Task prompt. Use Context to provide existing values without changing them. Keep Form Access when the Task must search records, append values, or create a record whose required fields the Task's Ask fields do not all cover.
- Add an Insurance Task after Enrollment. On the Path, set Available to When a condition matches and add the condition Contact consent is true. Set Choose to Automatically when available. Configure Collect or Form Access for the insurance fields under the same record rules. See Using CEL Expressions for condition placement and worked examples, and the Developer CEL reference for context-specific variables and functions.
- Add a consultation Task after Insurance. Briefly state its goal, such as “Book an initial consultation.” Add Calendar Booking for each calendar and appointment type the Task may offer.
- Test both paths: missing or false consent should keep the Workflow at Enrollment; consent should allow progression. Confirm collected details and a test booking before publishing.
- If routing member phone calls, set the Members rule on the phone line to this Workflow. Set the Workflow's outbound default separately if it should choose which number outgoing calls use.
What You Should See
The first Workflow answers from its prompt and permitted File. The enrollment Workflow has ordered Tasks, a consent-gated connection, task-specific abilities, and a tested booking path. Publish only after reviewing both paths.
Prompts, Tasks, and Abilities
A simple Workflow can answer from its prompt without Tasks. For a structured process, use Tasks with their own instructions and abilities, connect them, and select the starting Task. Convert to multi-step workflow adds Tasks to an existing simple Workflow.
Keep each Chat Task prompt to a brief high-level goal, such as “Collect the patient’s information.” Use Context and Collect to define field behavior. Use Path Choose when and CEL conditions to define routing. Put background facts and reference material in authorized Files or Folders. Add prompt instructions only when they are strictly necessary and those controls cannot express them. An exhaustive procedure does not belong in the Task prompt.
Add an ability to the Workflow when every Task needs it, or to one Task when its use belongs only at that step. For example, give Calendar Booking to the booking Task. A Chat Task's Context fields provide existing values without changing them. Collect lets the Assistant ask for or verify individual values, or lets the platform infer them from the Chat. Use Form Access for broader record operations. See Abilities for each ability's configuration and Data Types for record ownership and fields.
Context and Collect
The field editor has four groups: Context, Ask, Infer and Verify. Context is a row of pills for everything the Assistant can read in this Task: Data Type fields, fields you define on the Task, and reference files and folders. Select Add to add a field or a file, and the × on a pill to remove it. Context puts existing values in the Assistant's prompt as data without changing them. Context pills have no Required setting. Saving a Task clears any old Required setting on a field used only as Context. Ask, Infer and Verify hold the values the Task fills, grouped by how each value arrives. Select Collect a field to add one: choose Ask, Infer or Verify, then a Data Type field or a new field with a name and a type. Use the ⋯ menu on a row to move it to another group, to open a Task field's settings (where its type changes), or to remove it. An Ask field that is also in Context stays there as a pill; removing an Infer field removes it from Context too. A Verify field is never in Context. A field the Assistant asks for can be in both Context and Ask at once. For larger Context values, the Assistant uses a field getter when it needs the value. A missing record remains different from a stored null value, so a blank answer clears an existing optional value but never satisfies a Verify condition. A Verify field's value stays out of the prompt. Mark a field Required to keep the Agent at that Task until the answer is available. Each field is in the Ask, Infer or Verify group:
- Ask: the Assistant asks the person for the value and saves the answer.
- Infer: the Assistant does not ask. The platform picks the value up from the conversation when the person says it, and does not replace a value that is already saved. Infer works in text Chats, not in phone or web voice calls. It works on Task fields and on Data Type fields that hold one value: text, numbers, dates and times, yes/no, options, email, phone and ZIP. It does not work on computed, reference, list, object or admin-only fields. Keep the field’s pill in Context when the Agent needs the extracted value to respond. Remove the pill when the value is only for storage or Path routing.
- Verify: the Assistant checks what the person says against the stored Data Type value without revealing it. Verify works on Data Type fields except computed and reference fields.
A field that is both Required and Infer keeps the Task open until the conversation gives the value.
Verification compares a supplied answer with a stored Data Type field without
revealing the stored value. Select its boolean variable in the Path condition
picker to require a successful match, such as task.fields.code.verified. A Verify
row has no Required toggle; the Path condition is the gate.
The status belongs to the current Task visit. A changed reference, configuration,
or permission can make the previous check unavailable. Verification does not
authenticate a Member's identity.
Data Type fields use an Assignment-linked record, a Member Fields Data Type or a Workspace Fields Data Type. Tables need an Assignment-linked record. Selecting a field preserves the Data Type and record access rules. The Health panel can suggest Form Access fields to review; review the record and creation behavior before removing that Ability.
Chat, Say, Decision, and Act Tasks
Select the circular + beside a Task, drag its final connection dot onto empty canvas, or insert a Task on a connection. The editor asks which type of Task to add:
- Chat is a step the Agent handles with its own instructions and abilities. Choose it, type a name, and press Enter.
- Say speaks a fixed script that you write. Choose whether to wait for the Member to reply or continue immediately. Choose it, write what the Agent says, and select Save. You can add the script in other languages in the same dialog. Cancel adds nothing.
- Act runs a list of actions in order, then continues to its next Task. No Agent turn runs and the Workflow does not wait for the Member; a message action still sends its message. Choose it and the Task is added, named Act. Select Add action on the card to add the first action. Select an action on the card to edit it, or the gear to edit the list.
- Decision selects a branch automatically. Choose it and the Task is added, named Decision. Match a readable field from a completed earlier Task, or write ordered CEL conditions. Connect each value or condition to its next Task and use Otherwise for a valid result that has no match. Missing data and expression errors pause the Decision. Configure its source before publishing.
Connect Otherwise for every Decision and connect each configured condition before publishing. Drafts can keep incomplete connections while you edit. If a Decision pauses, correct the unavailable source data or condition expression, then select the Task again to retry it. A completed earlier Task supplies its saved answer; editing a record does not replace that saved answer.
A Decision's connections route by its result, so do not set them to advance automatically or add a condition to them. The Health panel shows that as an error, and a Decision with that error does not run. A Workflow Evaluation run whose first Task cannot start stops with a configuration failure; fix the error the Health panel shows, then start a new run.
Each child Path has its own output port. The ports follow Path order. Drag the final connection dot to an existing Task to connect it, including an earlier Task. Dropping the final connection dot on empty canvas opens the Task creator and connects the new Task to the source Task.
If an action fails, the failure shows in the action's run history and the next action still runs. An Act Task cannot use Switch Task; it always continues along its path. If an action cannot finish at all, the Workflow stays on the Act Task. When it retries, it continues from that action; the actions that already finished do not run again.
A Say or Act Task has at most one outgoing path. It can stop without a connection. To send it somewhere else, remove its current connection first.
In a Say Task's script editor, After speaking offers Wait for a reply or Continue immediately. Waiting keeps the Workflow on Say until the Member replies, then runs the following Tasks. Immediate mode runs the following Tasks and continues the assistant response right away. An empty script passes through silently.
For a Chat Path, set Choose to Agent decides and describe the intent in Choose when. For example, on Chat → Say → Read a book, describe the reading choice on the Chat → Say connection. The name “Say” does not tell the Agent which choice to take. Under Available, choose Always or When a condition matches. A condition permits the Path only while true. Select Automatically when available to advance as soon as that condition matches; Selection priority sets the order and the first matching Path wins. The yellow warning marks a Path with no routing criteria.
You can copy Assistant settings from an Agent or another Workflow revision when creating a Workflow. This is a starting copy; later changes to the source do not update this Workflow.
Who Can Start a Workflow
Workspace Members can start a Workflow unless it has a Member Role Gate.
To restrict entry, add that ability to the Workflow, select the admitted roles,
and choose the message shown to Members outside those roles. The gate applies
when an Assignment starts, including entry through a Chat, phone, SMS, Site,
Journey, or API. Workflow owners, Members with workflows:admin, and Members
with an applicable explicit access grant retain their access.
You must be allowed to use the Inbox, Calendar or Data Type when configuring the Workflow. Members running it do not need separate grants to those resources. Records still follow ownership and access rules.
The gate belongs to the Workflow revision. Test both an admitted Member and a Member outside the selected roles before publishing that revision.
Active Revisions
New Chats started from the Chats page and Assignments use the active revision. Once started, they stay on that revision even if you activate another one. A New Chat started from the Workflow editor runs the revision the page is showing — the draft while you are editing — so you can test an unpublished change.
Before the first publish, the draft is live: the editor shows a short note saying so. Saved edits affect new Chats immediately. Keep new Workflows disconnected from live channels while building and testing them. Publishing freezes a numbered revision, makes it active, and gives you a fresh draft for further edits.
After publishing, edits stay in the draft until you publish another revision. Activating the draft from revision history makes edits live again; the confirmation warns you before this change.
Publishing a Revision
- Review the draft's prompts, Tasks, abilities, Data Types, connections, and channel settings.
- Test the expected outcome and any fallback or consent-gated paths.
- Choose Publish, add a label and notes describing the change, and confirm.
Publishing activates the new revision for new work. Existing Chats and Assignments continue using their starting revision. The API also supports publishing without activation; see the Workflows API.
Viewing and Comparing Revisions
Open revision history to inspect a published revision or compare two revisions. Published content is read-only; you can edit its label and notes without changing the frozen Workflow.
Choose Make active on a published revision to roll back or switch what new Chats use. This does not publish your draft. Read evaluation results alongside the revision they tested.
Discarding Draft Changes
Choose Discard draft changes to reset the draft to the active revision. In the confirmation:
- Publish draft first preserves the edits as a numbered revision without activating it, then resets the draft.
- Discard draft changes permanently deletes the unpublished edits, including sticky notes and canvas layout. Published revisions remain available.
Discarding is unavailable when the draft has no changes or is itself live. If existing Assignments still use the draft, publish it before starting a new draft.
Agent Behavior
Under Assistant → Agent behavior, choose how the assistant talks. These are tested settings, so you do not need to write them into prompts.
- Response length: Brief (one sentence when that answers the question), Short (very concise; the default, and how Agents replied before this setting) or Detailed (as much detail as the question needs). The platform words each choice for text, voice and SMS.
- One question at a time: the assistant asks for one thing per turn and waits for the answer. It is on for a new Workflow and off for a Workflow that existed before this setting, so existing Workflows keep asking as they did. It does not apply to email, where one question per message makes an intake slow. Turn it off when the person should see everything you need at once.
- Provide STOP instructions on SMS: on by default, for every Workflow. On SMS and WhatsApp, when someone asks in their own words to stop getting texts, to be taken off a list, or says it is the wrong number, the assistant replies in one short message that tells them to reply STOP. It never says their texts have already stopped, and it does not argue. Replying STOP unsubscribes them. Other channels are not affected.
- AI disclosure: When asked (the default) or At the start. With either choice, the assistant never claims to be a human, and it says plainly that it is an AI assistant whenever someone asks. At the start also makes sure the person knows early: if no earlier message said so, the assistant says it in its next reply.
After you choose a setting, delete prompt lines that say the same thing, such as "keep replies short", "ask one question at a time", "if they ask to stop, tell them to reply STOP" or "if asked, say you are an AI". A prompt line that disagrees with a setting makes the assistant pick one of them.
Configuring Channels
A new Workflow can take phone calls and web voice: it starts with a voice model selected. Change the model, or choose Off — no phone calls or web voice, under Assistant → Voice. The gear beside the model holds the voice options, including whether outbound calls wait for a voicemail greeting to finish (Voicemail detection). See Voice.
Set the Workflow's outbound phone number and email Inbox in its settings. Configure inbound routing on the phone line or Email Inbox separately. A Workflow's outbound default does not decide which Workflow an incoming call uses.
For a visitor-facing experience, connect the Workflow to a Site. Review its Member Role Gate and connected resources before enabling live access.
Tracking Progress (Assignments)
An Assignment records a Member's progress through a Workflow: its current Task, starting revision, and outcome. Open the Workflow's Assignments view to find the Member's progress and associated Chat.
To inspect response ratings or feedback volunteered during a Chat, use Collect Workflow Feedback. That guide owns the rating, User Feedback ability, and review steps.
Cloning Workflows
- In the Workflows list, open the Workflow's menu and choose Clone.
- Name the new Workflow and create it.
- Review its Tasks, connections, abilities, scenarios, channel settings, and access before publishing.
The clone includes active scenarios and their active grading criteria. Archived scenarios, archived criteria, and previous test runs are not copied. Scenarios are independent copies, while shared Workspace personas remain shared.
Phone numbers, Inboxes, and app-connection credentials belong to the Workspace. Verify the clone's connected resources rather than assuming it is ready for live use. When rebuilding in another Workspace, use the new Workflow's UUID; a Workflow UUID from the source Workspace will not identify the new one.
Troubleshooting
Changes Are Missing from a Chat
Check whether the Chat started before the new revision became active. Existing Chats keep their starting revision. For new Chats, compare the active revision with the draft and publish the reviewed changes.
A Task Does Not Advance
Review its completion goal and outgoing connection conditions. Confirm the Task has the abilities it needs and that record ownership and scope allow the operation. Test a matching path and a nonmatching path before publishing.
A Workflow Cannot Be Found
Confirm the Workflow belongs to the same Workspace as the Chat or request. Check the active revision and the acting Member's access. A copied UUID from another Workspace cannot be used here.
Related
- Workflow Evaluations — test behavior before a release.
- Automating Actions — respond to Workflow and Task events.
- Chats — inspect the resulting conversation.
- Tasks API — manage Tasks programmatically.