Skip to content

shivkanthb/swhacks-wit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swhacks-wit

WIT demo for SWHacks

Interactive (terminal) & messenger demos on nodejs & python.

Node

Steps:

1 Download/clone the repo 2 Install the modules

npm install

3 To run the interactive demo, do

node pizza.js

4 Create a .env file and paste your facebook page access token. (Only needed for the facebook demo)

PAGE_ACCESS_TOKEN=<your-page-token>

5 To run the messenger demo, do

node messenger-pizza.js 
  1. Replace the WIT access token inside pizza.js & messenger-pizza.js with yours.

You can use mine to see how it works though. If you want to customize your wit, use yours to reflect changes.

Python

Steps:

1 Go into your virtual env 2 Install the packages

pip install wit
pip install requests
pip install bottle

3 To run the interactive demo, do

python pizza.py

4 Create a .env file and paste your facebook page access token. (Only needed for the facebook demo)

PAGE_ACCESS_TOKEN=<your-page-token>

5 To run the messenger demo, do

python messenger-pizza.py 

6 Replace the WIT access token inside pizza.js & messenger-pizza.js with yours.

You can use mine to see how it works though. If you want to customize your wit, use yours to reflect changes.

References/links

  1. The wit story used for this demo - https://wit.ai/shivkanthb/pizza-test/stories
  2. Node Wit SDK - https://github.com/wit-ai/node-wit
  3. Python Wit SDK - https://github.com/wit-ai/pywit
  4. WIT quickstart - https://wit.ai/docs/quickstart

Reach me @shivkanthb

Releases

No releases published

Packages

No packages published