# Artificial Intelligence with Tryton

**URL:** https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991
**Category:** User
**Tags:** product
**Created:** [October 29, 2024, 12:45pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991 "2024-10-29T12:45:49Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![s.vogel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/s.vogel/32/2328_2.png) [@s.vogel](https://discuss.tryton.org/u/s.vogel)
#### Post date: [October 29, 2024, 12:45pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/1 "2024-10-29T12:45:49Z")

</div>

Rational  
It might be helpful integrating AI into Tryton. Imagine writing descriptions for a product or text about a subject in a quote or an answer to a customer in the upcoming chat module.  
Also to produce pictures could be interesting. I you have a picture of a product, it would be nice to see it in a real world situation. For example you have a pan and tell AI to make a picture of a cook working with it in a lovely kitchen.  
And there this is only the beginning…

Proposal  
Could there be a way to integrate an own AI system with Tryton? Or is it better to connect to an existing one through an API?

Implementation  
No idea, sorry. But if it was kind of “service” on each record (like notes and attachments and chat), that might be helpful.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [October 29, 2024, 12:53pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/2 "2024-10-29T12:53:29Z")

</div>

I have doubt about using generate image to sell a product. Usually the pictures of a product have legal obligations. So I can not see how a generated image could be representing something that exists.

Otherwise there have been already some discussion on [Taking advantage of LLM](https://discuss.tryton.org/t/taking-advantage-of-llm/6032)

---

<div class="post-metadata">

### Author: ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)
#### Post date: [October 29, 2024, 2:19pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/3 "2024-10-29T14:19:26Z")

</div>

I’ve invested so much time with those topics, so here are my two cents:

Things that can be valid use cases for Tryton:

- Generate from the product images of a product the product description
- Generate product translation descriptions for other languages, you write one description, AI rewrites the translations.
- Record the commercial calls on sale opportunities to generate transcriptions and summaries.
- Improve user docs and dev docs to train a model to help users and developers navigate through Tryton or develop (1)
- Draft answers to customer inquiries, but we still miss a chat module (the ongoing development chat is just for internal communication)
- Draft emails to send records (It’s possible but with the simple email templates we’ve enough for now, I can not find a valid use case)

About product Images:

- You will need to use 2 strategies here: Masks (to replace an item in an existing image) and LORA trainings. You will need to provide ~10 photos of your product to generate a training. Also little hacks here and there (like generate noise on images, upscaling, correction models, in paintings).
- Generations can vary due to a lot of customizable parameters depending on the model.
- There’s not a model that works well for all use cases.
- Mokker AI for example have a different approach, they don’t only use a text description to create the background, they have assets you can move and compose like with a sketch editor.
- For all of the above, my recommendation is that you create your custom flow and experiment util you have a consistent generation of images.

Implementation:

- Most of the models work with API, so you can set up your own model in your own server, if the server is hungry in resources and your use of the model is low, normally the costs of the server don’t make sense, so for me it’s better to use external pay per use API.
- Set up running AI servers it’s not an easy task due to incompatibilities with the installed hardware, so for me is another reason to use external services.
- For image, I personally mostly use [replicate.com](http://replicate.com)
- For text, there are some libraries that allow to set the base api url, the key and use a generic python wrapper so you could change the model easily. So you can connect the base api url to it or use any provider (your own, replicate, anthropic, openai…)

---

<div class="post-metadata">

### Author: ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)
#### Post date: [January 20, 2025, 4:09pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/6 "2025-01-20T16:09:51Z")

</div>

> [@acaubet](#):
>
> Things that can be valid use cases for Tryton:

I was thinking on developing the following use case:

- A wizard to create parties. It opens a Text field, you paste the company info you received by email and you get a Party created.  
Most of the time you receive the company info on an email or an invoice with blocks like the following and if the AI generates the json result, it’s easy to create a Party automatically.

> **Input Block**
>
> Dunder Mifflin  
> 1725 Slough Avenue  
> Scranton, PA  
> UNITED STATES

> **AI Result**
>
> {  
> “company\_name”: “Dunder Mifflin”,  
> “street”: “1725 Slough Avenue”,  
> “country\_3\_iso\_code”: “USA”,  
> “subdivision\_iso\_code”: “PA”,  
> “city”: “Scranton”,  
> “postal\_code”: “18505”,  
> “tax\_identifier”: “”,  
> “email”: “”,  
> “phone”: “”,  
> “bank\_account”: “”,  
> }

Let me know if anyone is interested in this easy wizard so I can share it in tryton\_community.

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [January 20, 2025, 5:34pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/7 "2025-01-20T17:34:25Z")

</div>

> [@acaubet](#):
>
> I was thinking on developing the following use case:
> 
> - A wizard to create parties.

Why not using [Client Challenge](https://pypi.org/project/libpypostal/)?

---

<div class="post-metadata">

### Author: ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)
#### Post date: [January 20, 2025, 6:33pm UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/8 "2025-01-20T18:33:34Z")

</div>

> [@udono](#):
>
> Why not using [Client Challenge](https://pypi.org/project/libpypostal/)?

I did not know about that library. But for me this is limited as can not process other data apart from the address, as you can see in the AI Result, there are other interesting fields that can be fulfilled (bank accounts, phone…). Also, my example is also too simplistic, it should handle multiple address (shipment, invoice).

I also plan to extend it with document incoming AI integration, not restricted to typeless (anyone know typeless prices? they are not public), so for me, party creation is the first step.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 21, 2025, 11:48am UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/9 "2025-01-21T11:48:09Z")

</div>

> [@acaubet](#):
>
> not restricted to typeless

Document incoming is not limite to typeless. On contrary it was designed to be plugged with any kind of services.

> [@acaubet](#):
>
> anyone know typeless prices? they are not public

They are available once you create an account.  
It is € 0.10/ page for metadata or € 0.20/ page for line items.

---

<div class="post-metadata">

### Author: ![s.vogel](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/s.vogel/32/2328_2.png) [@s.vogel](https://discuss.tryton.org/u/s.vogel)
#### Post date: [May 10, 2025, 8:49am UTC](https://discuss.tryton.org/t/artificial-intelligence-with-tryton/7991/10 "2025-05-10T08:49:41Z")

</div>

For what I see as most interesting at the moment is to keep down administration tasks and increase customer onboarding quality by using kind of AI telephony butler that delivers structured content (by email via imap\_incoming in a first step). That content then can be used to make a new lead or a new ticket or new project task or a new quote of whatever can be useful.

As I’m not a developer, here a first dummy idea [tryton.cloud | Suisse AI Group Integration - Google Sheets](https://docs.google.com/spreadsheets/d/1H3Zo13SzpQyXjUH0bRylAnrKP7bs5o9hi8K1XR1wdjA/edit?gid=1424674501#gid=1424674501)
