How supitta/omnichannel works
OmniDesk is a shared customer-support inbox for LINE, Facebook Messenger, Instagram, Web Chat and Gmail. Staff use the React workspace to review conversations, reply, manage contacts and tickets, and view reports; the Express backend receives webhooks and syncs channels, then persists conversations. AI-assisted replies, file handling and backups support that core workflow. Edges are limited to relationships visible in excerpts or explicitly described in the README; some unsampled frontend and channel internals are represented at subsystem level.
Main entry points: App.jsx Inbox workspace · platforms.js Channel sync and messaging · server.js HTTP and webhook routes · bot.js AI reply automation
Components 22
Staff workspace
- Inbox workspace
src/App.jsx - Frontend API client
src/api.js - Chat timeline
src/chatTime.js - Contact insights
src/components/ProfilePanel.jsx - Contact dialogs
src/components/Modals.jsx - Ticket management
src/components/Tickets.jsx - Reports
src/components/Report.jsx
Conversation backend
- HTTP and webhook routes
server/src/server.js - Contact extraction
server/src/extract-contact.js
Channels and automation
- Channel sync and messaging
server/src/platforms.js - LINE Official Account
- Meta messaging
- Website chat
server/src/webchat.js - Gmail integration
server/src/gmail.js - AI reply automation
server/src/bot.js - AI Hub client
server/src/ai-hub.js
Persistence and files
- Store driver selector
server/src/store.js - SQLite store
server/src/store-sqlite.js - JSON store
server/src/store-json.js - File handling
server/src/files.js - Database backups
server/src/backup.js
Other components
- Support staff
Connections 24
- Support staff → Inbox workspace: uses
README.md - Inbox workspace → Frontend API client: requests data
src/App.jsx - Inbox workspace → Chat timeline: formats timeline
src/App.jsx - Inbox workspace → Contact insights: shows profile
src/App.jsx - Inbox workspace → Contact dialogs: opens dialogs
src/App.jsx - Inbox workspace → Ticket management: manages tickets
src/App.jsx - Inbox workspace → Reports: shows reports
README.md - Frontend API client → HTTP and webhook routes: calls API
- HTTP and webhook routes → Channel sync and messaging: dispatches sync
server/src/server.js - HTTP and webhook routes → Store driver selector: reads and writes
server/src/server.js - HTTP and webhook routes → Contact extraction: extracts details
server/src/server.js - HTTP and webhook routes → AI reply automation: controls handoff
server/src/server.js - Channel sync and messaging → LINE Official Account: syncs and sends
README.md - Channel sync and messaging → Meta messaging: syncs and sends
README.md - Channel sync and messaging → Website chat: routes chat
server/src/platforms.js - Channel sync and messaging → Gmail integration: syncs and sends
server/src/platforms.js - Channel sync and messaging → AI reply automation: handles incoming
server/src/platforms.js - AI reply automation → AI Hub client: requests replies
server/src/bot.js - AI reply automation → Store driver selector: saves replies
server/src/bot.js - Store driver selector → SQLite store: loads driver
server/src/store.js - Store driver selector → JSON store: loads driver
server/src/store.js - Channel sync and messaging → File handling: stores attachments
server/src/platforms.js - HTTP and webhook routes → Database backups: starts schedule
server/src/server.js - Database backups → SQLite store: backs up database
server/src/backup.js