Set up your first workflow
Turn repetitive tasks into automated workflows powered by your AI agent.
What do you want your first AI agent to do?
Create the workflow
-
In the sidebar, select AI agents, then the Workflows tab.

-
Select New workflow.

-
Keep Workflow type as Message received.
-
In Name, enter File a complaint.
-
In Description, enter If a person asks to file a complaint. Your AI agent uses the description to know when to start the workflow.
-
Select Create. Your new workflow opens, with a side panel for training phrases.

-
Close the side panel. You don’t need training phrases for this workflow.

Send a message
-
Select Add action. The Actions panel opens.

-
Select Send message.

-
In Messages, enter I see you are trying to file a complaint, we will need the following information from you.
-
Select Save, at the bottom of the panel.

Important: always select Save before you close a panel. If you close it without saving, your changes are lost.
Ask for their details
- Under Send message, select Add action → Ask survey. The Ask survey panel opens, with the first field ready to fill in.
Your AI agent asks one question for each field in the survey, in order. You’ll add three fields: the person’s full name, their email address and their complaint.
Tip: each answer is saved in the field’s chat variable, so you can use it later in the workflow.
Full name
- In Chat variable name, enter
full_name. - In Question, enter What is your full name?
- Keep Answer must be as Text.

Email address
-
Select Add Field, below the first field.
-
Turn off Enable skip, so the person has to give an email address. The ticket needs one.
-
In Chat variable name, enter
email_address. -
In Question, enter What is your email address?

-
In Answer must be, select Email. Your AI agent then checks that the answer is a valid email address.

-
In Invalid answer reply, enter You must provide a valid email address. Your AI agent sends this if the answer isn’t valid, then asks again.
Complaint
- Select Add Field again.
- In Chat variable name, enter
description. - In Question, enter Describe your complaint.
- Keep Answer must be as Text.

Save the survey
- Select Save, at the bottom of the panel. The panel lists your three fields, each with its chat variable name and question. Select a field to open it again.

Create a ticket
Tip: a chat variable in curly brackets, such as
{full_name}, is replaced with the person’s answer.
-
Under Ask survey, select Add action → Create ticket.

-
In Live agent, select your own name.

-
In Subject, enter My first ticket.
-
In Description, enter
{description}. -
In Full name, enter
{full_name}. -
In Email, enter
{email_address}. -
Select Save, at the bottom of the panel.

Confirm the ticket
-
Under Create ticket, find the Success branch – the actions that run once the ticket is created.
-
Under Success, select Add action → Send message.

-
In Messages, enter Your ticket has been successfully filed.
-
Select Save, at the bottom of the panel.

Checkpoint: your workflow shows Send message, Ask survey and Create ticket, with Send message under Success.

Create the workflow
-
In the sidebar, select AI agents, then the Workflows tab.

-
Select New workflow.

-
Keep Workflow type as Message received.
-
In Name, enter Talk to a person.
-
In Description, enter If a person asks to talk to a person. Your AI agent uses the description to know when to start the workflow.
-
Select Create. Your new workflow opens, with a side panel for training phrases.

-
Close the side panel. You don’t need training phrases for this workflow.

Add the actions
-
Select Add action → Send message.
-
In Messages, enter Sure – I’ll connect you with our team.
-
Select Save, at the bottom of the panel.

-
Under Send message, select Add action → Live agent handoff. The handoff sends the chat to the live agents in your teamspace, who answer it from the Inbox.
-
Keep the default settings and close the panel.

Checkpoint: your workflow shows Send message, then Live agent handoff.

Answering questions doesn’t need a workflow. Your AI agent answers from its knowledge – the information you give it about your business. Plain text works: it doesn’t need to be written as questions and answers.
Add a snippet
-
In the sidebar, select AI agents, then the Knowledge tab.

-
Select Paste snippet.

-
In Name, enter Northwind FAQ.
-
In Text snippet, paste in some information about your business, or use this example:
Opening hours: Monday to Friday, 9:00 to 17:00 Eastern Time. We're closed on public holidays. Lost or stolen card: we replace it free of charge within 5 business days. Interac e-Transfer limit: you can send up to CAD 3,000 a day. -
Select Train. Your snippet appears in the Knowledge base list.

Checkpoint: your snippet’s Status says Success. It usually takes a few seconds.

Step 3 of 5 done
Next: Try it out