Initial commit: CRM AI Demo bridge + KB knowledge base + infrastructure

- Bridge server with LLM agent tool-use (search_kb, search_products, search_orders, search_inventory, escalate_human)
- pgvector RAG knowledge base (95 FAQ chunks)
- Auto opportunity creation in Twenty CRM
- Auto follow-up task workflow
- Chatwoot AgentBot integration (HMAC, webhook)
- Docker compose infrastructure (PG18, Redis 8.8, node24-alpine)
- Configuration templates (example files) - real secrets excluded via .gitignore
This commit is contained in:
AI Bridge Dev
2026-07-27 15:23:52 +08:00
commit 4a29860b51
37 changed files with 3250 additions and 0 deletions

11
bridge/Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
# Chatwoot -> LLM -> Twenty CRM 销售桥接
# 纯 Node 内置模块 + sharp(图片缩放),需 Node 18+(内置 fetch / FormData / Blob)
FROM node:24-alpine
WORKDIR /app
COPY package.json ./
RUN npm install --omit=dev
COPY server.js index_kb.js register_agent_bot.js ./
COPY chatwoot.config.json llm.config.json twenty.config.json kb.config.json ./
ENV PORT=4000
EXPOSE 4000
CMD ["node", "server.js"]