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
- Host: GitHub
- URL: https://github.com/shivkanthb/swhacks-wit
- Owner: shivkanthb
- Created: 2017-03-10T17:51:49.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-13T15:23:10.000Z (about 8 years ago)
- Last Synced: 2025-01-26T17:33:43.449Z (4 months ago)
- Topics: conversational-agents, nlp, node, witai
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# swhacks-wit
WIT demo for SWHacksInteractive (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/quickstartReach me [@shivkanthb](http://twitter.com/shivkanthb)