AI Bridge Extra Parameters
Easily add custom parameters to your AI Bridge. Send dynamic values from Odoo records to your AI models using simple Python expressions or formulas.
Key Features Overview
Add custom data, dynamic calculations, or static values directly to your AI payloads.
Custom Variables
Add custom variables to send extra details along with your main request.
Python Formulas
Use Python formulas to run multi-line scripts for calculations and data mapping.
Execution Sandbox
Runs your Python code safely by blocking database writes or dangerous imports.
Evaluation Context
Get values from either the current document record or from the AI Bridge settings.
Many-to-Many Linkage
Create a parameter once and easily link it to multiple AI Bridges.
Unified API Nesting
Keep payloads clean by grouping all extra values under a single JSON key.
Define Custom Extra Parameters
Easily create custom parameters for your AI requests. Decide how they are calculated (Expression vs Formula) and what data they can access (Record vs Bridge).
Dynamic Payload Association
Link your extra parameters directly to any AI Bridge. Connect multiple parameters to customize what each bridge sends.
Structured JSON Output
The module automatically calculates your parameters when sending the request, adding them neatly under an 'extra_parameters' key in the final request.
Frequently Asked Questions
Find quick answers to common questions about Odoo AI Bridge Extra Parameters.
What is the difference between Expression and Formula modes?
Expressions are simple single-line values (like a field name). Formulas are multi-line scripts that assign a value to the 'result' variable.
How do context objects work?
Setting context to 'Record' reads details from the current document record. Setting it to 'Bridge Self' reads details from the AI Bridge settings.
Is it safe to run custom Python code inside Odoo?
Yes! The module scans the code and blocks dangerous actions like editing database records or importing external libraries.
How are parameters packaged in the final API call?
They are grouped under a single key called 'extra_parameters' in the request.
Can I reuse the same parameter across multiple bridges?
Yes! You can define a parameter once and link it to as many bridges as you want.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Community Apps Dependencies | Show |
| Lines of code | 1467 |
| Technical Name |
ea_ai_bridge_extra_parameters |
| License | LGPL-3 |
| Website | https://www.erpartists.com |
Please log in to comment on this module