OdooBot ChatGPT AI integration

by
Odoo
v 15.0 Third Party 782
Download for v 15.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3577
Technical Name chatgpt_bot
LicenseAGPL-3
Websitehttps://fl1.cz
Versions 15.0 14.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3577
Technical Name chatgpt_bot
LicenseAGPL-3
Websitehttps://fl1.cz
Versions 15.0 14.0

OpenAI ChatGPT Odoo Module

License: AGPL-3

This Odoo module allows for seamless integration with the OpenAI ChatGPT API,
providing advanced natural language processing capabilities within the Odoo platform. With this module, users can leverage the power of ChatGPT to generate human-like text, perform language translation, and more. It utilizes API calls to communicate with the OpenAI service, making it easy to set up and use.

You can answer: how many company in the system? how many contacts in a system? whats is today? > Add gpt-3.5-turbo model

Table of contents

video * https://www.youtube.com/watch?v=8eiaRQZu4II

Configuration

  • Go to 'Settings / chatGPT bot and set an API key'.
  • you can retrive an api Key from https://beta.openai.com/ and create a new key here: https://beta.openai.com/account/api-keys
  • This module require the offical library openai
  • you install with pip install openai
  • Now you can use the chatGPT bot in the chat window.
  • you can set the default bot in the file mail_bot.py

Bugfix and new features

05/03/2023 * add historic conversation for new model and correct order for message 03/03/2023 * add support for gpt-3.5-turbo model

24/02/2023 * bugfix error in coversation review the last response

15/12/2023 * add support latest conversartion and some data in mail_bot.py

Usage

To use this module, you need to:

  • require queque_job from queue_job.
  • After the installation to this module, you must change the configuration and add this on the configuration file:
  • server_wide_modules = base,web,queue_job add queue_job
  • Then restart the server and see a logs file in server console.

History Context

  • Now you can use the chatGPT with latest conversation and maintain the context of the conversation.
  • default pass a 10 latest conversation and some data in the context.
  • The conversation is natural and contextual.
  • You can answer: how many company in the system? how many contacts in a system? whats is today?

Added support for same user language - you can set the language in the user preferences.

images/image1.png

This module is required for not blocking the server when the API is called.

Configuration users

inside the preferences of the user you can set the chatGPT bot as default bot.

images/image2.png

You can activate or deactivate the chatGPT bot for each user. You can activate or deactivate the chatGPT directly in the chat window.

You can type: #enable or #disable

images/image3.png

Example

images/image4.png images/gif_chat.gif

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • FL1 sro

Contributors

Maintainers

This module is maintained by the FL1.

Odoo Fl1 sro

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.
****
by
Thomas Guénard
on 3/29/23, 5:26 AM

any chance that odoo includes your module into ts enterprise set of apps?

Re: ****
by
FL1 s.r.o.
on 3/29/23, 9:29 AM Author

i don't know.

Now chatgpt is under development. 
we attempt the first stable release to integrate without massive bugfix.

do you have a problem with app?


Odoo 16?
by
ronald
on 8/15/23, 2:48 PM

Are you planning to make this module available for Odoo 16?


problem can find openai
by
Felix Gomez
on 6/28/23, 3:35 PM

Hi: i try to install but before install say need openai lib.

i can not install it




by
Hieu Nguyen
on 6/7/23, 12:35 AM

Would this be supported in Odoo 16?


Pending queue issue
by
test
on 5/30/23, 6:23 AM

i did copy the api key in setting but i got the pending queue issue. do you have any suggestion? 

Re: Pending queue issue
by
FL1 s.r.o.
on 5/30/23, 7:38 AM Author

Do you have restarted the server after install queue ?


How does Your module integrate or replace the search function inside the website linked to the user odoo db?
by
Thomas Guénard
on 1/26/23, 11:07 AM

Hello

I would like to get the website visitors search our business domain using openaigpt api.

is it available from your own module?

if yes, do you plan to have it integrated as an enterprise contract by Odoo (as I am a Odoo Saas user, I can not use external modules from the community)?

Regards

mm.guenard@free.fr

Re: How does Your module integrate or replace the search function inside the website linked to the user odoo db?
by
FL1 s.r.o.
on 3/6/23, 6:22 AM Author

Hi,

is not possibile add this module in odoo online.

io you migrate in odoo.sh you can use this module.

Tanks