随着人工智能的崛起,聊天机器人变得更聪明,更个性化,更直观。在本文中,我们将向你展示如何使用 Azure Bot Service,将 Dify 集成至 Microsoft Teams,打造团队中的 AI 助手。在本文中将介绍如何集成 Azure Bot Service 的 Teams Channel,允许客户与你的 Microsoft Teams 聊天机器人开始对话。
接着生成基础编排聊天助手 API 密钥点击 “访问 API” 后,会跳转到上图的 API 管理页面,按照如下步骤获取 API 密钥:
点击右上角 API 密钥
点击创建密钥
复制保存密钥
在保存密钥后,还需要查看右上角的 API 服务器,如果是 Dify 官网的应用,API 服务器地址为 https://api.dify.ai/v1, 如果是私有部署的,请确认你自己的 API 服务器地址。至此,创建聊天助手的准备工作结束。在此小节中我们只需要保存好两个东西:API 密钥 与 API 服务器地址。
[+] Running 2/0 ✔ Network dify-teams-bot_dify-network Created 0.0s ✔ Container dify-teams-bot-nodejs-app-1 Created 0.0s Attaching to nodejs-app-1nodejs-app-1 | nodejs-app-1 | > echobot@1.0.0 startnodejs-app-1 | > node ./index.jsnodejs-app-1 | nodejs-app-1 | (node:18) [DEP0111] DeprecationWarning: Access to process.binding ('http_parser') is deprecated.nodejs-app-1 | (Use `node --trace-deprecation ...` to show where the warning was created)nodejs-app-1 | (node:18) [DEP0111] DeprecationWarning: Access to process.binding ('http_parser') is deprecated.nodejs-app-1 | nodejs-app-1 | restify listening to http://0.0.0.0:3978nodejs-app-1 | nodejs-app-1 | Get Bot Framework Emulator: https://aka.ms/botframework-emulatornodejs-app-1 | nodejs-app-1 | To talk to your bot, open the emulator select "Open Bot"