Skip to Content
Menu

Gemini AI Connector

by
Odoo

34.23

v 17.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1696
Technical Name d_gemini_ai_connector
LicenseOPL-1
Websitehttps://duong-odoo-apps.odoo.com
Versions 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 1696
Technical Name d_gemini_ai_connector
LicenseOPL-1
Websitehttps://duong-odoo-apps.odoo.com
Versions 17.0 18.0

Gemini AI Connector

Integrate Google Gemini AI into your Odoo workflows! Generate content, translate messages, and enhance productivity with AI-powered assistance across your business applications.

Customizable Gemini AI Configurations

Create and configure multiple Gemini AI models for different business needs. Each configuration can be tailored for specific use cases like content creation, customer support, or technical documentation.

  • Select from various Gemini models (Gemini 1.5 Pro, Gemini 2.0 Flash, etc.)
  • Customize system instructions to define AI behavior
  • Fine-tune parameters like temperature and token limits
  • Configure safety settings to ensure appropriate content
  • Link configurations to specific Odoo models for context-aware assistance
Gemini AI Configuration

Gemini AI Everywhere You Need It

Access Gemini AI from anywhere in Odoo with our seamless integration. Generate content directly in the editor, just like with ChatGPT, but with the power of Google's Gemini models.

Gemini AI in Blog Editor
Gemini AI in Project Tasks

Gemini Free Message Translation

Translate messages in any language with a single click using Gemini AI. Break down language barriers in your communication without any additional cost.

  • Automatic language detection
  • High-quality translations powered by Gemini AI
  • Works in chatter, inbox, and channel messages
  • Toggle between original and translated text
Message Translation with Gemini

Gemini AI-Powered Email Replies

Generate professional email responses with a single click. Save time and ensure consistent communication with AI assistance in your chatter.

  • Context-aware responses based on previous messages
  • Customizable tone and style
  • Insert generated content directly into composer
  • Works with all mail-enabled (chatter) models
AI Email Reply

Free Gemini Extension Modules

Extend Gemini AI capabilities with specialized modules for different business areas:

Each extension module automatically links Gemini configurations with corresponding models, helping the system prioritize the most relevant configurations when users open the Gemini AI dialog in specific modules.

Documentation

Please go to documentation tab in the right side to see how to configure tiktok developer app and in odoo as well

Documentation Tab

Technical Requirements

  • Google Gemini API key
  • Python package: google-generativeai

Support

Have questions or need assistance? Contact us at duongodooapps@gmail.com.

Gemini AI Connector Usage Guide

This guide will walk you through how to use the d_gemini_ai_connector module in Odoo to leverage Google's Gemini AI for content generation, translation, and other AI-powered features.

1. Getting Started

1.1. Obtaining a Gemini API Key

To use Gemini AI in Odoo, you'll need to obtain an API key from Google:

  1. Visit https://aistudio.google.com/apikey
  2. Sign in with your Google account
  3. Click on "Create API key" button
  4. Copy your API key (keep it secure as it provides access to paid services)
Getting Gemini API Key

1.2. Configuring Gemini in Odoo

After obtaining your API key, configure it in Odoo:

  1. Navigate to Gemini AISettings
  2. Enter your Gemini API key in the "API Key" field
  3. Click "Save" to store your configuration
Gemini Settings in Odoo

2. Creating Gemini Configurations

2.1. Creating a New Configuration

Gemini configurations define how the AI behaves for different use cases:

  1. Navigate to Gemini AIGemini Configurations
  2. Click "Create" to add a new configuration
  3. Fill in the following fields:
    • Name: A descriptive name (e.g., "Blog Writer", "Email Assistant")
    • Model Name: Select the Gemini model to use (e.g., Gemini 1.5 Pro, Gemini 2.0 Flash)
    • System Instruction: Define the AI's role and behavior
    • Temperature: Controls randomness (0.0-1.0, higher = more creative)
    • Top P: Controls diversity (0.0-1.0)
    • Top K: Limits vocabulary options
    • Max Output Tokens: Maximum response length
    • Stop Sequences: Optional text that stops generation
    • Is Translation: Enable for translation-specific configurations
    • Description: Optional notes about this configuration's purpose
