This project builds RapidPro flows for the Malaysia ParentText chatbot. It takes input from specific Google Sheets spreadsheets and produces RapidPro flow JSON files that are ready to upload to any RapidPro server.
The pipeline is intended to be run by triggering a Github Actions workflow or by running commands on the command line.
These steps need to be followed if you want to run the pipeline from the command line or develop the pipeline further.
python -m venv .venv
source .venv/bin/activate
.venv/Scripts/activate
pip install --upgrade pip
pip install -r requirements.txt
npm install
credentials.json
file in the same directory as the cloned repo.python -m parenttext_pipeline.cli
script produce_flows.py contains the full process to produce RapidPro flows from the relevant Google Sheets. It takes a number of inputs from the 'config.py' file so any adjustments should be made in that file. That file contains information on what the various inputs mean