How frappe/raven works
Raven is an enterprise messaging platform integrated with Frappe. Users enter through the web or mobile client, select a workspace and channel or direct conversation, then exchange messages, replies, files, and reactions; supporting features include search, threads, notifications, AI agents, and Frappe integrations. The graph combines the documented product capabilities with relationships visible in the supplied excerpts and SOURCE INDEX. Several backend and client subsystems are listed but unsampled, so their internal call paths are not inferred.
Main entry points: raven_message.py Message Lifecycle · App.tsx Web App · handler.py AI Agents · ChannelsList.tsx Channels and DMs
Components 19
User Clients
- Web App
apps/web/src/App.tsx - Mobile App
apps/mobile/app/[site_id]/_layout.tsx - Workspace Access
apps/mobile/components/features/workspaces/WorkspaceSwitcher.tsx - Embedded Chat
raven/public/js/raven_chat/App.jsx
Conversation Features
- Channels and DMs
apps/mobile/components/features/channels/ChannelList/ChannelsList.tsx - Message Composer
apps/mobile/components/features/chat/ChatInput/ChatInput.tsx - Message Stream
apps/mobile/components/features/chat-stream/ChatStream.tsx - Threads and Replies
apps/mobile/components/features/threads/ThreadsList.tsx - Message Search
raven/api/search.py - Files and Media
apps/mobile/components/features/media/Media.tsx - Link Previews
raven/links.py
Frappe Messaging Core
- Message Lifecycle
raven/raven_messaging/doctype/raven_message/raven_message.py - Channel Management
raven/raven_channel_management/doctype/raven_channel/raven_channel.py - Realtime Events
raven/realtime/handlers.py - Notifications
raven/notification.py
AI and Integrations
- AI Agents
raven/ai/handler.py - Frappe App Integration
raven/raven_ai/doctype/raven_ai_function/raven_ai_function.py - Webhooks
raven/raven_integrations/doctype/raven_webhook/raven_webhook.py
Other components
- Team Member
Connections 20
- Team Member → Web App: uses
README.md - Team Member → Mobile App: uses
README.md - Web App → Channels and DMs: opens conversations
- Mobile App → Workspace Access: selects workspace
- Workspace Access → Channels and DMs: opens conversations
- Web App → Embedded Chat: offers embedded chat
- Team Member → Message Composer: writes messages
README.md - Message Composer → Message Lifecycle: sends message
- Message Lifecycle → Message Stream: updates conversation
- Team Member → Threads and Replies: replies in threads
README.md - Team Member → Message Search: searches messages
README.md - Team Member → Files and Media: shares files
README.md - Message Lifecycle → Link Previews: queues preview work
raven/raven_messaging/doctype/raven_message/raven_message.py - Message Lifecycle → Notifications: sends notifications
raven/raven_messaging/doctype/raven_message/raven_message.py - Message Lifecycle → AI Agents: handles AI messages
- Team Member → AI Agents: asks agent
README.md - AI Agents → Frappe App Integration: runs workflows
README.md - Team Member → Webhooks: configures integrations
README.md - Message Lifecycle → Realtime Events: publishes events
- Channel Management → Channels and DMs: organizes conversations