Skip to content
Docs

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

  1. In the sidebar, select AI agents, then the Workflows tab.

    The Workflows tab of an AI agent, with the New workflow button

  2. Select New workflow.

    The Workflows tab, with the New workflow button

  3. Keep Workflow type as Message received.

  4. In Name, enter File a complaint.

  5. In Description, enter If a person asks to file a complaint. Your AI agent uses the description to know when to start the workflow.

  6. Select Create. Your new workflow opens, with a side panel for training phrases.

    The New workflow window, with the name and description filled in

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

The training phrases side panel, with its close button in the top right

Send a message

  1. Select Add action. The Actions panel opens.

    The new File a complaint workflow, with Add action under the trigger

  2. Select Send message.

    The Actions panel, listing Send message, Send attachment, Ask survey, Live agent handoff and more

  3. In Messages, enter I see you are trying to file a complaint, we will need the following information from you.

  4. Select Save, at the bottom of the panel.

The Send message panel, with the message filled in

Important: always select Save before you close a panel. If you close it without saving, your changes are lost.

Ask for their details

  1. 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

  1. In Chat variable name, enter full_name.
  2. In Question, enter What is your full name?
  3. Keep Answer must be as Text.

The full_name field, with the chat variable name and the question

Email address

  1. Select Add Field, below the first field.

  2. Turn off Enable skip, so the person has to give an email address. The ticket needs one.

  3. In Chat variable name, enter email_address.

  4. In Question, enter What is your email address?

    The email_address field, with skip turned off, the chat variable name and the question

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

    The rest of the email_address field, with the answer type Email and the invalid answer reply

  6. 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

  1. Select Add Field again.
  2. In Chat variable name, enter description.
  3. In Question, enter Describe your complaint.
  4. Keep Answer must be as Text.

The description field, with the chat variable name and the question

Save the survey

  1. 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.

The Ask survey panel, listing the full_name, email_address and description fields

Create a ticket

Tip: a chat variable in curly brackets, such as {full_name}, is replaced with the person’s answer.

  1. Under Ask survey, select Add action → Create ticket.

    The Actions panel opened under Ask survey, scrolled to Create ticket

  2. In Live agent, select your own name.

    The top of the Create ticket panel, with your name in Live agent

  3. In Subject, enter My first ticket.

  4. In Description, enter {description}.

  5. In Full name, enter {full_name}.

  6. In Email, enter {email_address}.

  7. Select Save, at the bottom of the panel.

The rest of the Create ticket panel, with the subject, description, full name and email filled in

Confirm the ticket

  1. Under Create ticket, find the Success branch – the actions that run once the ticket is created.

  2. Under Success, select Add action → Send message.

    The workflow with Create ticket and its Success and Error branches, with Add action under Success

  3. In Messages, enter Your ticket has been successfully filed.

  4. Select Save, at the bottom of the panel.

The Send message panel under Success, with the confirmation message

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

The finished File a complaint workflow

Create the workflow

  1. In the sidebar, select AI agents, then the Workflows tab.

    The Workflows tab of an AI agent, with the New workflow button

  2. Select New workflow.

    The Workflows tab, with the New workflow button

  3. Keep Workflow type as Message received.

  4. In Name, enter Talk to a person.

  5. 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.

  6. Select Create. Your new workflow opens, with a side panel for training phrases.

    The New workflow window, with the name Talk to a person and its description filled in

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

The training phrases side panel for Talk to a person, with its close button in the top right

Add the actions

  1. Select Add action → Send message.

  2. In Messages, enter Sure – I’ll connect you with our team.

  3. Select Save, at the bottom of the panel.

    The Send message panel, with the handover message

  4. 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.

  5. Keep the default settings and close the panel.

The Live agent handoff panel, set to assign the chat to all live agents in the teamspace

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

The finished Talk to a person workflow

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

  1. In the sidebar, select AI agents, then the Knowledge tab.

    The Knowledge tab, with the Upload file, Add URL and Paste snippet buttons

  2. Select Paste snippet.

    The Knowledge tab, with the Paste snippet button

  3. In Name, enter Northwind FAQ.

  4. 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.
  5. Select Train. Your snippet appears in the Knowledge base list.

    The Paste Snippet form, with the name Northwind FAQ and the example information filled in

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

The Knowledge base list, with Northwind FAQ showing Success

Step 3 of 5 done

Next: Try it out

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto