当前位置:网站首页>Rasa dialogue robot helpdesk (III)
Rasa dialogue robot helpdesk (III)
2022-06-13 01:07:00 【m0_ forty-nine million three hundred and eighty thousand four h】
One 、HelpDesk Creation of intelligent dialogue robot incident Complete business process analysis
Here is about domain The document is about slot “problem_description” The definition of , You can use key “not_intent” Specify which values do not trigger slot Fill of , You can also use intent Specify trigger slot Filled with intent:
Retraining the model :
After the model training is completed, it is saved through persistence :
Use interactive dialogue mode to learn more about dialogue robot creation incident Business process . First confirm the use docker Command to start duckling service :
docker run -p 8000:8000 rasa/duckling
Display after startup :
With debug mode Rasa action server:
Run the command ”rasa interactive” Enter interactive mode :
After startup, the dialog flow visualization will be displayed URL:
Click on URL You can see the status of the current conversation :
Input information :I forgot my password
confirm intent Continue to execute after correct identification :
slot “incident_title” The value of is set to “Problem resetting password”, Run... As prompted form “open_incident_form” To collect information from users :
You can see the of the current request slot yes email, Carry on , Enter the following email Information :
The model is correctly extracted Email Information , Continue to execute after confirmation :
slot “email” The value just entered by the user has been filled , Continue to follow the prompts form, You can see from the dialogue history information ” requested_slot” The value of is priority, It indicates that the dialogue robot currently needs to collect information from the user about incident Of ” priority”:
Check the visual dialog flowchart , Dynamic updates have been made accordingly :
Carry on , According to the output of the dialogue robot button Option selection priority Value :
Here, select Create priority by low Of incident, So choose options 1:
At this time slot “priority” The value of is set to ”low”, Continue to run... As prompted form To complete the information collection , You can see from the output , The next information to be collected is ” problem_description”:
Enter the problem description :please reset my password
Confirm to continue :
At this time slot “problem_description” The information just entered has been filled in , Continue operation form Complete information collection :
“requested_slot” The value of is ”confirm”, Indicates when the incident After the information collection of , The user is required to confirm whether to submit form:
choice Yes:
Continue operation form:
You can see this form All of the slots All have been collected , Here is domain About this form The definition of , among required_slots This key Defines the information that the above dialogue robot needs to collect from users in turn :
Next, you need to invoke the microservice action_open_incident, The visual flow chart is updated as follows
Two 、 establish intent Microservice parsing for
Execute microservices action_open_incident, stay action server The log output of the client is as follows :
At this point, view the visual flow chart ,action_open_incident This step changes from dotted line to solid line , Indicates that the execution has been completed :
This is a micro service class :
Need to implement interface Action Medium name Method :
Implementation interface Action Medium run Method :
from tracker Get the information collected from the user by the previous dialogue robot slot Information :
If the user chooses to cancel creation incident, Then call the template to output the message , And you need to reset all slot Value :
In case of local mode , Build a message:
If you are calling a third party incident Management system snow Interface , You can see that you need to call the interface method create_incident To create incident, After the call is completed, return to response, According to response It is concluded that incident number, If there is a valid incident number, Then output information to prompt the user incident Create success , Otherwise, from response Remove from error Information is returned to the user .
At the end of the method , You need to reset all current slot The value of is empty , To create... For the next acceptance user incident Be prepared for your request , At the same time, it will trigger SlotSet Events to put the current email Assign the value of to another slot “previous_email”, In this way, the user does not need to input again in some scenarios email.
边栏推荐
- 五篇经典好文,值得一看(2)
- Et5.0 simply transform referencecollectorieditor
- 304. Merge two ordered arrays
- Mathematical knowledge arrangement: extremum & maximum, stagnation point, Lagrange multiplier
- Argparse command line passes list type parameter
- [JS] solve the problem that removeeventlistener is invalid after the class listening event from new is bound to this
- Opencv desaturation
- How many steps are appropriate for each cycle of deep learning?
- Androi weather
- Android Weather
猜你喜欢
切线与切平面
Three column simple Typecho theme lanstar/ Blue Star Typecho theme
What is meebits? A brief explanation
Most elements leetcode
Et5.0 simply transform referencecollectorieditor
Opencv desaturation
ArrayList underlying source code
Kotlin collaboration, the life cycle of a job
With a market value of more than trillion yuan and a sales volume of more than 100000 yuan for three consecutive months, will BYD become the strongest domestic brand?
MySQL异常:com.mysql.jdbc.PacketTooBigException: Packet for query is too large(4223215 > 4194304)
随机推荐
Rest at home today
Unity calls alertdialog
Et5.0 simply transform referencecollectorieditor
軟件測試的幾種分類,一看就明了
[Latex] 插入圖片
spiral matrix visit Search a 2D Matrix
Binary tree -- using hierarchical sequence and middle sequence to determine a tree
什么是 Meebits?一个简短的解释
[Latex] 插入图片
ArrayList underlying source code
深度学习训练多少轮?迭代多少次?
Leetcode-15- sum of three numbers (medium)
leetcode. 349. intersection of two arrays
Ecological convergence NFT attacks, metaverse ape leads the new paradigm revolution of Web 3.0 meta universe
How to choose stocks? Which indicator strategy is reliable? Quantitative analysis and comparison of DBCD, ROC, vroc, Cr and psy index strategy income
[latex] insert picture
[server data recovery] successful cases of data loss recovery during data migration between storage servers
[JS component] customize the right-click menu
How many steps are appropriate for each cycle of deep learning?
spiral matrix visit Search a 2D Matrix