botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Cortana] Cannot invoke skill in Cortana after publishing bot?

Open hpksp opened this issue 8 years ago • 18 comments

Bot Info

  • SDK Platform: .NET Bot Builder
  • SDK Version: 3.12.2.4
  • Active Channels: Cortana
  • Deployment Environment: Azure App Service/Local

Issue Description

I have two main issues.

  1. Cortana skill published (to self) is not listed under cortana->notebook->skills. therefore cannot invoke the skill.
  2. Cannot change the display name and invocation name in the azure portal. Possible to change them through the knowledge store, but doesn't seem to get replicated into azure portal.

Steps taken to publishing bot to cortana

  1. created bot channels registration account
  2. added url created with ngrok to the message endpoint (local testing)
  3. enabled cortana channel for bot 3.1 clicked the button under Discovery and Management, which took me to the knowledge store 3.2 created a company in knowledge store 3.3 came back to azure portal and refreshed the cortana channel config page 3.4 clicked "Register" button under Discovery and Management 3.5 Button caption "Register" changed to "Manage" once the registration completed 3.6 Botlet with the bot account name got created in the knowledge store
  4. tried to invoke the skill with created invocation name. didn't work and not even listed in the notebook
  5. changed the skill name and invocation name in the knowledge store and re-published. didn't work
  6. tried removing everything in the knowledge store and azure portal and recreating them. still no luck

Expected Behavior

Should be able to invoke cortana skill in windows 10

image

image

image

hpksp avatar Jan 04 '18 05:01 hpksp

I am experiencing the exact same problem but so far no solution. I have an open query on stack overflow as well. I have gone through the exact same steps as yourself. However, I have found that i can change the Invocation name by changing the Display name field in Azure portal. Everything works in the Test Chat Client but Cortana still does not recognize the invocation name.

yogiderek avatar Jan 04 '18 09:01 yogiderek

@yogiderek I changed the field under bot channels registration -> settings -> display name field. thanks for the tip :) however, the skill name in knowledge store is still same as the bot handle name & still not working in cortana. On a separate note even my skype channel stopped working. Eagerly waiting things to be sorted asap.

hpksp avatar Jan 04 '18 15:01 hpksp

@yogiderek what does it say in knowledge store under your organization -> overview -> items? mine says "1 botlets total, 0 published"

hpksp avatar Jan 04 '18 15:01 hpksp

I have the same as you. My Stack overflow question was just answered and someone has said "I find that if I’m an administrator on the subscription, the Invocation name option is editable" see https://stackoverflow.com/questions/48062332/cortana-skills-bot-invocation-name-not-being-discovered-after-publishing?noredirect=1#comment83121013_48062332 However since I created the account with my own card i thought i would automatically be an administrator to my bots. Not at my own pc just now but will try this later if i can find out how to check and change my roles within Azure.

yogiderek avatar Jan 04 '18 15:01 yogiderek

I checked out my roles which was found under Cost Management + Billing - Subscriptions -> My subscription -> Access control (IAM). It says "owner, service administrator". a tool-tip next to the owner says "Lets you manage everything, including access to resources".

hpksp avatar Jan 04 '18 15:01 hpksp

I also went to Azure Active Directory -> Users and groups -> All users -> My username -> Directory role. And it says I am a Global Administrator.

hpksp avatar Jan 04 '18 15:01 hpksp

I checked and again I have the same settings in both your comments above.

yogiderek avatar Jan 04 '18 20:01 yogiderek

Is the bot registered on azure (or dev.botframework.com if not migrated) with the same email that you are using cortana with?

JasonSowers avatar Jan 04 '18 20:01 JasonSowers

My bot was registered on Azure, not migrated from dev.botframework.com. In My Bots on dev.botframework.com/bots the Migration status is blank - no button is visible to do the migration. I only have one .hotmail.co.uk email address and if i click the Cortana Notebook > About me, it shows my email address.

yogiderek avatar Jan 04 '18 21:01 yogiderek

Are you outside the US? That is probably the problem.

From Cortana Skills FAQ :

What markets are supported and what is the timeline?+

Currently, Cortana Skills supports only the en-US market. LUIS supports a wider range of locales, and the Cortana skills team is certainly planning to add support for more locales in the near future. For a list of languages that LUIS supports, see LUIS Supported Languages.

Why is Cortana Skills Kit only available in limited markets?

We want to ensure the Cortana Skills Kit is available at high quality, with natural language support. We are working on making the Cortana Skills Kit available in more markets over time, and will announce additional markets as they become available.

JasonSowers avatar Jan 04 '18 21:01 JasonSowers

Scotland in the UK. Do you know when the UK will be supported? I am not using LUIS in my design just regex. Can I test what you said by changing the locale/language on my laptop to en-US to make cortana think i am in the US or is it more involved than that?

yogiderek avatar Jan 04 '18 21:01 yogiderek

I apologize but I do not have answers to either of your questions. Your best bet is to try to reach out to Cortana support to get those answers.

JasonSowers avatar Jan 04 '18 21:01 JasonSowers

Thanks for your help, I changed my locale to the US and I can now use Cortana to talk to my bot. However one of my adaptive cards is not being displayed whereas it does in the emulators. Something else to investigate. Thanks again.

yogiderek avatar Jan 04 '18 23:01 yogiderek

Cortana does not fully support adaptive cards yet. Not sure how far off that is on the Cortana road map. more info on supported channels can be found here

JasonSowers avatar Jan 04 '18 23:01 JasonSowers

My account was created in azure portal and my laptop locale is already set to the US. @yogiderek did you change the locale only in the OS?

hpksp avatar Jan 05 '18 00:01 hpksp

@hpksp I changed the Country to United States in the Region and Language Settings page and after refreshing Cortana Notebook everything worked. She has problems with my Scottish accent but I am getting there. Unfortunately I will have to wait until the Cortana Skills reaches the UK so I think In the meantime I will go ahead and develop the same app for Alexa etc.

yogiderek avatar Jan 05 '18 10:01 yogiderek

@yogiderek mine started working again. but group publish is not working properly. another thing that I noticed was even though the skill is working, the skill is not listed under notebook skills. I think because of that cortana is having a hard time recognizing uncommon invocation names. also i enabled oauth2 authentication flow with my custom IDP provider for cortana..... Anyways good luck with Alexa development!! :)

hpksp avatar Jan 05 '18 14:01 hpksp

In Cortana It need to typed as Ask Invocation name Ex: Ask testBot

Group : Provide Group access URL, to users to click It will prompt to approve the App Once the App approved by users, it can be acessed by respective team member added in list

ravichandrav8 avatar Jun 29 '18 03:06 ravichandrav8