简体   繁体   中英

How to consume Azure Health Bot Skills by skill manifest/endpoint?

I have created the scenarios in Azure HealthBot Management Portal and want to expose the skill to be consumed by other bot/rootbot. I have configured the skill exposure and got the skill manifest including the endpoint.When we are making the call to the api endpoint it is giving 404 error.

Manifest:

{
"$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"
    }
}
}

can someone please guide me how to make api calls to the skill or to consume the skill in rootbot?

To add your new Skill to your assistant/Bot you can use botskills command line tool to automate the process of adding the Skill to your dispatch model and creating authentication connections where needed. Run the following command from a command prompt within the directory of your assistant/Bot.

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

see adding skills for more details.

I have created a forwarding url with ngrok. And followed these steps, docs still I was unable to connect to Azure Health Bot,I was getting error.

Adding the qna forum for reference microsoft_qna

it would be very helpful, if someone would guide on adding azure health bot as a skill in rootBot. Thanks in advance.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM