Skip to Content
Menu

ChatGPT Integration

by
Odoo
v 17.0 Third Party 16
Download for v 17.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 745
Technical Name odoo_chatgpt_integration
LicenseLGPL-3
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 745
Technical Name odoo_chatgpt_integration
LicenseLGPL-3

Odoo Chat GPT Integration

ChatGPT Integration for Odoo

This module integrates ChatGPT with Odoo. To use this integration, you need to set up the following parameter in the Odoo system parameters (ir.config_parameter):

  • openai.api_key: Your ChatGPT API key.

This parameter is required for the module to function correctly.

ChatGPT Integration in Odoo

How to Get Your ChatGPT API Key

  1. Go to the OpenAI Platform and log in with your account.
  2. Navigate to the API Keys section in the dashboard.
  3. Click on Create new secret key to generate your API key. Copy and save it securely as you won't be able to view it again.

Installing OpenAI Python Package

To interact with the ChatGPT API in your Odoo module, you need to install the OpenAI Python package. Use the following command:

pip install openai

If you're using Odoo's virtual environment, make sure to activate it first:

                    source path/to/odoo/env/bin/activate
                

Then, install the package:

pip install openai
Note: Make sure to add the OpenAI package to your requirements.txt file if you are deploying your Odoo instance in a production environment.

Example of the Module

Example of ChatGPT Integration Module

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, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.