Skip to content

edwinmugendi/HumMapBot

Repository files navigation

HumMapBot

Humanitarian Response Knowledge

HumMapBot is a Telegram Bot that humanitarian workers can ask question and get answers on potential solution and tools that they could use.

To test the bot, install instagram and go to @HumMapBot

It uses API.AI for Natural Language Processing and then the data is retrieved from https://airtable.com/tblUipcy7ixUIEjYF

HumMapBot is built using Laravel 4.2 PHP framework.

It integrates to 3 API's:

  1. Telegram Bot API
  2. API.AI API
  3. Airtable API

How to setup HumMapBot.

  1. Clone the repo
  2. Run "composer install" inthe command line.
  3. Create a database and update this file /app/config/prod/database.php accordingly
    Also update this file /bootstrap/start.php with the correct environment
  4. Open /app/config/SETUP.php file and run the commands in this file in your command line.
  5. If you are using your own bot, API.API, or API.AI, you'll need to change the API keys in this file /app/config/thirdParty.php to yours.
  6. I've made a change to the Airtable API library to support getting single record. Kindly run this line to overwrite the libraries Airtable file
    php rm vendor/armetiz/airtable-php/src/Airtable.php && cp workbench/lava/surveys/src/controllers/Airtable.php vendor/armetiz/airtable-php/src/Airtable.php

Kindly contact me on edwinmugendi@gmail.com for any assistance.

About

Humanitarian Response Knowledge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published