如何通过技能清单/端点使用 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中使用技能吗?

解决方法

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

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

有关详细信息,请参阅 adding skills