Add a Generative AI activity
Use the following procedure to make use of Generative AI functionality within your Quick Workflow solution. The Generative AI activity type is also available when configuring a condition, true/false condition, and a loop.
-
Click
below the Start node or any other node
The Add activity dialog box is displayed.
- Change the default Name of the activity as required.
-
On the
Type list, select
Generative AI.
If a Generative AI provider was not already configured, a warning message appears. To configure the AI provider, navigate to the TotalAgility Apps landing page, select the Kofax Copilot card and click Configure. You can also configure the AI providers in the TotalAgility Designer. Refer to Integrate ChatGPT with TotalAgility in Kofax TotalAgility Designer Help.
- By default, the Generative AI appears as Title. You can change the title as needed.
- The Provider list includes the list of providers already configured. Select the Generative AI provider (ChatGPT OpenAI, Azure OpenAI, or Custom LLM).
-
In the
Input box, provide the input to the activity as a string that can be a
combination of plain text or variables including XML and Data object. For example, a String variable with the value as "When is the
world environment day celebrated."
The following variables are not supported: Document, Folder, Complex, Dynamic complex, Checklist, and Data backbone.
-
On the
Source list, select one of the following:
None (default)
The response from the AI provider is based on the input provided (plain text or variables).
Image
-
On the Document list, select a document variable.
All the Generative AI models do not support the use of images, including the Custom LLM. -
On the Mime type list, select the file type. (Default: PNG)
The following mime types are supported: GIF, JPEG, and PNG.
Narration
On the Document list, select a document variable.
The response is generated based on the narration of the image passed as an input at runtime.
When you set the source format as image narration, the standard model configuration is used.
On upgrading TotalAgility from an earlier version, the Source format is set to None. -
- On the Response list, select a variable, such as String to hold the response for the provided input.
-
Set the process
Temperature for the AI provider. (Default: 0.5, Minimum: 0, and Maximum: 2)
Temperature is a parameter that controls the level of creativity in the AI-generated text. You get a more focused or diverse text based on the temperature set. A higher temperature means the model takes more risks, giving you a mixed response.
- Specify a State to be set when the workflow reached this point.
-
Click
Add.
The Generative AI node is added and the properties are updated and displayed in the properties panel.
-
When you publish the solution, the corresponding settings are populated in the generated workflow and the system does
the following:
-
Passes the correct input to the selected AI provider and populates the mapped variable at runtime.
-
Pass the correct image or narration to the AI provider as part of the input and return the response.
-
Records an audit entry that the Generative AI activity is executed.
When you export a process and import it to a target server, the activity is executed correctly if the provider is configured with the same name as the source server.
-