Creating a Gemini Configuration

2.2. Safety Settings

Configure content filtering for each configuration:

  1. Go to the "Safety Settings" tab
  2. Add safety rules for different harm categories: - Hate Speech - Sexually Explicit - Dangerous Content - Harassment
  3. Set appropriate thresholds for each category (Select the threshold for blocking content in this category. Higher sensitivity blocks more)
Safety Settings Configuration

2.3. Usage Areas

The "Usage Areas" tab is crucial for determining where each Gemini configuration appears:

  1. Go to the "Usage Areas" tab
  2. Select the Odoo models where this configuration should be available
  3. For example:
    • Type "Blog" for blog writing assistance
    • Select "Project" for project/task description generation
    • Select "mail message" for email replies

This setting ensures that when users open the Gemini dialog in specific areas of Odoo, the most relevant configurations appear first.

Usage Areas Configuration

2.4. Testing Your Configuration

Before using a configuration in production:

  1. Click the "Test Gemini" button at the top of the configuration form
  2. Enter a test prompt
  3. Click "Run Test" to see how Gemini responds
  4. Adjust configuration parameters if needed

3. Using Gemini AI in Odoo

3.1. Content Generation in Editors

Gemini AI is integrated with Odoo's rich text editor:

  1. Open any editable content (blog post, project task, etc.)
  2. Type the word "/Gemini" then open a gemini prompt dialog
  3. Select a Gemini configuration (relevant ones appear first)
  4. Enter your prompt describing what content you need
  5. Click "Generate" to create content
  6. Review the generated content and click "Insert" to add it to your document
Gemini in Editor

3.2. Generating Alternatives for Selected Text

To improve or transform existing content:

  1. Select text in the editor
  2. Click the "Gemini AI" button
  3. The dialog will open in "Alternatives" mode
  4. Choose a transformation type or enter custom instructions
  5. Review the alternatives and select the one you prefer
  6. Click "Insert" to replace the selected text
Generating Alternatives

4. Message Translation and Replies

4.1. Translating Messages

Translate messages in any chatter with one click:

  1. Hover over a message in any chatter
  2. Click the "Translate with Gemini" button (language icon)
  3. The message will be translated to your current user language
    • For example, if your user language is French and the message is in English, it will be translated to French
  4. Click the same button again to toggle back to the original message
Message Translation

4.2. AI-Powered Email Replies

Generate contextual replies to messages:

  1. Hover over a message in any chatter
  2. Click the "Gemini AI Reply" button
  3. A dialog will open with the message context
  4. Enter any specific instructions for the reply
  5. Review the generated reply
  6. Click "Insert" to add it to the message composer
AI-Powered Reply

5. Blog Post Creation

5.1. Writing Blog Posts with Gemini

Create engaging blog content quickly:

  1. Navigate to Website → Blog
  2. Create a new blog post or edit an existing one
  3. Click the "Gemini AI" button in the content editor
  4. Select a blog-optimized Gemini configuration
  5. Enter a prompt like "Write a blog post about [topic] with these key points: [points]"
  6. Review and insert the generated content
  7. Edit as needed and publish
Blog Writing with Gemini

5.2. Improving Existing Content

Enhance your blog posts:

  1. Select a portion of your blog post
  2. Click the "Gemini AI" button
  3. Choose "Make it more engaging" or enter custom instructions
  4. Review the alternatives and select the best one
  5. Continue refining your content with Gemini's assistance

6. Troubleshooting

Common Issues:

  • API Key Invalid: Verify your API key in Gemini AI → Settings
  • Rate Limits Exceeded: Free tier has limits (check https://ai.google.dev/gemini-api/docs/rate-limits)
  • No Configurations Available: Ensure you've created configurations and assigned them to the correct models

For additional support:

8. Security Notes

  • Keep your API key secure
  • Review system instructions to prevent inappropriate prompts
  • Configure safety settings appropriately for your organization
  • Be aware of data privacy when using external AI services
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.