| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 9856 |
| Technical Name |
llm_assistant |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 9856 |
| Technical Name |
llm_assistant |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
| Versions | 16.0 18.0 |
LLM Assistant Module
Create and manage specialized AI assistants with dedicated tools and configurations.
Build purpose-built AI helpers for different use cases in Odoo
What is LLM Assistant?
Specialized AI assistants for your Odoo workflows
The LLM Assistant module extends the core LLM integration by providing a framework for creating and managing specialized AI assistants. Each assistant can have its own configuration, tools, and system prompts, enabling more targeted AI assistance for different use cases.
Key Features
Everything you need to create specialized AI assistants
Create Specialized Assistants
Build AI assistants tailored for specific tasks like customer support, sales, HR, or technical documentation.
Assign Models & Providers
Configure specific LLM providers and models for each assistant to optimize performance and costs.
Configure Tools & Capabilities
Attach specific tools to each assistant, giving them the ability to perform actions in Odoo.
Custom System Prompts
Define unique personalities and behaviors with customizable system prompts using template variables.
Easy Assistant Switching
Switch between assistants during conversations from the chat interface dropdown.
Role-Based Access Control
Regular users can use assistants while only managers can create and edit them.
Use Cases
Create specialized assistants for different departments
Customer Support
Answer product questions and troubleshoot issues.
Sales Assistant
Product recommendations and pricing information.
HR Assistant
Policy questions and onboarding information.
Technical Expert
Documentation and code examples.
Technical Details
Requirements and dependencies
Module Information
llm_thread, llm_tool
Productivity/LLM
18.0.1.0.0
LGPL-3
Configuration
Navigate to LLM → Configuration → Assistants to create and manage your AI assistants.
Related Modules
Build your complete AI ecosystem
LLM Assistant for Odoo
Advanced AI assistant management with integrated prompt templates, testing capabilities, and intelligent configuration orchestration.
Module Type: 🚀 Entry Point
Installation
What to Install
This is the main entry point for AI chat features in Odoo.
Basic AI Chat Setup:
odoo-bin -d your_db -i llm_assistant,llm_openai
Auto-Installed Dependencies
These are pulled in automatically:
- llm (core infrastructure)
- llm_tool (function calling)
- llm_thread (chat interface)
- mail (Odoo messaging)
Choose a Provider
Common Setups
| I want to... | Install |
|---|---|
| Chat with GPT-4 in Odoo | llm_assistant + llm_openai |
| Use local AI (privacy) | llm_assistant + llm_ollama |
| Add document search (RAG) | Above + llm_knowledge + llm_pgvector |
| Connect Claude Desktop | Above + llm_mcp_server |
| Build domain-specific assistant | Extend (see llm_assistant_account_invoice) |
Overview
The LLM Assistant module provides sophisticated AI assistant management that goes far beyond simple chatbots. It serves as the intelligent configuration layer that orchestrates how AI models interact with Odoo data.
Core Capabilities
- AI Assistant Configuration - Define specialized AI personas with specific roles
- Integrated Prompt Management - Consolidated prompt template system
- Template Testing - Built-in testing wizard for prompt validation
- Context Orchestration - Intelligent mapping between Odoo data and AI inputs
- Tool Management - Configure available tools and their usage patterns
Key Features
Consolidated Architecture
- Prompt templates integrated into assistant management
- Enhanced testing wizard with context simulation
- Streamlined UI with unified assistant and prompt selection
- Auto-argument detection for template variables
- Schema synchronization between templates and forms
Assistant Types
Chat Assistants
assistant = env['llm.assistant'].create({ 'name': 'Customer Support Bot', 'role': 'Customer Service Representative', 'goal': 'Provide helpful and accurate customer support', 'background': 'Expert in our products with access to CRM data', 'instructions': ''' - Always be polite and professional - Use customer history for personalized responses - Escalate complex issues to human agents ''', 'tool_ids': [(6, 0, [crm_tool.id, knowledge_tool.id])] })
Content Generation Assistants
assistant = env['llm.assistant'].create({ 'name': 'Marketing Content Creator', 'role': 'Marketing Specialist', 'goal': 'Create compelling marketing content', 'prompt_id': marketing_template.id, })
Prompt Template System
Template Management
prompt = env['llm.prompt'].create({ 'name': 'Sales Email Generator', 'template': ''' Generate a personalized sales email for {{customer_name}} regarding {{product_name}}. Customer Context: - Company: {{customer_company}} - Industry: {{industry}} Email should be {{tone}} and focus on {{key_benefits}}. ''', 'format': 'text', }) # Arguments automatically detected prompt.auto_detect_arguments()
Testing & Validation
wizard = env['llm.assistant.test.wizard'].create({ 'assistant_id': assistant.id, 'test_context': { 'customer_name': 'John Smith', 'product_name': 'Enterprise Software' } })
Configuration Guide
Basic Setup
Set up AI Provider:
Navigate to LLM → Configuration → Providers:
- Create a new provider with your API credentials
- Click Fetch Models to import available models
Create AI Assistants:
Go to LLM → Configuration → Assistants:
- Configure assistants with specific roles
- Assign prompt templates and available tools
Start Chatting:
Navigate to LLM → Chat to start conversations
API Reference
Assistant Methods
# Get system prompt with context system_prompt = assistant.get_system_prompt(context={ 'customer_name': 'John Doe' }) # Prepare conversation context context = assistant.prepare_context( record=sale_order, user_input="Tell me about pricing" ) # Get available tools tools = assistant.get_available_tools()
Technical Specifications
Module Information
- Name: LLM Assistant
- Version: 18.0.1.5.0
- Category: Productivity
- License: LGPL-3
- Dependencies: llm, mail
- Author: Apexive Solutions LLC
Key Models
- ``llm.assistant``: Main assistant configuration
- ``llm.prompt``: Integrated prompt template management
- ``llm.prompt.category``: Template categorization
- ``llm.assistant.test.wizard``: Testing and validation
Resources
- GitHub Repository
- Architecture Overview
License
This module is licensed under LGPL-3.
© 2025 Apexive Solutions LLC. All rights reserved.
Please log in to comment on this module