首页 > 解决方案 > 如何通过技能清单/端点使用 Azure Health Bot Skills?

问题描述

我在 Azure HealthBot 管理门户中创建了场景,并希望公开其他机器人/rootbot 使用的技能。我已经配置了技能公开并获得了包括端点在内的技能清单。当我们调用 api 端点时,它会给出 404 错误。

显现:

{
"$schema": "https://schemas.botframework.com/schemas/skills/v2.1/skill-manifest.json",
"$id": "testhealthbot",
"name": "testhealthbot",
"version": "1.0",
"description": "test",
"publisherName": "test",
"tags": [],
"endpoints": [
    {
        "name": "default",
        "protocol": "BotFrameworkV3",
        "description": "Production endpoint for HealthBot Skill testhealthbot",
        "endpointUrl": "https://bot-api-us.healthbot.microsoft.com/bot/dynabot/testhealthbot-hpmn88l/skill/consume",
        "msAppId": "3dc55673-cdd5-4e4d-8838-d51d2exxxxx"
    }
],
"activities": {
    "message": {
        "type": "message",
        "description": "Receives the user's' utterance and attempts to resolve it using the skill's LU models"
    }
}
}

有人可以指导我如何对技能进行api调用或在rootbot中使用技能吗?

标签: azurebotframeworkchatbotmicrosoft-health-bot

解决方案


要将您的新技能添加到您的助手/机器人,您可以使用botskills命令行工具来自动化将技能添加到您的调度模型并在需要时创建身份验证连接的过程。从您的助手/机器人目录中的命令提示符处运行以下命令。

botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --cs --luisFolder "<PATH_TO_LU_FOLDER>"

有关详细信息,请参阅添加技能。


推荐阅读