Leaf Plant

Automated AI Outreach Layer for AgriTech

cd ../projects
demo_recording.mp4

The Problem

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.

The Solution

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.

Admin Dashboard

Core Logic Snippet

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

Tech Stack

Python Flask SQLite OpenAI API Bootstrap

Timeline

Oct 2025 - Feb 2026

Links

View Repo View Flow Chart