Write and publish guides

Prerequisites 
  • Virtual Agent enabled in your organization. For more information, contact your designated Customer Success Manager.
  • AI Studio permissions for Guides. For more information about all the required permissions, see AI Studio permissions

After you create a guide using one of the available options for guide creation, you can add instructions to it or edit the existing instructions on the Instructions tab.

Create or open a guide

  1. Click Admin.
  2. Under AI Studio, click Guides.
  3. Click Menu > Orchestration > AI Studio > Guides.
  4. To search for a specific guide, start typing the name of the guide in the search box. As you type, the matching guides are shown.
  5. To open a guide, click its name. 
  6. Select the Instructions tab.
  7. In the Instructions tab, add or change the steps of the guide.  

Write instructions for the guide

Follow these basic guidelines when writing and formatting your instructions:

  1. Design your guide with a focus on a single task or intent. 
  2. Divide your task into main steps and substeps. This type of structuring ensures that your AI agent understands the context and reference when you ask it to jump between steps.
    1. Assign a unique name to each main step. Choose a name that provides an accurate description of what happens within the step and its substeps.
    2. Use the available predefined commands as building blocks for your guide.

Predefined commands

Note: Write the command name in English; however, the rest of the command’s syntax can be in any supported tier 1 language. For example, - Say "Bienvenido al registro de nuestro Programa de Lealtad {{Variable.programa_lealtad}}. Te guiaré a través del proceso."
Command Usage description Syntax Examples
Say

Use this command to enter an output message that the AI agent must send to the user. It can include simple variables that are captured in the guide or provided as input from the flow to the guide.

- Say "Exactly what you want the AI agent to say”

- Say "Welcome to ACME insurance."

Or

- Say "Your current rewards balance for your card_type is points_balance points."

Or

- Say "Hello contact_username."

Ask

Use this command to request input from the user. You can include simple variables too. For example, the AI agent can ask questions to the user using their name or referring to any previous information.

To save customers’ answers as variables, follow this command by a Store statement. Use these variables later in the guide, for example, to call a data action or as output to an Architect flow.

- Ask "The question that your AI agent must ask"

- Store in {{Variable name}} [ { and | , } ... ]

- Ask "Please provide the email address."

- Store in email_address

Or

- Ask "Are you sure you want to book a flight to trip_destination?"

- Store in booking_confirmation

Call

Use this command to call a data action with input parameters and store the output in variables.

If there are multiple parameters to call, you can denote them with commas and by specifying other separators. Also, if you want to store the output, you can follow it with a Store command.

Currently, data actions that return simple data types including strings, numbers, and Booleans are supported.

- Call [Data action name] with [variable name]

- Call VerifyUserDetails_Action with card_type

- Call VerifyCustomer_Action with customer_ID and customer_email

Example A with Store:

- Call VerifyUserDetails_Action with card_type

- Store in verification_status

Example B with Store:

- Call VerifyCustomer.Action with customer_ID and customer_email

- Store in verification_status

Store

Use this command to save data to variables. You can then use the variables in other areas of the guide. You can store multiple variables at a time from Ask and Call commands.

Note: Proper descriptions are important for the variables. Update these descriptions in the Variables tab. 

- Store in {{Variable name}} [ { and | , } ... ]

- Store in variable_name

Or

- Store in variable1_name and variable2_name

Go To

Use this command to navigate to another step in the guide. Ensure that you match the step names correctly.

- Go To [step_name]

- Go To Email Collection

Or

- Go To Escalation

If:Then:Else

Use this command to follow conditional branching logic. It allows you to direct the AI agent to different paths depending on the customer’s responses.

The If condition must be a true or false statement and you must follow it by a Then statement. The Else statement is optional.

Without Else statement:

- If CONDITION

- Then Go To [step_name]

With Else statement:

- If CONDITION

- Then Go To [step_name]

- Else Go To [Other_step_name]

- If router_model == "A100"

- Then Go To Troubleshoot A100

Or

- If router_model is A100

- Then Go To Troubleshoot A100

Or

- If is_VIP_customer is true

- Then Go To VIP Customer Handling

- Else Go To Standard Customer Handling

Or

- If customer is a VIP type

- Then Go To VIP Customer Handling

- Else Go To Standard Customer Handling

Or

- If account_type == Checking

- Then Go To Checking Balance

- If account_type == Savings

- Then Go To Savings Balance

- Else Go To Other Account Balance

Exit

Use this command to end the guide execution. By default, the guide ends if there is nothing else to do. However, this optional command allows you to set the exit status or to branch certain answers to specific exit paths.

- Exit with { Completion | Failure | Escalation }

- Exit with Completion

Or

- Exit with Escalation

Formatting of commands

To improve reliability and consistency across guides, ensure that each command line starts with a hyphen (-) followed by a space. Also, the first letter of the command must be in uppercase. 

Example:

...
– Say “text”
...
– Ask “text”
...

Generating a guide using an AI prompt or document upload creates instructions in this format. 

All sections (main steps) in the guide must have a heading to which the AI agent can navigate. For more guidelines and best practices on writing instructions, see Best practices for writing guides.

Add variables

  1. Create a guide or open an existing one.
  2. Select the Variables tab.
  3. In the Variables tab, create guide variables that you plan to use in your guide. 
  4. Select the Instructions tab.
  5. In the Instructions tab, place your cursor where you want to insert a variable and type /. A dialog box shows all available variables.
  6. Select the required variable. 

The editor emphasizes variables present in your guide using a gray background.

Add data actions

You can add a previously configured data action to your guide. For more information about creating a custom data action, see Create a custom action for integrations.

  1. Create a guide or open an existing one.
  2. Select the Instructions tab.
  3. In the Instructions tab, place your cursor where you want to insert a data action and type /. A dialog box shows all available data actions.
  4. Select the required data action. 

The editor emphasizes variables present in your guide with a gray background and the data action icon . For more information about how to use data actions in guides, see Connect guides to external services with data actions.

Save and publish the guide

  1. When you finish editing, click Save to save the guide as a draft.
  2. Run the guide checker. If the checker returns any syntax errors, troubleshoot them. For more information about the guide checker, see Validate your guide using checker.
  3. Click Publish to publish the guide. 

Notes:
  • While your guide is in draft mode, you can change the guide variables, if needed. After you publish a guide, you cannot change an existing variable’s name, type, or availability, but you can add new variables.
  • When you publish a guide, which is already linked to an Architect bot flow that is enabled with Virtual Agent, the flow immediately updates its configuration to call the latest published guide during its execution.
  • The performance of the Virtual Agent can vary across languages. Genesys encourages testing with preferred languages before going live. 
  • When you publish a guide, the editor runs the guide checker automatically. Before you can publish the guide, you must troubleshoot and fix all the errors shown by the checker. Also, whenever you change the guide and save it, you are prompted to run the checker again.

After you publish a guide, you can connect it to an Architect bot flow or digital bot flow that is enabled with Virtual Agent using the Call Guide action. For more information, see Connect guides to your Virtual Agent flows. For more information about how to duplicate or delete a guide, see Duplicate or delete guides.