feat: add Workflow Engine and CRM module#200
feat: add Workflow Engine and CRM module#200iPythoning wants to merge 1 commit intodataelement:mainfrom
Conversation
Multi-agent workflow orchestration: - LLM-driven planning decomposes user goals into agent steps - Sequential execution with retry, CSV/PDF export, CRM import - Real-time polling UI with step-by-step deliverable viewer - Contextual AI chat assistant for workflow Q&A Lightweight CRM for trade contacts and deals: - Drag-and-drop Kanban pipeline (Lead → Won/Lost) - Contact management with batch operations - Deal tracking with stage progression - Activity log per contact Both modules include: - Full i18n (en + zh) — no hardcoded strings - Multi-tenant isolation (tenant_id checks on all queries) - Alembic migration for 5 new tables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for this substantial contribution! The Workflow Engine and CRM module are well-structured with good practices (i18n coverage, tenant isolation, retry logic). However, we can't merge this into the core platform as-is. The main concern is that the workflow orchestrator is tightly coupled to a specific industry (foreign trade):
Clawith is a general-purpose multi-agent platform, and core features need to work across all industries and use cases. That said, we have a plugin/extension system on our roadmap. Once that's available, a trade-specific Workflow + CRM plugin would be a great fit — users who need it can install it, while the core platform stays industry-agnostic. We'd love for you to publish this as a plugin when the system is ready. In the meantime, a few suggestions if you'd like to prepare for that:
Looking forward to collaborating on this! |
Summary
Adds two major features to Clawith:
Multi-Agent Workflow Engine
Lightweight CRM
Quality
tenant_id, workflow access verified via_can_access_workflow()helperworkflows,workflow_steps,crm_contacts,crm_deals,crm_activities)Files added/modified
backend/app/models/workflow.pybackend/app/models/crm.pybackend/app/api/workflows.pybackend/app/api/crm.pybackend/app/services/workflow_orchestrator.pybackend/app/main.pybackend/alembic/versions/add_workflow_crm_tables.pyfrontend/src/pages/WorkflowList.tsxfrontend/src/pages/WorkflowDetail.tsxfrontend/src/pages/CRMDashboard.tsxfrontend/src/App.tsxfrontend/src/pages/Layout.tsxfrontend/src/services/api.tsfrontend/src/i18n/en.jsonfrontend/src/i18n/zh.jsonTest plan
alembic upgrade head— verify 5 tables created