Automated AI Outreach Layer for AgriTech
The AgriTech SME was facing a bottleneck in customer engagement. Managing high-intent leads manually was leading to missed opportunities, and increasing headcount wasn't a scalable solution. They needed a way to personalize outreach without spending hours drafting individual messages.
I developed a complete CRUD dashboard built on Python Flask and SQLite. The system pulls customer data, utilizes OpenAI's GPT-4o-mini to segment customers based on their interaction history, and automatically generates highly personalized messaging templates.
By applying Object-Oriented Programming (OOP) principles, the backend is modular and easily scalable for future API integrations.
import openai
from flask import Flask, render_template, request
app = Flask("WhatsApp_AI")
def generate_outreach(customer_data):
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[
{"role": "system", "content": "You are an AgriTech sales assistant."},
{"role": "user", "content": f"Draft an outreach for {customer_data}"}
]
)
return response.choices[0].message.content
Oct 2025 - Feb 2026