📖 Documentation
Setup
Please refer to the documentation to setup credentials of your app:
In order for the system to work properly, you will need to set up the following files:
.env
: Following the.env.example
modelAPPLE_PRIVATE_KEY.p8
: This file contains the apple private key which is supplied with an ID to be inserted in the .env file. This key must have the necessary permissions to retrieve customer reviews AND send a reply (admin permission - 2023).GOOGLE_CREDS.json
: This json file is supplied by GCP when your service account is created. Remember to activate the necessary permissions in the GooglePlayConsole > Setup > API access panel.prompt.txt
: This file will contain the basic prompt that will be used to generate a response to reviews. Remember to request a maximum 350-character response, or you won't be able to send any reply to the blinds.
You'll find the template in the src/gpt/getReviewResponse
file.
You'll find all template information here.
Launch
Start by building the project with docker:
docker build . --tag autoreview
Next, start the projet with the env file:
docker run --rm --env-file .env autoreview
Free to add -d
flag for continuous production.
Infos
By default, the bot sends a list of all reviews at 23:58. Feel free to modify this directly in src/index.ts
.
You can decide to modify the maximum limit of reviews that are get in order to optimize requests according to your influence.
You'll find this in the getReviews
queries available in the Google
and Apple
classes in src/stores
.