Botframework-sdk: Error: Dialog[*:/myDialogue] not found.

Created on 28 Dec 2016  路  2Comments  路  Source: microsoft/botframework-sdk

Hi. I keep getting the above dialogue not found error, even though I've defined the dialogue on the bot. In my default dialogue /, I invoked session.beginDialog('myDialogue'); Then I have the myDialogue defined on the bot as:

bot.dialog('myDialogue', [
    (session, args) => {
      session.send('some text');
      builder.Prompts.text(session, "what's your name?");
    },
    (session, results) => {
      if (results.response) {
        session.endDialogWithResult({ response: results.response});
      } else {
        session.endDialog(`I hear birds chirping. Let's move on.`);
      }
    }
]);

I'm using the UniversalBot and I haven't deployed it yet so I'm just using the emulator to locally test it.

const connector = new builder.ChatConnector({
    appId: process.env.MICROSOFT_APP_ID,
    appPassword: process.env.MICROSOFT_APP_PASSWORD
});

const bot = new builder.UniversalBot(connector);

botServer.post('/api/messages', connector.listen());

I'm confused why even though I've defined the dialogue on the bot, it's not working? any help would be appreciated.

All 2 comments

sorry! I figured it out. Looks like I had a slight bug on my end with the dialogue set up.

Do you mind sharing some details of what was the problem?

Was this page helpful?
0 / 5 - 0 ratings