Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable composer to call a remote skill #2233

Merged
merged 28 commits into from
Mar 16, 2020
Merged

feat: enable composer to call a remote skill #2233

merged 28 commits into from
Mar 16, 2020

Conversation

luhan2017
Copy link
Contributor

@luhan2017 luhan2017 commented Mar 11, 2020

Description

In this PR, I updated the bot project and enable composer to connect to a remote skill.
Note: A remote skill right now could not be a normal skill, It should have the ability to send and handle EndOfConversation type of Activity. Refer to https://github.com/microsoft/botbuilder-dotnet/tree/master/FunctionalTests/Skills/SimpleBotToBot/EchoSkillBot to create a remote skill.

How to connect to a remote skill:

Step1: configure settings. to call a remote skill, the bot must be registered with a MicrosoftAppID and MicrosoftPassword, and also SkillHostEndpoint, which is the skill endpoint of the current bot.

"MicrosoftAppPassword": "",
"MicrosoftAppId": "",
"SkillHostEndpoint": "http://localhost:3978/api/skills/" // http://localhost:3978 is the endpoint of the caller not callee.

Step2: add SkillDialog in the bot, for example:
{
"$kind": "Microsoft.SkillDialog",
"skillAppId": "3083d5b8-a3b6-4d50-82c7-af10aa96b20c", // the remote skill MicrosoftAppId
"skillEndpoint": "http://localhost:1205/api/messages", // the remote skill endpoint
"activity": "Hi"
}

Note: step2 can be added in Composer UX after the UX part is ready.

Step3: Click StartBot and Test in Emulator.

This PR is only to enable Composer to call a remote skill. It doesn't include creating a "remote skill" using composer.

Task Item

fixes #696

Screenshots

image

@github-actions
Copy link

Coverage Status

Coverage remained the same at 40.713% when pulling 6d7ecb5 on luhan/skill into bd5402b on master.

@cwhitten
Copy link
Member

@luhan2017 can we introduce the AdaptiveSkillDialog component schema in this PR as well?

@cwhitten cwhitten merged commit ab052fc into master Mar 16, 2020
@cwhitten cwhitten deleted the luhan/skill branch March 16, 2020 16:11
@cwhitten cwhitten mentioned this pull request Mar 16, 2020
@a-b-r-o-w-n a-b-r-o-w-n mentioned this pull request Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants