Coder Social home page Coder Social logo

nfacha / playstore-open-ai-review-bot Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 1.0 16 KB

Automate replies to Google Play Store reviews with OpenAI's GPT-3.5-turbo-powered Python script that fetches recent app reviews and generates responses

License: GNU General Public License v3.0

Python 100.00%
ai android app-reviews automation chatgpt google-play-store openai review-reply

playstore-open-ai-review-bot's Introduction

Google Play Store Review Reply Bot

This repository contains a Python script that fetches the latest reviews (from the last week) from a specified Google Play Store app and replies to them using OpenAI's GPT-3.5-turbo.

Requirements

  • Python 3.x
  • Google API Python Client
  • OpenAI Python
  • PyYAML

Installation

  1. Clone this repository.

  2. Install the required Python packages:

pip install -r requirements.txt
  1. Configure the config.yaml file with your settings:

    • app_package_name: The package name of your Android app.
    • key_file: The path to the JSON file containing your Google API service account key.
    • openai_key: Your OpenAI API key.
    • dry_run: Set to True if you want to test the script without actually replying to the reviews.
    • pre_prompt: The pre-prompt text that will be sent to GPT-3.5-turbo before the user's review.
  2. Run the script:

   python main.py

Limitations

  1. The Google Play Developer API only returns reviews submitted within the last week.

Usage with a Service Account

To access the Google Play Developer API, a service account must be used. Make sure to configure the key_file setting in the config.yaml file with the path to your service account JSON key file.

You can create a service account for the Playstore API by going to the Setup > API Access menu of the playstore console

playstore-open-ai-review-bot's People

Contributors

nfacha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rosenpin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.