Giter VIP home page Giter VIP logo

chatbot-tutorial's Introduction

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 [email protected]: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.

chatbot-tutorial's People

Contributors

tschellenbach avatar

Stargazers

Shivam Purohit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.