Getting started 1: A simple conversation flow
This tutorial demonstrates a simple conversation flow. Using a leave request as an example, the flow collects the number of leave days and the applicant's name before submitting the request.
1. Create a conversation flow
Go to Robot Management > Dialog Studio and click New Conversation Flow. Enter 'Leave Request' as the conversation flow name.
2. Enter the canvas
Find the 'Leave Request' conversation flow you created. Click Edit next to the flow to enter the canvas.
3. Create an entity
In the Entities list in the navigation pane on the left, click New Standard Entity. For the entity name, enter 'Applicant Name'. Set the entity members to 'Zhang San', 'Li Si' (with 'Li Sier' as a synonym), and 'Wang Wu'.
4. Create an intent
In the Intents list in the navigation pane on the left, click New Intent. For the intent name, enter 'Leave Request Intent'. Set the user utterance to 'I want to request leave'. In the Slots section, select the system-recommended 'Applicant Name' and 'Leave Days'. If these slots are not available, click New Slot to create them.
5. Build the conversation and create a user input node
From the navigation pane on the left, drag a user input node to the canvas and connect it to the Start node. Click the node. Enter 'Leave Request Trigger' as the node name. For Intent Name, select the 'Leave Request Intent'. The system automatically synchronizes the trigger conditions and user utterance after you select the intent.
6. Create a slot filling node
From the navigation pane on the left, drag a slot filling node to the canvas and connect it to the user input node. Click the node. Enter 'Collect Leave Information' as the node name. In the Parameters section, set Intent to 'Leave Request Intent'. For the follow-up questions, enter 'What is your name?' and 'How many days of leave are you requesting?'.
7. Create a response node
From the navigation pane on the left, drag a response node to the canvas and connect it to the slot filling node. Click the node. Enter 'Leave Request Submitted' as the node name. In the Text Response field, enter 'The request for ${LeaveRequest.LeaveDays.origin} days of leave for ${LeaveRequest.ApplicantName.origin} has been successfully submitted.' When you type the $ symbol, variable suggestions automatically appear.
8. Save and submit for testing
9. Start testing in the test window