{"id":50516378,"url":"https://github.com/mohamed-em2m/meta-bot","last_synced_at":"2026-06-03T00:30:28.830Z","repository":{"id":359308277,"uuid":"1245424160","full_name":"mohamed-em2m/meta-bot","owner":"mohamed-em2m","description":"Production-ready asynchronous AI agent framework for WhatsApp, Facebook Messenger, and Instagram. Built for high concurrency with multi-LLM orchestration (GPT-5, Gemini 2.5), BigQuery-powered RAG, and modular tool-agent architecture.","archived":false,"fork":false,"pushed_at":"2026-05-21T09:46:45.000Z","size":3116,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-21T16:18:35.537Z","etag":null,"topics":["ai","ai-agents","chatbot","facebook","facebook-messenger-bot","instagram","llm","meta","odoo","prompt-engineering","real-estate","whatsapp-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohamed-em2m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T07:55:18.000Z","updated_at":"2026-05-21T09:46:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mohamed-em2m/meta-bot","commit_stats":null,"previous_names":["mohamed-em2m/meta-bot"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mohamed-em2m/meta-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamed-em2m%2Fmeta-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamed-em2m%2Fmeta-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamed-em2m%2Fmeta-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamed-em2m%2Fmeta-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohamed-em2m","download_url":"https://codeload.github.com/mohamed-em2m/meta-bot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohamed-em2m%2Fmeta-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33843611,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agents","chatbot","facebook","facebook-messenger-bot","instagram","llm","meta","odoo","prompt-engineering","real-estate","whatsapp-bot"],"created_at":"2026-06-03T00:30:25.901Z","updated_at":"2026-06-03T00:30:28.825Z","avatar_url":"https://github.com/mohamed-em2m.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Meta App Chatbot - Advanced WhatsApp \u0026 Facebook AI Agent\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assests/meta_chatbot.png\" alt=\"Meta App Chatbot Banner\" width=\"600\"\u003e\n\u003c/p\u003e\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python 3.12+](https://img.shields.io/badge/python-3.12+-blue.svg)](https://www.python.org/downloads/)\n[![FastAPI](https://img.shields.io/badge/FastAPI-005571?style=flat\u0026logo=fastapi)](https://fastapi.tiangolo.com/)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nAn asynchronous, high-concurrency WhatsApp, Facebook, and Instagram AI agent framework designed for production. Built with **Multi-LLM support (GPT-4o, Gemini 2.0)**, **Vector RAG (BigQuery)**, and **Modular Router-based Architecture**.\n\n[**Explore the Documentation 📖**](docs/index.md)\n\n---\n\n## ✨ Key Features\n\n*   **🧠 Intelligent Reasoning**: Leverages state-of-the-art models via LangGraph for complex decision making.\n*   **📊 Enterprise RAG**: Real-time Retrieval-Augmented Generation using Google BigQuery Vector Search.\n*   **🧩 Modular Architecture**: Clean FastAPI router-based design for separation of concerns.\n*   **🛠️ Tool-Agent System**: Easily extendable with custom tools using standard `@tool` decorators.\n*   **⚡ High Performance**: Fully asynchronous I/O with `httpx` and `aiohttp`.\n*   **📱 Unified Messaging**: Process WhatsApp Cloud API and Facebook Page messages through a single gateway.\n*   **⚙️ Modern Config**: Powered by **Dynaconf** for robust, multi-environment `.toml` configuration.\n*   **🎙️ Voice AI**: Built-in support for audio processing and speech-to-text integration.\n\n---\n\n## 📁 Project Structure\n\n```text\n.\n├── meta_app_chatbot/\n│   ├── agent/                 # Core AI Logic, Sub-Agents \u0026 Tools\n│   ├── db/                    # Database \u0026 RAG Factory (Firestore, BigQuery)\n│   ├── config/                # Centralized configuration (Settings \u0026 Schemas)\n│   ├── routers/               # FastAPI Routers (Webhooks, Media, API)\n│   ├── prompts/               # Structured LLM instructions (.md templates)\n│   ├── voice/                 # Audio processing and STS/STT services\n│   └── main.py                # App entrypoint \u0026 middleware configuration\n├── docs/                      # Detailed system documentation\n├── assests/                   # Project assets and branding\n├── Dockerfile                 # Production container setup\n└── pyproject.toml             # Project metadata and dependencies\n```\n\n---\n\n## ⚙️ Quick Start\n\n### 1. Installation\n\nRequires [Python 3.12+](https://www.python.org/downloads/).\n\n```bash\n# Clone the repository\ngit clone https://github.com/mohamed-em2m/meta-bot.git\ncd meta-bot\n\n# Set up virtual environment\npython -m venv .venv\nsource .venv/bin/activate  # Windows: .venv\\Scripts\\activate\n\n# Install dependencies\npip install -r requirements.txt\nplaywright install chromium # Required for dynamic scraping tools\n```\n\n### 2. Configuration\n\nConfiguration is managed via **Dynaconf**.\n\n1.  Navigate to `meta_app_chatbot/config/`.\n2.  Duplicate `settings.toml.example` as `settings.toml`.\n3.  Add your credentials:\n\n```toml\n[default]\nOPENAI_API_KEY = \"sk-...\"\nGEMINI_API_KEY = \"AIza...\"\nWHATSAPP_ACCESS_TOKEN = \"EAA...\"\n# Add other platform-specific keys as needed\n```\n\n---\n\n## 🚀 Development \u0026 Quality\n\nThis project maintains high code quality standards through strict linting:\n\n*   **Linting**: [Ruff](https://github.com/astral-sh/ruff) for lightning-fast Python linting and formatting.\n*   **Hooks**: [Pre-commit](https://pre-commit.com/) ensures all commits meet quality gates.\n\nTo run lints manually:\n```bash\nruff check .\npre-commit run --all-files\n```\n\n---\n\n## 🏗️ Architecture Highlights\n\n### Distributed Webhook Handling\nSpecialized routers decouple incoming platform payloads from the agent's internal state, allowing for easy addition of new platforms.\n\n### Atomic Tool Design\nTools are defined as isolated Python functions, making the agent's capabilities easy to test and safe to update without touching core logic.\n\n### Scalable Persistence\nConversation history is managed via Google Firestore, ensuring horizontal scalability and low-latency state retrieval.\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions of all sizes!\n\n1.  Fork the repository.\n2.  Create your feature branch (`git checkout -b feature/AmazingFeature`).\n3.  Ensure lints pass (`ruff check .`).\n4.  Commit your changes.\n5.  Push to the branch and open a Pull Request.\n\n---\n\n## 📄 License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n\n---\n\n**Made with ❤️ for the AI \u0026 Open Source Community**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamed-em2m%2Fmeta-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohamed-em2m%2Fmeta-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohamed-em2m%2Fmeta-bot/lists"}