Awesome
teams-langchain-js ✨
Demo showing how to leverage LangChainJS in Bot Framework based bots for Teams / Outlook / Slack, etc.
Prerequisites
-
Node.js version 10.14.1 or higher
# determine node version node --version
To run the bot
-
Make a copy of
.env.example
to.env
, get your OpenAI key from https://beta.openai.com/account/api-keys and paste it in the.env
file. -
Install modules
npm install
-
Start the bot
npm start
Bing SERP API
Signup for Bing API key here. Paste it's value in the .env
file.
BingApiKey=<paste_your_key_here>
Testing the bot using Bot Framework Emulator
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 version 4.9.0 or greater from here
Connect to the bot using Bot Framework Emulator
- Launch Bot Framework Emulator
- File -> Open Bot
- Enter a Bot URL of
http://localhost:3978/api/messages
Deploy the bot to Azure
To learn more about deploying a bot to Azure, see Deploy your bot to Azure for a complete list of deployment instructions.