Interaction is the exchange of messages with humans that are grouped together into a single piece of logic. When you create a Bot, you can add different interactions based on which you want your Bot to interact with humans.
By adding one or more interactions to the Bot, you can enable the Bot to perform different operations.
Changing the interaction name
- Navigate to the Bots page.
- In the Bots design section, click the gear icon on the interaction button.
- In the pop-up menu, click Change interaction name.
The dialog box appears to specify the new name. - In the text field, enter the new name and click Save.
Settings context
Contexts represent the current state of a user's request and allow the agent to carry information from one intent to another. Intents recognition can be controlled by using contexts.
Note: When you set the context value for an interaction, the nm:context attribute is automatically set to the specified value. If you do not specify the context value for an interaction, the nm:context attribute is removed from that interaction.
- In the Bots design section, click the gear icon on the interaction button.
- In the pop-up menu, click Set context.
- In the text field, enter the context value.
- Click Save.
Managing intents
When creating interaction, you can add new intents, edit and delete existing intents.
- In the Bots design section, click the gear icon on the interaction button.
- In the pop-up menu, click Manage intents.
The Intent Management dialog box appears.
Click Add Intent.
The Choose intent type dialog box appears. - Click the Simple button to add simple intent.
The Simple Intent dialog box appears with the list of available intent values.- From the list of intent values, select the required value.
Note: You must select the intent name - Click the Save button.
- From the list of intent values, select the required value.
- Click the Advanced button to an advanced intent.
The Advance Intent dialog box appears.- In the Intent name field, enter the name of the intent.
- In the Exclude content field, enter the text to exclude the context.
The intent is skipped or ignored if the specified text matches the current context stored in the "nm:context" attribute. - Click the Add Expression button to add expression to the intent.
For more information, see Manage expressions in the intent. - Click Save to save the selected expression.
- Click Save to save the intent.
The new intent is added to the Intents management dialog box.
- Modify the Intent name.
- To modify the intent, click the intent button on the Intent Management dialog box.
Based on the type of intent that you click, either the Simple Intent or Advanced Intent dialog box opens. - Change the Intent name and click Save.
- To modify the intent, click the intent button on the Intent Management dialog box.
- Delete the intent.
- To delete the intent, click the bin icon on the intent box.
The intent is immediately deleted.
- To delete the intent, click the bin icon on the intent box.
- After you add, edit, or delete the required intents, click Save on the Intent Management dialog box.
Cloning an interaction
Cloning an interaction is creating the exact copy of the interaction. Cloning saves time in defining all settings again and again.
- In the Bots design section, click the gear icon on the interaction button.
- In the pop-up menu, click Clone interaction.
A clone of the interaction is immediately created with the next count.
Setting the interaction as a welcome message
In the bot, you can set your interaction as a welcome message.
- In the Bots design section, click the gear icon on the interaction button.
- In the pop-up menu, click Set as Welcome Message.
The interaction is treated as a welcome message and the text Welcome Message is added to the interaction button.
Deleting an interaction
- In the Bots design section, click the gear icon for the interaction for which you want to change the name.
- In the pop-up menu, click Delete interaction.
- In the confirmation message dialog box, click Yes.