Data Sync & ETL
Segment donors and draft personalized outreach with Google Sheets and Ollama
On a schedule, it moves and syncs data with Ollama using Ollama, Google Sheets.
What it does
## Donor Segmentation & Personalized Communication ### How it works 1. Ingests a donor dataset from Google Sheet (name, contact info, donation amounts/dates, communication history, event attendance). 2. Validates the data and flags malformed rows. 3. Scores RFM — Recency, Frequency, Monetary — to bucket donors into segments (e.g., Champions, Loyal, At-Risk, Lapsed, New/First-Time). 4. Layers behavioral segmentation on top — engagement patterns like event-driven vs. email-only donors, campaign responsiveness, channel preference. 5. Maps each segment to a communication strategy — tone, ask type, channel, cadence. 6. Drafts personalized message for each donor using LLM (Llama3.1). 7. Outputs drafts to initial donor Google Sheet under a new column called Personalized Message for review. A human approves and sends, the workflow doesn't send on its own. ### How to Set up * n8n (self-hosted via Docker, or the n8n desktop app) * Ollama running a local instruction-tuned model (developed against Llama 3.1 8B; swap in whatever fits your hardware) * A real or syhtnethic donor dataset in CSV format matching the schema specified in this GitHub repo (https://github.com/TienNguyen93/donor-retention-workflow)
The steps
- Merge Draft With Donor Data
- Basic LLM Chain2
- Monthly Schedule Trigger
- Get row(s) in sheet
- Validate & Clean
- IF Valid / Invalid Rows
- When clicking ‘Execute workflow’
- Store Invalid Rows
- Behavioral Segmentation
- RFM Segmentation
- Build Prompt
- Llama3.1
- Validate LLM Output
- Fallback Template
17 steps in total.
Similar automations
Data Sync & ETLSegment donors and generate personalized messages with Google Sheets and Ollama17 stepsReports, Analytics & DashboardsTrack an Event in Segment3 stepsMonitoring, Ops & IncidentsTrack an Event in Segment2 stepsData Sync & ETLSync warehouse customer data from Postgres to HubSpot and Segment28 steps