从哪里获取api.ai chatbot的订阅密钥以部署在Microsoft Cortana上

问题描述 投票:0回答:1

我正在尝试使用api.ai构建一个聊天机器人。我想将此机器人与Microsoft Cortana集成。我按照这个链接给出的每一步:https://docs.api.ai/docs/cortana-integration然后初始化api.ai实例,我写了下面的代码。客户端访问令牌可供我使用。我的问题是从哪里获得订阅密钥?

var config = new AIConfiguration("String subscription key",
                       "String client_access_token",
                       SupportedLanguage.English);

            apiAi = new ApiAi(config);
            apiAi.DataService.PersistSessionId();
chatbot cortana dialogflow
1个回答
0
投票

你确定你拥有的代码,因为在提到的URL:https://docs.api.ai/docs/cortana-integration,代码是这样的:

var config = new AIConfiguration("YOUR_CLIENT_ACCESS_TOKEN", SupportedLanguage.English);

因此,您只需要客户端访问令牌,可以从API.AI中的“代理设置”页面获取

© www.soinside.com 2019 - 2024. All rights reserved.