Parameters

Set parameters

Parameters are used to collect and manage information from customers to help VAs provide more appropriate responses. Each parameter value is associated with an entity type. When developing a response script, the trainer needs to identify the important information that needs to be collected from the client to train the VA to provide accurate responses.

For example: Loan consulting scenario: Need to determine parameters such as name, ID card number, income, job, credit status, etc. to advise on loan options.

Set parameters:

Consider the following loan consulting scenario:

Nội dung

Ý định

Tham số

Client

Please give me loan advice

2_ask_loan

VA

Please tell me what your name is

2_1_name

Customer_name

Client

Vo An

To set the customer_name parameter, trainers need to follow these steps:

  • Step 1: At the Context tab (1), select the Intent to set up the response scenario

  • Step 2: Select the Actions & parameters tab and click Create new (2).

  • Step 3: Set parameters with the following fields:

    • Name: Description of the parameter that needs information. Use underscores to separate words.

    • Entity: Select the entity type corresponding to the parameter.

    • Parameter options:

    Required: Select when you need to set a required parameter. Customers are required to provide parameter values ​​according to established conditions.

    • Prompt: Set up a reminder for customers to provide information.

    • Lifespan of Prompt: Number of times to repeat the response in the prompt.

    • Quick Response: Allows Trainers to design quick button responses to VA prompts.

    • Message after the prompt ends: This is a message after the number of prompt responses has expired, but the customer has not yet provided information.

    • Number of repetitions: the number of times the VA repeats the message content after the prompt ends.

List: Setting the list parameter allows the VA to identify sentences with multiple information belonging to the same entity type. (See also Parameter Setting (List) )

For entity types sys.amount and sys.duration, the unit for the parameter value needs to be set

For example

  • Set the units for the loan_amount parameter, of the sys.amount entity type:

If the customer enters the loan amount as 1 (<1000). According to the settings, VA will recognize the value { loan_amount} equal to 1 billion.

  • Set the units for the loan_duration parameter, which is of the sys.duration entity type

Set duration_unit for the loan_duration parameter to “year”. When the customer enters the parameter value of 5, VA will recognize the loan duration as 5 years ({ loan_duration } equals 5 years).

Set parameter conditions

  • Step 1: On the Response tab, select Condition(1) to set up the comparison for the parameter.

  • Step 2: Then, select from the list of pre-created responses that match the conditions.

In the example scenario, the trainer would set up the following:

After setting up the response scenario according to the parameter conditions, the trainer clicks the “Training” button at the quick access toolbar and checks the response results at the conversation simulation tool.

Operators

Operators

Explain

=

Compares the exact parameter with a certain numeric value

!=

Compare the different of parameters with a certain numeric value

>

Compares a parameter that is less than a certain numeric value

<

Compare parameters greater than a certain numeric value

>=

Compare parameters greater than or equal to a certain numeric value

<=

Compare parameters that are less than or equal to a certain numeric value

contains

Check the presence of the comparison value in the text string

not contains

Check that the comparison value does not appear in the text string

in

Checks the existence of a comparison value in a text string

Last updated