IBADAT ALI's Work | ContraWork by IBADAT ALIIBADAT ALI
AI Automation Engineer | n8n & AI Agents,bussiness workflows
Recently I completed an AI automation project for a client who was running payment operations through WhatsApp π¬
Here's how it worked before I got involved: customers would pay via Stripe, screenshot their receipt, and send it to a WhatsApp group. Someone on the team would open Stripe, manually search for that transaction, and type a reply in the chat. They had 50+ active groups. This was happening hundreds of times a day π
No system to catch fake receipts. No system to catch someone sending the same screenshot twice. Just humans, doing the same lookup over and over.
So I built a bot that sits inside every group and handles it automatically π€
When a payment screenshot comes in, it extracts the transaction data using OCR (Tesseract locally, Groq Vision or Gemini as fallback for low-quality images), checks it against a duplicate store so recycled receipts don't slip through, then hits the Stripe API to verify the payment is real. The primary match key is the customer's email from the WhatsApp caption not just the transaction ID, because that alone is too easy to fake. It replies
directly in the group with the verdict: β
verified, π¨ fraud flagged, or π duplicate.
Everything logs to Google Sheets. Anything suspicious fires a Telegram alert.
The whole thing runs as three Docker services on a DigitalOcean VPS, 24/7 βοΈ WhatsApp bot in Node.js, OCR microservice in Python/FastAPI, and n8n handling the verification workflow.
If a service crashes, it restarts automatically.
One thing I was deliberate about: the system always fails toward "unverified," never toward
"verified." Low-confidence OCR goes to human review, not to an auto-approval. That decision
matters a lot when you're touching payments π
The client no longer has anyone manually opening Stripe. Fakes and duplicates get caught
before anyone acts on them π―: AI-Powered WhatsApp Restaurant Assistant β n8n + Google Gemini ,Google Sheets (FAQ, Inventory, Orders Automation)!
π½οΈ AI-Powered WhatsApp Restaurant Assistant
n8n + Google Gemini + Google Sheets
(Project Case Study)
Built a structured AI assistant that runs inside WhatsApp and
handles real restaurant operations β answering questions,
checking inventory, and recording orders automatically.
One message in. A complete restaurant workflow behind it.
β‘ WHAT THE ASSISTANT HANDLES:
β FAQ Requests
Customer asks a question via WhatsApp
AI Agent reads the FAQ data source
Instant accurate reply sent back
π¦ Inventory Availability Checks
Customer asks if an item is available
AI Agent queries real-time inventory tool
Replies with live stock status
π Order Placement
Customer sends their order via WhatsApp
AI Agent structures and validates the request
Order Tool records it in the system
Confirmation reply sent instantly
π§ HOW THE SYSTEM IS DESIGNED:
π€ AI Agent acts as the central reasoning layer (Understand, Decide, Use Tools)
π¬ Simple Memory maintains conversation context across the session
π οΈ Three structured tools handle all restaurant actions: FAQ Tool, Inventory Tool, Order Tool
β
AI generates the reply only after tools return results β not from assumptions
π Multi-intent queries handled in a single agent loop
π WHAT THIS SYSTEM DELIVERS:
β‘ Faster Replies: Instant responses on WhatsApp
π§ Smarter Handling: Understands questions, items, and orders using AI reasoning
π Better Operations: FAQs, inventory, and orders organized in one system
π₯ Scalable Support: Handles multiple customers simultaneously without extra staff
π οΈ TECH STACK:
βοΈ Workflow Orchestration: n8n
π¬ Messaging Platform: WhatsApp (Webhook)
β¨ AI Reasoning: Google Gemini Chat Model
π§ Memory: Simple Memory (conversation context)
π Restaurant Data Backend: Google Sheets (FAQ, Inventory, Orders)
π€ Agent Architecture: AI Agent with structured tool calls
β
DELIVERABLES:
β
Fully automated WhatsApp assistant for restaurant ops
π½οΈ Three operational tools: FAQ, Inventory, Orders
π§ Context-aware conversation with session memory
π Real-time order recording in Google Sheets
π₯ Handles concurrent customer conversations
π€ AI that works through structured tools, not freeform responses
π LINKS:
π Portfolio: https://ibadat-ali-portfolio.vercel.app/
"My work is done when you no longer need me." β Ibadat Ali π€ AI-Powered Lead Generation System
n8n + Google Maps + Gemini AI Agent + Gmail Automation
(End-to-End, Private Client)
Built a complete AI-powered lead generation system for a private
client β from a single form submission to qualified prospects,
personalized outreach, and automated reporting. No manual steps.
β‘ THE PIPELINE (10 STEPS):
1οΈβ£ π Web form submission triggers the entire workflow
2οΈβ£ πΊοΈ Google Maps API discovers relevant businesses automatically
3οΈβ£ π Website scraper extracts live company information
4οΈβ£ π« Duplicate detection removes repeated or known prospects
5οΈβ£ βοΈ Business logic qualifies and scores each lead before
any AI call is made
6οΈβ£ πΎ Qualified leads stored in Google Sheets with full
state tracking
7οΈβ£ π Website research fetches real company context
for enrichment
8οΈβ£ β¨ Google Gemini AI Agent generates context-aware,
personalized outreach emails
9οΈβ£ βοΈ Gmail sends each email automatically after
content validation
π π Completion report is built and emailed to the
client after every run
π‘ DESIGN DECISIONS WORTH NOTING:
π§ AI runs after business logic, not before it (fewer API calls, lower cost, more predictable output)
π Every lead state is recorded in Sheets β nothing is silently dropped
π Fallback branches handle missing websites and emails
β±οΈ Random delay added for rate-safe scraping
π© Client receives a summary report, not raw workflow logs
π οΈ TECH STACK:
βοΈ Workflow Orchestration: n8n
πΊοΈ Lead Discovery: Google Maps API
π Enrichment: Website Scraping and Content Extraction
β¨ AI Reasoning: Google Gemini AI Agent
βοΈ Outreach: Gmail (automated and validated before send)
π Storage and Reporting: Google Sheets
β
DELIVERABLES:
β
End-to-end lead operations pipeline (not a demo)
π― AI-personalized outreach β context-aware, not template-driven
π Duplicate detection and lead qualification built in
π Automated completion report after every run
π Full lead state tracking across every pipeline stage
π LINKS:
π Portfolio: https://ibadat-ali-portfolio.vercel.app/
"My work is done when you no longer need me." β Ibadat Ali WhatsApp Payment Verification AI Agent β n8n + OCR + Stripe + FastAPI (Production, Live Client)
Built and deployed a production-grade WhatsApp AI Agent that automatically
verifies payment screenshots against live Stripe data β no manual review,
no false approvals, running 24/7.
This was delivered for a real client and is currently live on DigitalOcean.
HOW IT WORKS:
Customer sends a payment screenshot via WhatsApp
Agent downloads and runs OCR (Tesseract) to extract: Amount, Ref ID, Date, Status
Extracted data is verified against live Stripe API β not the screenshot alone
Agent returns one of three decisions instantly via WhatsApp: β
Approved β Stripe confirmed exact match β οΈ Requires Review β no exact match found β Not Approved β verification rules not satisfied
FRAUD RESISTANCE BUILT IN:
Duplicate detection via perceptual image hashing (DUPLICATE_IMAGE_PHASH_RECEIPT_EVIDENCE) β the same screenshot cannot be reused for a second approval
Safe-fail design: visually convincing receipts are NOT auto-approved unless Stripe confirms them
Idempotency at the message level prevents replay attacks
PRODUCTION STACK:
WhatsApp: Node.js + Baileys
Backend & OCR: Python + FastAPI + Tesseract
Workflow Automation: n8n
Payment Verification: Stripe API (Live mode)
Deployment: Docker + DigitalOcean (24/7)
DELIVERABLES:
β Fully automated, end-to-end payment verification pipeline
β Three-state decision engine (Approved / Review / Not Approved)
β Duplicate screenshot detection
β Deployed and running in production β not a demo
Portfolio: https://ibadat-ali-portfolio.vercel.app
(https://ibadat-ali-portfolio.vercel.app)
"My work is done when you no longer need me." β Ibadat Ali