Langgraph Chatwoot
Description
Replica minimalista do agente financeiro do nxz-ai, focada em troca de mensagens com integração Chatwoot.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
LangGraph Chatwoot Integration
Replica minimalista do agente financeiro do nxz-ai, focada em troca de mensagens com integração Chatwoot.
**⚠️ IMPORTANTE:** Este projeto passou por 2 revisões completas de código comparando com nxz-ai. Todos os bugs críticos foram corrigidos. Ver [CRITICAL_FIXES_FINAL.md](CRITICAL_FIXES_FINAL.md) para detalhes.
Recursos
- LangGraph StateGraph: Orquestração de agente com máquina de estados
- Buffer de Mensagens: Debounce de 20s usando Redis para agrupar mensagens consecutivas
- Split de Mensagens: Divide respostas longas (>200 chars) em múltiplas mensagens
- Persistência: Histórico de conversas salvo em PostgreSQL
- Tools/Funções: Agente pode usar ferramentas (exemplos inclusos)
- Integração Chatwoot: Webhook assíncrono + envio de respostas
Arquitetura
CHATWOOT (webhook)
↓
/api/v1/chatwoot/webhook
↓
[Validação rápida] → 200 OK (imediato)
↓
[Background Task]
↓
[Message Buffer Redis] (debounce 20s)
↓
[LangGraph Agent]
├─ agent node (LLM)
├─ tools node (ferramentas)
└─ split_message node (divisão)
↓
[Chatwoot Service] → Envia respostas
Estrutura do Projeto
langgraph-chatwoot/
├── app/
│ ├── main.py # FastAPI app principal
│ ├── config.py # Configurações
│ ├── api/
│ │ └── chatwoot.py # Webhook endpoint
│ ├── agent/
│ │ ├── graph.py # LangGraph StateGraph
│ │ └── tools.py # Ferramentas do agente
│ ├── services/
│ │ ├── chatwoot_service.py # Cliente API Chatwoot
│ │ └── message_buffer.py # Buffer Redis
│ └── schemas/
│ └── chatwoot.py # Pydantic schemas
├── requirements.txt
├── .env.example
├── Dockerfile
├── docker-compose.yml
└── README.md
Instalação
Opção 1: Docker Compose (Recomendado)
- Clone o repositório e entre no diretório:
cd /home/victor/top-hawks/langgraph-chatwoot
- Crie o arquivo
.env
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI