一个使用 Microsoft Bot Framework 构建的聊天机器人示例,具有通过 Moltin、Azure 搜索、推荐 API 和 LUIS 提供的电子商务功能
一个使用 Microsoft Bot Framework 构建的聊天机器人示例,具有通过 Moltin、Azure 搜索、推荐 API 和 LUIS 提供的电子商务功能
Note: the bot is still using the original State API that was deprecated. It works, but the recommendation from Microsoft is to implement a custom state data.
An example of a chatbot built with Microsoft Bot Framework and featuring e-commerce capabilities via:
I presented this bot on API Strat in Boston as an example of a smart app built with cognitive APIs. This bot is also going to SATURN and SYNTAX.
If you would like to run it, you would need:
categories, products, and variants. You can find the index definitions and the script that can set up everything you need hereDeploy your bot (I used Azure App Service) and register it with the dev.botframework.com.
Set the following environment variables:
MICROSOFT_APP_ID - you will get it from the dev.botframework.com during registrationMICROSFT_APP_PASSWORD - you will get it from the dev.botframework.com during registrationRECOMMENDATION_API_KEY - your API key to the Recommendations API service from the Microsoft Cognitive ServicesRECOMMENDATION_MODEL- you can create multiple recommendation models and this way you can choose which one the bot will use for suggestionsRECOMMENDATION_BUILD - a given model (your product catalog, historical transactions, and business rules) can have multiple recommendation builds and this is how you tell which one the bot will useSEARCH_APP_NAME - the name of your Azure Search service. The code assumes that you have all three indexes in the same Azure Search resourceSEARCH_API_KEY- your API key to the Azure Search serviceLUIS_ENDPOINT - the URL of your published LUIS model. Please keep the Add verbose flag on and remove &q= from the URL. THe bot framework will add it.SENTIMENT_API_KEY - your API key to the Text Analytics service.SENTIMENT_ENDPOINT - the enpoint of yout Text Analytics service. Defaults to https://westus.api.cognitive.microsoft.com/text/analytics/v2.0/sentimentIf you would like to connect the Bing Spell Check service, you would do so in LUIS when publishing your endpoint. This integration is transparent to the app and all you do is provision your Azure subscription key to the service and connect it to your LUIS app.
session.privateConversationData.cart) and does not sync back to MoltinMIT
暂无开放 Issues,或尚未同步最近议题。