RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
RAGFlow WhatsApp Gateway
This directory contains a minimal WhatsApp gateway built on top of
@whiskeysockets/baileys.
Install
cd internal/channels/whatsapp-gateway
npm install
Run
WHATSAPP_GATEWAY_TOKEN=change-me \
WHATSAPP_GATEWAY_PORT=3005 \
WHATSAPP_GATEWAY_DATA_DIR=~/.ragflow/whatsapp-gateway \
npm start
API
GET /healthPOST /whatsapp/:sessionKey/startGET /whatsapp/:sessionKey/statusGET /whatsapp/:sessionKey/events/ws?after=<seq>(WebSocket)POST /whatsapp/:sessionKey/sendPOST /whatsapp/:sessionKey/stop
Notes
- Authentication state is persisted under
WHATSAPP_GATEWAY_DATA_DIR. - Set
WHATSAPP_GATEWAY_TOKENand configure the same token for the RAGFlow WhatsApp channel. Requests to/whatsapp/*require this bearer token; only/healthis public for readiness checks. - Scan the QR code exposed in
status.qr_data_url. - RAGFlow polls
statusandeventsand forwards inbound messages to the connected assistant.