This chatbot tutorial teaches you how to build your own customer chat experience and chatbot. Read the full tutorial: [The Definitive Tutorial for Building Your Own Customer Support Chat & Serverless Chatbot] (https://getstream.io/blog/)
If you don't feel like doing the full tutorial you can get this repo up and running by following these instructions
Ensure you have an account for Stream and LUIS.
Disable auth and permission checks on your stream chat account. Head over the dashboard -> click your app -> click chat -> disable permissions & auth -> save
git clone [email protected]:GetStream/chatbot-tutorial.git
cd chatbot-tutorial
Create a file called .env.development, the full path is chatbot-tutorial/chat-frontend/.env.development with these settings
REACT_APP_STREAM_API_KEY=replacewithyourstreamapikey
Next run these steps
cd chat-frontend
yarn; yarn start
Create a file called .env.development, the full path is chatbot-tutorial/chat-agent-dashboard/.env.development with these settings
REACT_APP_STREAM_API_KEY=replacewithyourstreamapikey
Next run these steps
cd ..
cd chat-agent-dashboard
yarn; yarn start
Create a file called .env, the full path is chatbot-tutorial/serverless/.env and setup the environment variables:
STREAM_API_KEY=replacewithyourstreamapikey
STREAM_API_SECRET=secret
LUIS_APP_ID=appid
LUIS_SUBSCRIPTION_KEY=subscriptionkey
LUIS_REGION=westus
Next run these steps
cd ..
cd serverless
yarn
func start
Note that to actually deploy the serverless code you'll need to setup a function app, configure your Azure CLI and setup the above 5 environment variables for your function app (it's in the Azure dashboard). The Chatbot tutorial covers this in more detail.