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

[.Net SDK, Cortana] Bot not responding on Cortana channel?

Open omairzia opened this issue 9 years ago • 11 comments

I have build a Chatbot that is working fine as Web Chat but when I configured it on Cortana Channel nothing is happening. I am having the following error every time when I invoke my skill set from Cortana.

"Cortana has run into a problem. Please try again later." OR "Connection to skill has failed. Channel Response: InternalServerError, Request Id: 622A41DF0CE249CE903F21C153501D8C".

I appreciate if someone can help me, How can I resolve this issue or debug it.

omairzia avatar Nov 09 '17 06:11 omairzia

Hi @omairzia,

What SDK have you used to create your bot? Please, provide more information so we can better assist you.

Regards, Francisco

FranciscoPonceGomez avatar Nov 09 '17 17:11 FranciscoPonceGomez

Thanks @FranciscoPonceGomez I have used the Microsoft BOT Framework to create this BOT with LUIS to recognize the intents. Interestingly my BOT is working absolutely fine in Web Chat.

omairzia avatar Nov 10 '17 06:11 omairzia

I have the similar problem as well. I guess you might need to handle that cortana triggered your bot without any message.

andy51002000 avatar Nov 13 '17 13:11 andy51002000

Are you using C# or Node?

JasonSowers avatar Nov 14 '17 19:11 JasonSowers

I am using C#

omairzia avatar Nov 17 '17 11:11 omairzia

@omairzia can you please post your code so we can take a look?

JasonSowers avatar Nov 17 '17 18:11 JasonSowers

I am showing the four options in the beginning of BOT by using the following Code:

PromptDialog.Choice<string>(
                    context: context,
                    resume: SelectedOption,
                    options: RoutingOption,
                    prompt: " ",
                    retry: NoneMessages.SorryOptionMessage,
                    attempts: 3);

The resume function "SelectedOption" is implemented as follows:

private async Task SelectedOption(IDialogContext context, IAwaitable<string> result)
        {
            string mess = ((Activity)context.Activity).Text;

                string selectedOption = await result;
                switch (selectedOption)
                {
                    case "Appointment":
                        context.Call(appDialog, ResumeAfterAppointmentDialog);
                        break;
                    case "Personal Loan":
                        await CallLoanDialog(context, selectedOption);
                        break;
                    case "FAQ":
                        await CalLoanFAQDialog(context, selectedOption);
                        break;
                    case "Currency FX":
                        await CalCurrencyDialog(context, selectedOption);
                        break;
                    default:
                        await InvalidMessage(context, mess);
                        break;
                }
            }
 }

What I have observed the four options are displayed on CORTANA but once I select one of them the resume method is not executing.

omairzia avatar Nov 22 '17 07:11 omairzia

I had the same issue but was able to resolve it by removing the skill from https://my.knowledge.store, remove the channel from my bot. After re-adding the channel and re-publishing the skill it worked. image

MathieuDiepman avatar Jan 27 '18 11:01 MathieuDiepman

I'm also faced the same issue. I'm using nodejs. After downgrade the botbuilder npm package to ("botbuilder": "3.12.0"). Its working fine. "botbuilder": "^3.12.0", changed to "botbuilder": "3.12.0" in my package.json file. ^ means automatically update when new release or updated will come

sganeshkumar avatar May 11 '18 09:05 sganeshkumar

I recently ran into this issue after configuring OAuth for a cortana skill and the only debug information I get is

Connection to skill has failed. Channel Response: InternalServerError, Request Id: AN_ID_STRING

Is there no way to debug this? Recreating the channel did not help.

baishali-ghosh avatar Jun 10 '18 20:06 baishali-ghosh

Thank you for opening an issue against the Bot Framework SDK v3. As part of the Bot Framework v4 release, we’ve moved all v3 work to a new repo located at https://github.com/microsoft/botbuilder-v3. We will continue to support and offer maintenance updates to v3 via this new repo.

From now on, https://github.com/microsoft/botbuilder repo will be used as hub, with pointers to all the different SDK languages, tools and samples repos.

As part of this restructuring, we are closing all tickets in this repo.

For defects or feature requests, please create a new issue in the new Bot Framework v3 repo found here: https://github.com/microsoft/botbuilder-v3/issues

For Azure Bot Service Channel specific defects or feature requests (e.g. Facebook, Twilio, Teams, Slack, etc.), please create a new issue in the new Bot Framework Channel repo found here: https://github.com/microsoft/botframework-services/issues

For product behavior, how-to, or general understanding questions, please use Stackoverflow. https://stackoverflow.com/search?q=bot+framework

Thank you.

The Bot Framework Team

sgellock avatar Oct 02 '18 01:10 sgellock