[18.0][ADD] ai_oca_bridge_hermes#75
Draft
rvalyi wants to merge 3 commits into
Draft
Conversation
073d0b7 to
ef4808e
Compare
ef4808e to
1fc73ef
Compare
…sponses Add _is_ai_mentioned and _should_queue_for_hermes methods to control when Hermes responds in Discuss channels: - DM (chat): always respond (1-to-1 conversation) - Group/channel with @mention: always respond - Group/channel without mention: only if auto-respond enabled AND channel explicitly monitored by the gateway This prevents Hermes from spamming group channels while still allowing users to invoke it explicitly with @Hermes.
…fy soft dependency Add hermes_notify endpoint to send proactive web notifications to users. Uses web_notify module (OCA/web) as soft dependency: - If installed: displays toast notifications with action buttons - If not installed: falls back to DM message Supports notification types: success, warning, danger, info, default. Allows sticky notifications and optional action to open records.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI OCA Bridge Hermes
This module integrates Odoo Discuss with the Hermes AI Agent, allowing users to chat with AI assistants directly within Odoo's messaging interface. It was largely vibe-coded using Kimi k2.6. We have no OCA guidelines for this, but if you feel we should change the copyrights or module author, I can change that.
Key Features
Architecture
The module uses a polling-based design for maximum compatibility: Hermes polls Odoo for pending messages via
/hermes/poll, processes them with the AI, and posts responses back via/hermes/webhook/<token>. A standalone gateway script (scripts/hermes_odoo_gateway.py) runs outside Odoo and connects to any number of Odoo instances.Security & Multi-Tenancy
company_id) with multi-company rulesCompatibility
ai_tool([18.0] [MIG] ai_tool #69): if installed, Hermes tools are exposed via MCP; if not, a native/hermes/tools/*API is available_action_escalate) for child modules to implement ticket creation, team notification, or inter-Hermes routingTesting it:
Create the Hermes Gateway
Create the AI User
Run the gateway