arcadiasuite/server/manus
Claude 242f8bbc8f feat: Fase 1 — Motor de Automações + Manus + XOS CRM integrados
Automation Engine (Python FastAPI v2.0.0):
- Novos step types: sub_workflow, split_batch, loop, retry, error_branch,
  send_email, send_whatsapp, update_record, create_record, manus_task
- Retry com backoff por step (retry_count + retry_delay_seconds)
- Branching condicional (on_success/on_failure/error_branch)
- Interpolação de variáveis {{campo}} em todos os steps
- Novos tipos de evento CRM: crm.contact.created, crm.deal.stage_changed,
  crm.deal.won, crm.deal.lost, crm.ticket.created, crm.message.received, etc.
- Endpoint POST /xos/trigger: recebe eventos CRM e repassa ao Node.js
- Forward bidirecional: engine Python ↔ Node.js XOS webhook

Manus IA — 3 novos tools:
- automation_trigger: dispara automações por ID ou evento do barramento
- xos_action: cria/atualiza contacts, deals, tickets, tarefas via IA
  (create_contact, update_contact, create_deal, move_deal_stage,
   create_ticket, assign_agent, create_task, create_activity, create_note)
- inbox_action: age na Central de Atendimento via IA
  (close_conversation, transfer_conversation, send_message,
   add_label, resolve_ticket, escalate_ticket)

XOS CRM Routes — Event Bus wiring:
- POST /contacts emite crm.contact.created
- POST /deals emite crm.deal.created
- PUT /deals/:id/stage emite crm.deal.stage_changed / crm.deal.won / crm.deal.lost
- POST /tickets emite crm.ticket.created
- CRUD completo para xos_automations (GET/POST/PATCH/DELETE)
- POST /automations/:id/execute — execução manual
- POST /automations/webhook/crm-event — recebe eventos do engine Python
- Executor de xos_automations: avalia conditions + executa actions
  (send_email, send_whatsapp, create_task, assign_agent, update_field,
   move_deal_stage, notify_team, webhook, agent_task)

https://claude.ai/code/session_01DinH3VcgbAv1d9MqnNxzdb
2026-03-17 16:39:29 -03:00
..
routes.ts Arcadia Suite - Projeto completo 2026-02-09 17:46:40 -03:00
service.ts feat: Fase 1 — Motor de Automações + Manus + XOS CRM integrados 2026-03-17 16:39:29 -03:00
tools.ts feat: Fase 1 — Motor de Automações + Manus + XOS CRM integrados 2026-03-17 16:39:29 -03:00