NexusCore-WA is PierringShot Electronics' end-to-end autonomous service and sales assistant: a multimodal WhatsApp brain that listens, watches, reasons, and responds with GPT-5-ready intelligence.
- 🤖 Autonomous Agent Orchestration – buffer, intent, persona, tooling, response, and delivery stages instrumented with telemetry.
- 🧠 Multimodal Understanding – Whisper/Groq transcription for audio, GPT-4o & vision fallbacks for images/videos, semantic product recall via pgvector.
- 📦 Ops-Ready Deployments – Docker Compose stack (Postgres + pgvector, Redis, WWeb.js gateway, Express backend, Next.js dashboard).
- 📈 Realtime Insights – SSE-powered Flow Canvas dashboard shows live pipeline status, persona/model picks, and execution latencies.
- 🛡️ Guardrails & Handover – configurable business tone (
data/biznes.md), human handoff commands, and structured clarifications.
- Clone & Prepare
git clone https://github.com/PierringShot-Electronics/NexusCore-WA.git cd NexusCore-WA cp .env.example .env - Configure Secrets
- Fill in
OPENAI_*, optionalGROQ_*, WhatsApp gateway credentials, and agent model overrides inside.env. - Adjust telemetry controls (
TELEMETRY_ENABLED,TELEMETRY_REDIS_STREAM,TELEMETRY_HISTORY_LIMIT) as needed.
- Fill in
- Launch the Stack
docker compose up --build
- (Optional) Seed Product Data
docker compose run --rm app npm run seed
- 🌀 Dashboard – visit
http://localhost:3002for the operator console (/overview,/telemetry,/agent,/environment). - 💬 WhatsApp Gateway – scan the QR from the dashboard or
scripts/whatsapp_gateway_session.shto pair the agent number. - ✅ Smoke Tests – run
bash scripts/smoke_test.shandpython scripts/test_endpoints.pyto validate gateway ↔ backend ↔ database links. - 🧪 Telemetry Stream – subscribe to
http://localhost:3000/telemetry/streamfor live pipeline events (perfect for observability dashboards).
docker-compose.yml
├─ postgres # pgvector + pgcrypto extensions
├─ redis # smart buffer, rate limiting, telemetry stream
├─ wweb # WhatsApp Web JS gateway (QR auth, media downloads)
├─ app # Express + agent orchestration + tool executors
└─ dashboard # Next.js operator UI (Flow Canvas, config, logs)
Key directories:
backend/src/services/agent/– intent classification, persona strategy, tool executor, response builder.backend/src/services/telemetry/– event bus, Redis persistence, SSE endpoints.dashboard/pages/– modular admin views (overview,telemetry,agent,environment).docs/– product knowledge base, integration guides, and roadmap notes.
- Realtime telemetry stream & Flow Canvas UI
- Multimodal media ingestion (audio transcription, vision analysis, document notes)
- Token usage & cost monitor dashboard
- Conversational memory refinement and proactive follow-ups
- Automated regression suite for gateway + agent workflows
- Fork the repository and create a feature branch.
- Follow the commit convention (
feat:,fix:,docs:,chore:…). - Keep the
TODO.mdstate-of-truth updated (task checklist). - Open a pull request with screenshots/logs for UI or gateway changes.
Distributed under the CC0 1.0 Universal License. See LICENSE for details.
💡 Pro tip: Keep an eye on
/telemetry/stream+/overviewduring live WhatsApp sessions to see the pipeline glow as it reasons in real time!
