Skip to content

Latest commit

 

History

History
 
 

README.md

basic-bot

Bot Framework v4 basic bot sample

This samples shows how to:

  • Use LUIS to implement core AI capabilities
  • Implement a multi-turn conversation using Dialogs
  • Handle user interruptions for such things as Help or Cancel
  • Prompt for and validate requests for information from the user

To try this sample

  • Clone the repository
    git clone https://github.com/microsoft/botbuilder-samples.git
  • In a terminal, navigate to samples/javascript_nodejs/13.basic-bot
    cd samples/javascript_nodejs/13.basic-bot
  • Install modules
    npm install
  • Create a LUIS application
  • Run the sample
    npm start

Testing the bot using Bot Framework Emulator v4

Microsoft Bot Framework Emulator is a desktop application that allows bot developers to test and debug their bots on localhost or running remotely through a tunnel.

  • Install the Bot Framework emulator from here

Connect to bot using Bot Framework Emulator v4

  • Launch Bot Framework Emulator
  • File -> Open Bot Configuration and navigate to samples/javascript_nodejs/13.basic-bot folder
  • Select basic-bot.bot file

Deploy this bot to Azure

See here to learn more about deploying this bot to Azure and using the CLI tools to build the LUIS models this bot depends on.

Further Reading

Additional Resources

Configuring the bot

Update .env with the appropriate keys botFilePath and botFileSecret.

  • For Azure Bot Service bots, you can find the botFileSecret under application settings.
  • If you use MSBot CLI to encrypt your bot file, the botFileSecret will be written out to the console window.
  • If you used Bot Framework Emulator V4 to encrypt your bot file, the secret key will be available in bot settings.

Further reading