In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares with you is about how to use Python SDK to develop quotation skill templates. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
The interaction Model of Quotations skill template
The interaction between quotation skills and users is very simple. The user says "one", the skill selects an item from the list of quotations to read to the user, and the user can continue to say "one" to continue to listen to the quotation, or "exit" to end the interaction.
Create new skills in the process of developing skills using templates
For more information on creating new skills, see Custom skill creation.
Configuration intention
For details of intention configuration, see intent, common expressions and slots
The skill template of quotation type needs to create a "get quotation" intention. The intention of obtaining the quotation is shown in the following figure:
Configure skill service deployment
The quotation skill template uses CFC to deploy the skill service. For more information on deploying skill services using CFC, please see Baidu Cloud CFC.
Modify CFC function code
After the developer creates the function through the template, the function can be edited online. The specific process of creating and modifying CFC function is as follows:
Log in to the CFC console
Create a function through the template and select the Python DuerOS Bot SDK template
Overwrite the following code in the online edit box
Modify the relevant contents of the launch_request method, such as the parameters in template.set_background_image () and template.set_title ()
Modify the list of quotations in the getQuotations method
Save
For instructions on CFC operation, please see function calculation CFC.
Test skills
At this point, the quotation tiring skills have been developed. Developers can test their skills on the simulation test page of the skills open platform.
The above is how to use Python SDK to develop quotation skill templates. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.