The Wayback Machine - http://web.archive.org/web/20201026073137/https://github.com/GetStream/chatbot-tutorial
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

chatbot-tutorial

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/)

Convenient links:

Install

If you don't feel like doing the full tutorial you can get this repo up and running by following these instructions

Account setup

Ensure you have an account for Stream and LUIS.

Disable auth & permissions

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

git clone git@github.com:GetStream/chatbot-tutorial.git
cd chatbot-tutorial

Support Chat React

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

Support Agent React Chat Dashboard

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

Serveless Chatbot

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.

About

Customer Support Chatbot Tutorial

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.