Flow Editor

Overview

The Flow Editor serves as the main entry point to building and visualizing your assistant. An assistant's flow defines its behavior while it executes. A Flow is a graph of interconnected Behaviors and Actions that execute against the assistant's Context.

Preparing to add a Prompt AI Behavior to the flow with no other panels open

Preparing to add a Prompt AI Behavior to the flow with no other panels open

Behaviors

Behaviors (sometimes called nodes) represent major steps in your assistant's flow execution and are rendered in the top-level flow graph. Double-clicking a behavior results in its configuration flyout appearing from the left:

Configuring a Search Behavior

Configuring a Search Behavior

Common Behaviors

The following behavior types are common across all types of assistants and represent the fundamental building blocks of AI automation:

BehaviorDescription
Execute LogicAuthor visual rules & logic and control the flow execution
SearchSearch AI resources
Prompt AIPrompt AI based on the context and translate the LLM completion into actions
Call APICall an API to retrieve or modify data in external systems
Call FunctionCall a function to derive actions from the context

See the full documentation of core behavior types

Customer Assistant Behaviors

Customer Assistants have additional behaviors:

BehaviorDescription
AssignedSpecial behavior that executes when a conversation is first assigned to the assistant
Send MessageSend a message to the customer and optionally wait for a response
Set TimerSet a timer that will fire if no customer response is received
RouteRoute the conversation to another assistant or a live agent queue
CloseClose the conversation

See the full documentation

Actions

Behaviors execute Actions. Actions are therefore lower-level and not visible in the top-level flow graph. They are, however, very important to the assistant's execution as they are used to move between behaviors and trigger important side effects like setting fields and sending messages.

The Flow Editor is used to visually configure actions, but some actions can also be generated programmatically by Functions and API Calls.

Preparing to add another action in an Execute Logic behavior

Preparing to add another action in an Execute Logic behavior

Common Actions

The following actions are used to build any type of assistant:

Core ActionDescription
Change LocationChange location to another behavior in the flow
Set a FieldSet a field to a value
Unset a FieldUnset a field
Add to a FieldIncrement a counter
Set a BufferStore state in an opaque buffer

Change Location is particularly important because it controls the flow. Change location actions are visualized as edges in the flow graph. See the full reference for more information on core actions.

Customer Assistant Actions

Customer assistants utilize additional actions to interact directly with customers. Here are some of the most important customer assistant actions:

Customer Assistant ActionDescription
Send a MessageSend a message including full rich-messaging support
Set a Catalog MessageSend a message from the Message Catalog
Start Typing IndicatorDisplay a typing indicator to customers on supported platforms

See the full reference for more information.

Context

An assistant's Context is a less visible but nonetheless critical aspect of flow execution. The context contains all the data (i.e. state) that the assistant executes against. Behaviors and actions modify the context as they execute.

Any decisions or actions configured in the Flow Editor are evaluated against the context. Similarly, the context is a primary input to functions in the Function Editor, such as prompt building functions that translate the context into prompts to send to an LLM.

The shape of the context varies based on the type of Assistant. But all assistant contexts include the following data:

  • Search results - Accumulated by Search behaviors during the current flow execution
  • API results - Accumulated by Call API beaviors during the current flow execution
  • Session field state - The state of session fields that can be checked and set by visual and programmatic actions
  • Buffer state - Opaque buffer state used by Functions

Additionally, the context will also include the primary data model that the assistant operates against. In the case of customer assistants this includes the full conversation record.

More information:

Customer Assistant Context Overview
CustomerAssistantContext Reference Documentation