Facebook AI Agent
AI-powered Facebook Automation Agent

AI-powered Facebook automation agent capable of automatically managing interactions on Facebook pages. The system relies on a RAG (Retrieval-Augmented Generation) architecture that indexes business documents (FAQs, product catalogs, policies) to generate contextual and accurate responses. The FastAPI backend receives Facebook events via webhooks, analyzes comment and Messenger message content, searches for relevant information in the vector database, then generates a personalized response via Anthropic Claude or OpenAI. The project includes a complete Next.js dashboard for monitoring conversations, visualizing engagement statistics, and configuring auto-reply rules. The agent also handles intelligent post scheduling and audience analysis. Designed for Malagasy businesses looking to automate their Facebook presence without sacrificing interaction quality.