{"id":49691652,"url":"https://github.com/scottgilmoredev/moego-onboarding","last_synced_at":"2026-05-07T17:03:04.018Z","repository":{"id":354761361,"uuid":"1180922495","full_name":"scottgilmoredev/moego-onboarding","owner":"scottgilmoredev","description":"Automates MoeGo client onboarding by generating a personalized token-based landing page for each new client and delivering the link to the business owner via email.","archived":false,"fork":false,"pushed_at":"2026-04-29T22:53:45.000Z","size":1158,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T00:34:17.938Z","etag":null,"topics":["automation","bitly","clasp","eslint","gmail","google-apps-script","google-forms","moegoe","onboarding","typescript","vitest"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottgilmoredev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-13T14:57:31.000Z","updated_at":"2026-04-29T22:53:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/scottgilmoredev/moego-onboarding","commit_stats":null,"previous_names":["scottgilmoredev/moego-onboarding"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/scottgilmoredev/moego-onboarding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgilmoredev%2Fmoego-onboarding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgilmoredev%2Fmoego-onboarding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgilmoredev%2Fmoego-onboarding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgilmoredev%2Fmoego-onboarding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgilmoredev","download_url":"https://codeload.github.com/scottgilmoredev/moego-onboarding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgilmoredev%2Fmoego-onboarding/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32747354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["automation","bitly","clasp","eslint","gmail","google-apps-script","google-forms","moegoe","onboarding","typescript","vitest"],"created_at":"2026-05-07T17:03:02.715Z","updated_at":"2026-05-07T17:03:04.013Z","avatar_url":"https://github.com/scottgilmoredev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moego-onboarding\n\n[![CI](https://github.com/scottgilmoredev/moego-onboarding/actions/workflows/ci.yml/badge.svg)](https://github.com/scottgilmoredev/moego-onboarding/actions/workflows/ci.yml)\n\n## Overview\n\nAutomates the client onboarding process for MoeGo-based pet service businesses. When a new appointment is created in MoeGo, this tool retrieves the client's unique agreement signing links and card-on-file link, generates a personalized token-based landing page URL, and emails it to the business owner — reducing manual link generation and delivery to a single step.\n\n## Features\n\n- Listens for `APPOINTMENT_CREATED` webhook events from MoeGo\n- Detects first-time clients via the MoeGo Appointments API — skips returning clients automatically\n- Retrieves per-client agreement sign links and card-on-file link via MoeGo API\n- Generates a unique, expiring token URL pointing to a personalized client landing page\n- Shortens the token URL via Short.io and emails it to the business owner for delivery\n- Landing page renders the client's onboarding steps — agreements, card on file, and vaccination record upload\n- Vaccination records uploaded directly to Google Drive, prefixed with the client's name\n- Graceful failure handling — partial failures email the business owner with recovery details and the customer's MoeGo ID\n\n## Tech Stack\n\n- **Runtime:** Node.js \u003e= 20\n- **Language:** TypeScript\n- **Testing:** Vitest\n- **Apps Script:** Google Apps Script via Clasp\n- **Linting:** ESLint (Airbnb config)\n- **CI/CD:** GitHub Actions\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js \u003e= 20\n- pnpm \u003e= 9\n- A Google account with Apps Script access and the Apps Script API enabled\n- Clasp installed and configured — see [Clasp Setup](docs/clasp-setup.md)\n- A MoeGo account with API access and a Customer Success Manager-issued API key\n- A Google Sheet and Google Drive folder — see [Sheet \u0026 Drive Setup](docs/sheet-setup.md)\n- A Short.io account with an API key and custom domain — see [Short.io Setup](docs/short-io-setup.md)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/scottgilmoredev/moego-onboarding.git\n   cd moego-onboarding\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   pnpm install\n   ```\n\n3. Set up Clasp — see [Clasp Setup](docs/clasp-setup.md)\n\n### Running Tests\n\n```bash\npnpm run test\n```\n\n### Development Build\n\n```bash\npnpm run build\n```\n\n## Project Structure\n\n```\nsrc/\n ┣ webhook/       # MoeGo webhook receiver and validation\n ┣ moego/         # MoeGo API client (agreements, appointments, customer data)\n ┣ token/         # Per-client token generation, storage, and expiry\n ┣ sheet/         # Google Sheets client for client row writes\n ┣ shortener/     # Short.io URL shortening\n ┣ email/         # Email delivery to business owner\n ┣ types/         # Shared TypeScript types\n ┣ utils/         # Shared utilities and helpers\n ┣ templates/     # HTML templates for landing page and error page\n ┣ server.ts      # Apps Script web app entrypoint (doPost, doGet, uploadVaccinationRecord)\n```\n\n## CI/CD\n\n- GitHub Actions runs linting, tests, and build on every push and pull request\n\n## Roadmap\n\nSee [Milestones](docs/milestones.md) for planned enhancements and future development.\n\n## Documentation\n\n- [Development Plan](docs/development-plan.md)\n- [Milestones](docs/milestones.md)\n- [Clasp Setup](docs/clasp-setup.md)\n- [Sheet \u0026 Drive Setup](docs/sheet-setup.md)\n- [Short.io Setup](docs/short-io-setup.md)\n- [E2E Testing Guide](docs/e2e-testing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgilmoredev%2Fmoego-onboarding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgilmoredev%2Fmoego-onboarding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgilmoredev%2Fmoego-onboarding/lists"}