GAPTEQ Assist generates input or database content in any language at the touch of a button and places it immediately in the correct input field.
Note! Using the demo example “Product management Möbelhaus Müller”, it is described how existing texts/descriptions can be automatically translated into any language and transferred directly to the desired input fields.
Initial situation
In this GAPTEQ application of a furniture store, all product information (name, short description, detailed product description, dimensions, supplier, ...) is recorded in a form. Each product belongs to a product category and is initially recorded with a product name and a brief description.
Aim
With the help of GAPTEQ Assist, the short or (detailed) product description is to be generated in another language (in this case English) and transferred directly to the “Short or product description EN” form field.
1. Place AI chat component & define triggering event
- Drag the AI chat component onto the page (see screenshot below right).
By clicking on a button ("Kurzbeschreibung übersetzten DE - EN"), the short description of the product should be generated in English and transferred directly into the input field of the form provided for this purpose.
- The action “ask(question, showQuestion)” can be stored for the “clicked” event of the button - referenced to the AI chat component.
- A string expression with the corresponding prompt to the AI is stored for the “question” parameter. (“Translate the following text into English”)
2. Define data sources for Promt
- The “selected.Row” command on the “ShortDescription” form field gives the AI the corresponding data source that is to be translated in this case.
- The “showQuestion” parameter is set to “True” with a Boolean.
3. Transfer generated answer to desired form field
The generated translation should be transferred directly into the form field without having to copy and paste the generated text from the AI chat component:
- The generated response can be accepted directly via “Set a value” on the desired form field (here: “form1_ShortDescription”).
Tip! For the translation of the (detailed) product description - or any other content - follow the same procedure.