Gustavo Marcial
← Back to projects

AnuncieCompre

In developmentOpen source

WhatsApp order chatbot

Backend for structured order collection via WhatsApp (Twilio). Guides users through a state-based conversational flow, validates input, and creates orders automatically with async processing via Redis Streams.

Stack

.NETPostgreSQLEF CoreRedisRedis StreamsTwilio

Architecture

  • ✔Clean Architecture
  • ✔DDD
  • ✔State Machine
  • ✔Domain Events
  • ✔Value Objects
  • ✔Strategy Pattern
  • ✔Producer/Consumer

How I'm building it

  • →Full cycle — from requirements to deploy
  • →SDLC
  • →Agile / Scrum
  • →Git workflow (branches, PRs)
  • →Iterative development with incremental deliveries

Features

  • • Automated WhatsApp customer service
  • • State-based conversational flow with validation
  • • User registration (client/supplier)
  • • Automatic order creation
  • • Per-user conversation state in Redis
  • • Async processing with Redis Streams

What this project shows about me

  • →Domain modeling with Aggregates, Value Objects, and Domain Events
  • →External API integration via webhooks (Twilio)
  • →Messaging and decoupling with Producer/Consumer
  • →Conversation state management in Redis
  • →Idempotent event processing

Roadmap

Implemented

  • ✓Redis Streams
  • ✓Event-Driven
  • ✓DDD
  • ✓State Machine
  • ✓CI

Next steps

  • □CD
  • □Unit tests
  • □Integration tests
  • □Remaining client and supplier interaction flows

Demo

Click to enlarge

WhatsApp user registration flow
WhatsApp user registration flow
WhatsApp order creation flow
WhatsApp order creation flow