...
Drag and drop the Text prompt from the palette onto the canvas.
On the properties, change the step name from Prompt to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
You could create a new prompt by:
Toggle to ‘New Prompt’.
Add the ‘Message’ Luma should ask the user.
Provide a name for the 'attribute’ to save the user’s response.
Select the ‘datatype' type of information expected.
Confirm if the prompt is mandatory. This means the users must provide the information to go ahead with the skill.
Add the default value.
Click on Create to create the attribute. This is optional. If not clicked, the attribute will be created automatically when Skill is saved.
To add more details to the attribute, such as NLP extraction method and validations, before saving it, click on the Advanced Configuration under the create button.
You could also use an existing attribute.
This enables you to add an existing global attribute to the skill and use the prompt added to the attribute.
Toggle the switch to Choose existing Prompt.
Select the attribute. This loads the Message field with the message configured in the selected attribute.
You change the details by overriding the attribute.
You could click on the pencil icon to update the message. Once done, click on the green tick to save changes.
Alternatively, click on the attribute name and make the required changes on the attribute override pop-up screen.
For more details on attribute override, refer to Building Conversation Flow | Attribute Override.
The Text prompt is now ready.
...
Drag and drop the Quick Reply prompt from the palette onto the canvas.
On the properties, change the step name from Prompt to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
You could create a new prompt by:
Toggle to ‘New Prompt’.
Add the ‘Message’ Luma should ask the user.
Two options are added by default. These are presented to the users as quick reply buttons.
Add as many options as required. Click on the tag icon to change the payload, which is the value saved in the attribute when the option is selected. For more information, refer to Build User Prompts.
Provide a name for the 'attribute’ to save the user’s response.
Select the ‘datatype' type of information expected.
Confirm if the prompt is mandatory. This means the users must provide the information to go ahead with the skill.
Add the default value.
Click on Create to create the attribute. This is optional. If not clicked, the attribute will be created automatically when Skill is saved.
To add more details to the attribute, such as NLP extraction method and validations, before saving it, click on the Advanced Configuration under the create button.
You could also use an existing attribute.
This enables you to add an existing global attribute to the skill and use the prompt added to the attribute.
Toggle the switch to Choose existing Prompt.
Select the attribute. This loads the Message field with the message configured in the selected attribute.
You change the details by overriding the attribute.
You could click on the pencil icon to update the message and options. Once done, click on the green tick to save changes.
Alternatively, click on the attribute name and make the required changes on the attribute override pop-up screen.
For more details on attribute override, refer to Building Conversation Flow | Attribute Override.
The Quick Reply prompt is now ready.
...
Drag and drop the Decision Prompt- Quick Reply prompt from the palette onto the canvas.
On the properties, change the step name from Prompt to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
You could create a new prompt by:
Toggle to ‘New Prompt’.
Add the ‘Message’ Luma should ask the user.
Two options are added by default. These are presented to the users as quick reply buttons.
Add as many options as required.
You can rename the options. The option names are saved as values to the attribute when the option is selected.
Provide a name for the 'attribute’ to save the user’s response.
Select the ‘datatype' type of information expected.
Add the Validation error Message.
Click on Create to create the attribute. This is optional. If not clicked, the attribute will be created automatically when Skill is saved.
To add more details to the attribute, such as NLP extraction method and validations, before saving it, click on the Advanced Configuration under the create button.
You could also use an existing attribute.
This enables you to add an existing global attribute to the skill and use the prompt added to the attribute.
Toggle the switch to Choose existing Prompt.
Select the attribute. This loads the Message field with the message configured in the selected attribute.
You change the details by overriding the attribute.
You could click on the pencil icon to update the message and options. Once done, click on the green tick to save changes.
Alternatively, click on the attribute name and make the required changes on the attribute override pop-up screen.
For more details on attribute override, refer to Building Conversation Flow | Attribute Override.
The Decision Prompt- Quick Reply prompt is now ready.
The options added to the prompt can now be used to build a path in the skill. When the user takes one of the options, the associated path is taken.
You could also add a Default path to the prompt, which is taken when the user does not take any of the provided options and provides any other value. To do so, select the 'Add Default Path'.
...
Drag and drop the Text Message from the palette onto the canvas.
On the properties, change the step name from Message to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
Add the ‘Message’ to be displayed.
The Text Message is now ready.
...
Drag and drop the Image Message from the palette onto the canvas.
On the properties, change the step name from Message to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
Add the ‘Message’ to be displayed.
Add the Image URL and a Tooltip. Note: This is not a clickable image. The image used to provide additional information along with the text message.
The Text Message is now ready.
...
Drag and drop the If-Else construct from the palette onto the canvas.
On the properties, change the step name from If Else to a user-friendly name to identify and define what the step does. This improves the readability of the skill.
Each Rule added on the properties panel appears as a new path in the canvas. The Default path is the fallback path that is taken when none of the Rules are fulfilled or evaluated as ‘true’.
The next step is to define the rules.
On the properties panel, click on the Rule to configure the conditions that form the rule.
Add/Change the Rule Name. Use a user-friendly name.
Now add one or more conditions that should be fulfilled for the skill to take the corresponding path.
You could configure the rule to fulfill ALL, ANY one or CUSTOME (some) of the conditions.
Repeat step 5 to add as many Rules or as many conditional paths as required on the Canvas.
Once the rules are ready, you can add steps to each rule. The defined path is taken when the rule is evaluated as true.
Info |
---|
The count 1,2,3… on the links of each Rule indicates the sequence in which the rules are evaluated. Else determines the fallback path that is taken when none of the rule is true. |
Trigger Skill
Trigger Skill construct is used for dynamic branching in user conversation. With this construct, you can redirect users to another skill based on specific conditions or user actions. The Trigger Skill construct empowers the skill developer to create intricate decision paths, providing personalized pathways for users based on their unique needs. This construct indicates the end of the current skill and branches the conversation to another skill.
Info |
---|
Once the conversation flow is routed to the next skill, the control does not come back to the current skill |
To add Trigger Skill, follow the below steps:
Drag and drop the Trigger Skill construct from the palette onto the canvas.
On the properties panel, select the skill to branch to.
Select from the skill list.
Click on the view button to view the details of the branching skill in a new tab.
Set/Transformation Attributes
Set/Transform Attribute enables the skill developers to manipulate and store information obtained from users or integration calls. These constructs enable developers to convert values and use them in various contexts, such as executing tasks through integrations, branching to other skills using Rulesets, or providing users with informative messages. With Set/Transform Attributes, developers can enhance the functionality and customization of their skills by effectively utilizing and transforming data.
Here you can:
Set Attribute - Set the existing global or custom attributes with the values received from Integration calls. You could also create local attributes and use those tp retain information that can be used later in the skill.
Transform Attribute - Transform Attribute is used to transform the values and assign the transformed/formatted/customized value to a Global, Local, or Custom User Attribute. Luma Virtual Agent provides a range of Transformation functions to allow skill developers to convert the data as required, such as Split, Trim, Substring, Replace, Custom Date-Time, and more.
To add a Set/Transformation attribute, follow the below steps:
Drag and drop the Set/Transformation attribute construct from the palette onto the canvas.
On the properties panel, you can now Set Attributes or Transform Attributes.
To Set Attribute:
Click on ‘+Set attribute’.
Now, on the Set Attribute control, configure the details.
Select the attribute to be set.
Select the scope of the attribute, i.e., Global, Local, or User Custom.
Select the Attribute from the dropdown.
Now add the Expression to indicate what type of value is to be assigned to the attribute.
Add expression that holds to assign value.
To Transform value:
Click on ‘+Transform’.
Now, on the Transform Attribute control, configure the details.
Select the attribute to be set after transforming a value.
Select the scope of the attribute, i.e., Global, Local, or User Custom.
Select the Attribute from the dropdown.
Now select the Transformation function.
Select the Function Mode.
Based on the Function mode, provide information to the input parameters. For more details on how to use the Transformation function, refer to Using Transformation Function.
You can add as many ‘Set and transform’ attributes as required. The functions are executed in the sequence in which these are added.
Clear Attribute
The clear attribute construct is used to clear the value available in an attribute. Skill developers can either clear specific attributes or clear all attributes. This flexibility ensures a clean slate for tailored user interactions and streamlined skill behavior.
To Clear an attribute, follow the below steps:
Drag and drop the Clear attribute construct from the palette onto the canvas.
On the properties panel, you may:
Select the ‘Clear Specific Global Attributes’ option.
In the Attribute dropdown, select the attributes to be cleared.
Select the ‘Clear All Global Attributes’ option.
In the Attribute dropdown, select the attributes that should NOT be cleared and data should be retained.
End
The 'End' block signifies the conclusion of a flow within the skill. When the skill execution reaches the End block, it signals the end of the skill's execution, triggering the Global Survey based on the specified configuration. While the End block is not mandatory, reaching a control without a subsequent node also marks the end of the skill execution and automatically accounts for the Survey, following the global configuration. To disable the survey for a specific path in the skill, you can incorporate the End Block accordingly.
To add an End, follow the below steps:
Drag and drop the End block from the palette onto the canvas.
On the properties panel, select ‘Do not trigger Global Survey’ to ignore triggering the Survey to the skill.