Description:
This step is used to complete the Azure OpenAI text chat.
Inputs
- question - question to ask
- actAs - act as a persona
- model - OpenAI deployment model. For example gpt-4o
- temp - controls the "creativity" of the generated text, between 0 and 2
- varGlobalResult - variable/global to store the chat completion result
- files - list of image files to facilitate the chat completion
Returns
- True – step executed successfully
- False – step failed to execute
Usage:

Example:
Let’s build and execute the “azureOpenAIDef” example.
- Create a new definition called “azureOpenAIDef”
- Select the definition and click the “design” button
- Drag an “azureOpenAI” step from the toolbox
- Connect the dots between the Start and “azureOpenAI” step
- Click the "azureOpenAI" step to configure its "Required" properties. Provide a name to the step. Provide the text question to ask. Provide the OpenAI chat models. Provide the variable/global reference to store chat completion results. Click the Save button to confirm.

- Click the "azureOpenAI" step to configure its "Optional" properties. Provide a persona description. Set a temperature value between 0 and 2 to control the "creativity" of the generated text. Provide the list of image file paths on the application server.

- The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown in the images below. Configure the “Logging” using the following properties.

- Save the process definition, create a new instance, and execute. Render the process instance. Click on the process step to view its properties. The “azureOpenAI” step should complete the chat conversation using the persona's reference.

Definition Sample:
You may download the sample definition(s) from the link here and later import it (drag-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page.
NOTE: Please verify and complete the process steps for any missing configurations, such as file path references and database connections after import. Then, save the definition to confirm the changes.