A collection of bots that can be connected to Check API. They are implemented as AWS Lambda functions.
This bot is at youtube.js. It listens to the create_project_media event and, if it's a YouTube URL, it does the following:
- Extracts thumbnails and runs reverse image search over each of them
- Extracts upload date and creation data
- Extracts geographic information
All those results are sent to Check as annotations.
This bot is at exif.js. It does the following:
- Listens to the
create_project_mediaevent. If it's an uploaded image, it extracts EXIF data and posts it to Check as a comment, with a link for the full report. - Listens to the
create_annotation_task_geolocationandupdate_annotation_task_geolocation. If it's an uploaded image, it extracts GPS data, geocodes it and posts the result as a task response to any unanswered geolocation task.
- Listens to event
create_project_mediaevents and looks up similar content in Health Desk articles indexed in Alegre.
See details in ./health-desk-bot/README.md
- Copy
config.js.exampletoconfig.jsand define your configurations - Run
npm installto install the dependencies on your first run or if you change dependencies. - Run
npm run build - Create an AWS Lambda function with an API gateway and upload the ZIP file from the previous step
- Define the correct handler (e.g.,
youtube.handlerorexif.handler) - Copy the API gateway URL as the Request URL of the Check API bot
- Copy
config.js.exampletoconfig.jsand define your local configurations withcheckApiUrl: http://localhost:3000. - Start Check locally
docker-compose -f docker-compose.yml up bots - The
check-botscontainer should startserver.json port8586 - On the Check side, the bot request URL should be set to
http://bots:8586/<bot-slug>('exif', 'youtube' or 'health-desk').