{"id":18523567,"url":"https://github.com/joduplessis/geronimo","last_synced_at":"2026-04-20T10:32:19.075Z","repository":{"id":134969829,"uuid":"122471102","full_name":"joduplessis/geronimo","owner":"joduplessis","description":"Geronimo is a NodeJS Facebook Messenger app that translates audio to text using Google Speech \u0026 CloudConvert, and then searches a SQL Server database using the transcribed audio. 🔈","archived":false,"fork":false,"pushed_at":"2018-03-15T09:08:37.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T18:54:08.780Z","etag":null,"topics":["cloudconvert","facebook","google-speech","messenger","nodejs","nodejs-facebook-messenger","sql-server","translates-audio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joduplessis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-22T11:43:03.000Z","updated_at":"2023-10-25T18:09:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"45a40591-6d49-4eb3-8be8-8d37015ee467","html_url":"https://github.com/joduplessis/geronimo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joduplessis/geronimo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fgeronimo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fgeronimo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fgeronimo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fgeronimo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joduplessis","download_url":"https://codeload.github.com/joduplessis/geronimo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joduplessis%2Fgeronimo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32043015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudconvert","facebook","google-speech","messenger","nodejs","nodejs-facebook-messenger","sql-server","translates-audio"],"created_at":"2024-11-06T17:36:16.263Z","updated_at":"2026-04-20T10:32:19.059Z","avatar_url":"https://github.com/joduplessis.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Geronimo\n\nGeronimo is a NodeJS Facebook Messenger app that translates audio to text using Google Speech \u0026 CloudConvert, and then searches a SQL Server database using the transcribed audio. It also serves as a framework for building more general Messenger apps that interact with attachments \u0026 3rd party services.\n\n## Installation\n\nSimply clone the repo, run `yarn` and setup the `helpers/constants` file. You'll need to create the appropriate GCP/CC apps for being able to access any audio transcription services. [Click here](https://cloud.google.com/speech/) and [here](https://cloudconvert.com/) learn how to do that.\n\n## Running\n\nSimply run `node index.js` or use `forever` to start the service.\n\n\n## Overview\n\nSome familiarity with Facebook's Messenger Platform is assumed. For more information about setting up web hooks, please [see here](https://developers.facebook.com/docs/messenger-platform/webhook).\n\nWith every message a user sends, Facebook will send this app an event containing the `PSID` (page scoped ID) for the user. The event will also contain any other action the user performed, including  text message replies, post-back actions (buttons inside messages \u0026 menus) \u0026 quick link presses (buttons at the bottom). We process these on the `index.js` to decide how to proceed for the next message. We can use this `PSID` to message the user the response after processing.\n\n## Architecture\n\nAll images are kept in the `/public` folder. These are available publicly for the user to view inside messages.\n\nAll other code are separated into files inside `/helpers`. This will review the use of each file that is important to the logic of the app.\n\n### Actions\n\nOnce we receive an event from the user we decide where in the conversation it is. Facebook generally delivers data using their `payload` property when making calls to our the service. We process this in `index.js` with some logic statements. Once it is established where their response fits in, we call an `action` from `/helpers/actions.js`. The `actions` file contains the first step in retrieving data from the database, signalling to the user that the bot is typing and sending a reply back to the user using other helper functions. The `actions` perform the core \"action\" of responding to the user. Think of it as a `controller` in an MVC application.\n\n### Messenger\n\nThe `messenger.js` file contains functions for interacting with Facebook's Messenger API. It is used for sending messages back to the user (using their `PSID`) \u0026 setting up bot thread details like the persistent menu.\n\n### Responses\n\nEver message back to Facebook needs to be well formatted. When sending a carousel, the message object needs to be structured in a certain manner. All response objects are stored in the `responses.js` file.\n\n### High level overview\n\nAt a very high level the flow goes `action \u0026 processing -\u003e right response object -\u003e use messenger to send to user`\n\n## Caveats\n\nThe project was adapted from a MongoDB backbone to a SQL Server one. It also assumes some familiarity of the Facebook Messenger architecture for the setup of the webhooks, apps, etc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoduplessis%2Fgeronimo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoduplessis%2Fgeronimo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoduplessis%2Fgeronimo/lists"}