How xnetinho/watink works
Watink is an open-source, multi-agent WhatsApp customer-service and automation platform. The main workflow is a team member using the web app to manage conversations and queues; the Business API handles requests and coordinates channel connections, ticketing, and automation. Separate branches cover CRM pipelines, knowledge ingestion and retrieval, optional plugins, and calls/media. The README documents product capabilities; sampled startup, route, controller, and worker sources support only some implementation links, so unsampled subsystem wiring is intentionally not inferred.
Main entry points: routes.go API routes · controllers Feature controllers · main.go Business API · interpreter.go Flow runtime
Components 17
Web workspace
- Web workspace
frontend/src/pages/Clients/hooks/useClientModal.ts
Business API
- Business API
business/cmd/server/main.go - API routes
business/internal/routes/routes.go - Feature controllers
business/internal/controllers - Inbox and queues
business/internal/controllers/ticket.go - CRM pipelines
business/internal/controllers/pipeline.go - Application database
business/internal/database/database.go
Automation and knowledge
- Flow runtime
business/internal/flow/interpreter.go - Knowledge ingestion
business/internal/knowledge/ingest_worker.go
Channels and extensions
- Optional plugins
business/internal/plugins/manager.go - WhatsApp channel
business/internal/channels/whatsapp/adapter.go - Telegram channel
business/internal/channels/telegram/adapter.go
WhatsApp engine
- Messaging engine
engine-go/cmd/engine/main.go - Call media runtime
engine-go/internal/voip/call/callmanager.go
Other components
- Support team
- RabbitMQ
- WhatsApp users
Connections 21
- Support team → Web workspace: uses
README.md - Web workspace → Business API: requests
- Business API → API routes: registers
business/cmd/server/main.go - API routes → Feature controllers: registers
business/internal/routes/routes.go - Feature controllers → Inbox and queues: serves
- Feature controllers → CRM pipelines: serves
- Support team → Inbox and queues: handles chats
README.md - Support team → CRM pipelines: manages deals
README.md - Support team → Flow runtime: configures automations
README.md - API routes → Flow runtime: registers
business/internal/routes/routes.go - Feature controllers → Application database: reads and writes
- Flow runtime → WhatsApp users: automates replies
README.md - Knowledge ingestion → RabbitMQ: consumes jobs
business/internal/knowledge/ingest_worker.go - API routes → Knowledge ingestion: wires retrieval
business/internal/routes/routes.go - API routes → Optional plugins: registers
business/internal/routes/routes.go - API routes → WhatsApp channel: registers
business/internal/routes/routes.go - API routes → Telegram channel: registers
business/internal/routes/routes.go - WhatsApp users → WhatsApp channel: sends messages
- Messaging engine → RabbitMQ: consumes commands
engine-go/cmd/engine/main.go - Messaging engine → WhatsApp users: connects
- Business API → Call media runtime: coordinates calls