fczuardi / calamarcopollo

Save The Chicken Foundation
Other
1 stars 3 forks source link

CalamarcoPollo

Save The Chicken Foundation

npm version

About

CalamarcoPollo project is a chatbot for consulting intercity bus schedules in Brazil using Brazilian Portuguese natural language queries and conversations.

This project is also a real-world app used to improve and test the, still very alpha CalaMars framework.

Demo

If you have Telegram installed, add the @calamarcopollo_demo_bot to your contacts and try to talk to it.

If you have Facebook, use this fb messenger link, or if you use the mobile Facebook Messenger app, scan the image below:

messenger_code_1782353951999287 1

For inspiration of what the pollo is capable of, try one of the sample statements.

Install

mkdir mybot
cd mybot
npm install calamarcopollo@latest
cp node_modules/calamarcopollo/.env-sample .env
# fill-in the blanks
source .env
`npm bin`/pollo

Custom replies

In the .env file, you can setup a path with a javascript module to override any of the default reply strings, this custom path is stored in the CUSTOM_REPLIES_PATH environment var.

You can copy the replies/custom.js file to use it as basis for your replacements:

cp node_modules/calamarcopollo/replies/custom.js ./custom-replies.js
# edit .env file to add the absolute path to custom-replies.js file as value
# for the CUSTOM_REPLIES_PATH variable
source .env

License AGPL v3.0

Copyright (c) 2016 Fabricio C Zuardi

This software is distributed under the GNU AFFERO GENERAL PUBLIC LICENSE version 3.