Home
Softono
a

aiecosvietnam

Professional software vendor delivering innovative solutions on the Softono platform. Specialized in both open-source and proprietary software development.

Total Products
1

Software by aiecosvietnam

aiecos-social-crm
Open Source

aiecos-social-crm

# AIECOS Social CRM [![CI](https://github.com/aiecosvietnam/aiecos-social-crm/actions/workflows/ci.yml/badge.svg)](https://github.com/aiecosvietnam/aiecos-social-crm/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![GitHub Pages](https://img.shields.io/badge/demo-live-blue?logo=github)](https://aiecosvietnam.github.io/aiecos-social-crm/) Open-source template to sync Pancake (Zalo OA / Facebook Messenger / Instagram) data into your own Supabase, with a built-in admin UI, MCP server for AI agents, and B2B partner classification. **🌐 [Live demo](https://aiecosvietnam.github.io/aiecos-social-crm/)** Β· **πŸ“– [Setup guide](SETUP.md)** Β· **πŸ€– [MCP usage](docs/MCP_USAGE.md)** ## 🎬 Demo https://github.com/aiecosvietnam/aiecos-social-crm/releases/download/v1.0.0/demo.mp4 <sub>11-second walkthrough β€” Dashboard Β· Inbox Β· Pipeline Β· Partner 360 Β· Performance. <br> Inline player auto-renders on GitHub.com. Fallback: **[direct download](https://github.com/aiecosvietnam/aiecos-social-crm/releases/download/v1.0.0/demo.mp4)**.</sub> --- **What it does:** - πŸ“₯ Chrome extension reads Pancake DOM β†’ POST to your sync receiver - πŸ’Ύ Sync receiver writes to Supabase schema (`pages`, `customers`, `conversations`, `messages`) - πŸ–₯ Standalone admin UI (single HTML file) reads from Supabase REST API - πŸ€– MCP server lets Claude / any MCP client query data directly via natural language - πŸ“Š 5-stage partner classification: Active / Sleeping / At-Risk / Dormant / Churned - πŸ“„ Export CSV + printable HTML reports - πŸ’¬ Built-in Inbox (3-pane), Triage alerts, Pipeline kanban - 🎭 Demo mode β€” try the UI instantly without setting up Supabase **Stack:** Node.js + Express, Supabase (Postgres + PostgREST), Chrome Manifest V3, MCP SDK. --- ## Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” POST β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” upsert β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Pancake DOM β”‚ ─────────▢ β”‚ Sync Receiver β”‚ ────────▢ β”‚ Supabase β”‚ β”‚ (Chrome ext) β”‚ β”‚ (Node + Express) β”‚ β”‚ aiecos_socialβ”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ PostgREST β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Admin UI β”‚ β”‚ MCP Server β”‚ β”‚ (HTML/JS) β”‚ β”‚ (for Claude) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## Screenshots **Admin UI β€” Dashboard** (live data from your own Supabase): - πŸ“Š KPI cards: Total partners / Active / At-Risk / Dormant+Churned / Total messages - πŸ“ˆ 14-day activity trend (Customer vs Agent split) - πŸ’¬ Recent messages stream **Pipeline Kanban** β€” 5 stages with auto-classification: ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ ACTIVE β”‚ β”‚ SLEEPING β”‚ β”‚ AT-RISK β”‚ β”‚ DORMANT β”‚ β”‚ CHURNED β”‚ β”‚ ≀ 3d β”‚ β”‚ 3-7d β”‚ β”‚ 7-30d β”‚ β”‚ 30-90d β”‚ β”‚ >90d β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` **Triage** β€” Auto-alerts for partners going silent Β· **Partner 360** β€” Full table Β· **Performance** β€” Customer/Agent ratio + top partners β†’ **[Try the live demo](https://aiecosvietnam.github.io/aiecos-social-crm/)** (connect to your Supabase via Settings) --- ## Folder structure ``` aiecos-social-crm/ β”œβ”€β”€ README.md β”œβ”€β”€ SETUP.md ← Start here β”œβ”€β”€ LICENSE ← MIT β”œβ”€β”€ docker-compose.yml ← One-command dev stack β”œβ”€β”€ .env.example ← Root env (for docker compose) β”œβ”€β”€ chrome-extension/ ← AIECOS Pancake Connector (Manifest V3) β”œβ”€β”€ sync-receiver/ ← Express server + Dockerfile + schema.sql β”œβ”€β”€ mcp-server/ ← MCP server for Claude β”œβ”€β”€ admin-ui/ ← Single-file HTML dashboard β”œβ”€β”€ examples/ ← Curl scripts, seed data, MCP prompts β”œβ”€β”€ docs/ β”‚ β”œβ”€β”€ DEPLOY.md ← Production deployment guide β”‚ β”œβ”€β”€ MCP_USAGE.md ← MCP tool reference β”‚ └── ARCHITECTURE.md ← Internals └── .github/workflows/ └── ci.yml ← Syntax + secret scan + docker build ``` --- ## Quick start (1 minute β€” Docker) ```bash # Boot the entire stack: Postgres + PostgREST + sync receiver + admin UI cp .env.example .env docker compose up -d # Inject demo data (5 partners across all stages) bash examples/seed-demo-data.sh # Open admin UI open http://localhost:8080 # β†’ Settings β†’ Supabase URL: http://localhost:3000 β†’ Schema: aiecos_social β†’ Save ``` Done. You can now see Active / Sleeping / At-Risk / Dormant / Churned partners in the kanban. ## Quick start (manual, step-by-step) ```bash # 1. Set up Supabase (cloud or self-host) + run schema.sql psql -f sync-receiver/schema.sql # 2. Start sync receiver cd sync-receiver cp .env.example .env # edit with your Supabase credentials npm install npm start # 3. Open admin UI in browser open admin-ui/index.html # β†’ Click Settings β†’ paste your Supabase URL + anon key # 4. Install Chrome extension # chrome://extensions/ β†’ Load unpacked β†’ select chrome-extension/ # 5. (Optional) Wire MCP server to Claude cd mcp-server && npm install # Add to ~/.claude.json mcpServers, then restart Claude Code ``` Full step-by-step instructions: **[SETUP.md](SETUP.md)** --- ## Why this template? Most CRMs lock you into their data silo. This template gives you: | Feature | Benefit | |---|---| | Own your data | Self-host Supabase, full Postgres access | | AI-ready | MCP server exposes data to Claude / any LLM | | Multi-channel | Facebook + Zalo OA + Instagram via single Pancake account | | Zero vendor lock | All code MIT, no proprietary deps | | B2B-aware | Partner classification (Active β†’ Churned) out of the box | | Audit trail | Every message logged with timestamp + sender_type | --- ## Use cases - **B2B distributors**: Track shop partners, alert when they go silent - **D2C brands**: Multi-channel inbox aggregation - **Agencies**: White-label social CRM for clients - **AI assistants**: Feed conversation history to your AI agents --- ## Roadmap - [ ] Add HubSpot / Salesforce sync - [ ] Webhook out (Slack/Telegram alerts) - [ ] Tag/segment management UI - [ ] LLM-powered reply suggestions --- ## β˜• Support development NαΊΏu template nΓ y giΓΊp Γ­ch cho bαΊ‘n, α»§ng hα»™ mα»™t ly cΓ  phΓͺ để mΓ¬nh tiαΊΏp tα»₯c build thΓͺm nhiều dα»± Γ‘n **mΓ£ nguα»“n mở thα»±c tαΊΏ** cho cα»™ng Δ‘α»“ng dev Việt Nam. > *If this template saved you time, consider supporting future open-source work. 100% goes back into building more real-world templates (CRM, AI agents, integrations like KiotViet/MISA/HubSpot/Shopify, Vietnamese + English docs).* ### πŸ‡»πŸ‡³ MoMo Β· VietQR Β· Napas247 <p align="center"> <img src="https://github.com/aiecosvietnam/aiecos-social-crm/releases/download/v1.0.0/donate-momo.jpg" alt="MoMo / VietQR donate" width="320" /> </p> <p align="center"> <b>NGUYEN TAN HOANG</b><br> <code>PSG2614514200000011</code> Β· NH: MoMo<br> <sub>Scan with MoMo / any VietQR-compatible app (Vietcombank, Techcombank, MB, TPBank, …)</sub> </p> ### 🌍 Other ways to support | Action | Why it helps | |---|---| | ⭐ **Star this repo** | Boosts visibility β†’ more devs find it β†’ more contributors | | πŸ› **Open issues / PRs** | Real-world feedback shapes the roadmap | | πŸ“’ **Share with your network** | Especially if you work on Vietnam social-commerce | | πŸ’Ό **Hire AIECOS** for custom builds | [aiecos.ai](https://aiecos.ai) β€” AI Sale Agent / AI Customer Care / custom CRM | | 🐦 **Tag us when shipping** | Twitter / LinkedIn β€” we'll amplify | **CαΊ£m Ζ‘n πŸ™** β€” every star, comment, donation keeps this momentum going. --- ## Credits Built by **[AIECOS](https://aiecos.ai)** β€” open-source AI infrastructure for Vietnamese businesses. Released under MIT. PRs welcome.

AI Agents CRM Personal Dashboards
15 Github Stars