playstore-review-responder
v0.1.0
Published
Open-source Google Play review responder with OpenAI-compatible AI endpoints
Maintainers
Readme
playstore-review-responder
Open-source CLI to auto-reply to Google Play reviews using any OpenAI-compatible AI endpoint.
What it does
- Fetches unreplied Google Play reviews
- Generates concise replies with your AI endpoint
- Uses the review text language directly (no metadata-based language guessing)
- Optionally posts replies to Google Play (
DRY_RUN=false) - Stores state and run reports in
data/
Quick start (automatic setup)
npx playstore-review-responder setupInteractive setup asks for:
- AI provider (OpenAI / OpenRouter / Custom)
- OpenAI-compatible
base_url,api_key,model - Google Play service account JSON path
- Support email
- Daily run hours + timezone
- Auto-fetch accessible apps from your Play account
Then it creates:
.env(fully populated)config/apps.json(auto-fetched apps or manual package)data/.install-cron.sh(optional cron installer)
Validate integration:
npx playstore-review-responder validatePreview unreplied reviews:
npx playstore-review-responder previewRun once:
npx playstore-review-responder runRun as daemon (startup + CRON_SCHEDULES):
npx playstore-review-responder daemonInstall system cron from generated script (optional):
bash ./.install-cron.shManual env example
If you prefer editing manually:
GOOGLE_PLAY_SERVICE_ACCOUNT_JSON=/absolute/path/to/google-play-service-account.json
OPENAI_API_KEY=your-key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
AI_PROVIDER=openai
DRY_RUN=true
CRON_SCHEDULES=0 09 * * *|0 21 * * *
TIMEZONE=Europe/Istanbul
RUN_ON_START=trueWhen you are ready for live replies, set DRY_RUN=false.
Local development
npm install
npm run setup
npm run validate
npm run run:onceCommands
setup: interactive auto setupinit: create starter files onlyvalidate: check AI endpoint and Google Play API accesspreview: fetch unreplied reviews onlyrun: generate and send replies (or dry-run)daemon: run continuously with schedule
Google Play API setup
- In Google Cloud Console, enable Google Play Android Developer API.
- Create a service account and download JSON key.
- In Play Console:
- Go to Users and permissions
- Invite the service account email
- Grant permissions for reviews/replies for target apps
- Put JSON path into
.envasGOOGLE_PLAY_SERVICE_ACCOUNT_JSON.
AI endpoint compatibility
Any endpoint that supports these OpenAI routes should work:
GET /models(validation)POST /chat/completions(reply generation)
Data files
data/reply-state.json: tracks replied review IDsdata/reports/YYYY-MM-DD.jsonl: per-run report records
License
MIT
