An open API service indexing awesome lists of open source software.

https://github.com/shivkanthb/swhacks-wit

👽 WIT demo for SWHacks
https://github.com/shivkanthb/swhacks-wit

conversational-agents nlp node witai

Last synced: about 2 months ago
JSON representation

👽 WIT demo for SWHacks

Awesome Lists containing this project

README

        

# 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=
```
5 To run the messenger demo, do
```
node messenger-pizza.js
```
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.

### 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=
```
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
3. WIT quickstart - https://wit.ai/docs/quickstart

Reach me [@shivkanthb](http://twitter.com/shivkanthb)