LLM

◷ Reading Time: 2 minutes

Open AI

The FlexRule LLMs OpenAI extension allows you to integrate OpenAI’s Large Language Models with your decision models. You can send prompts to OpenAI and receive responses directly within your FlexRule models.

You need your Open AI key for this. For instructions on how to get the Open API key, please refer to this article.

Free-tier keys are not supported

Configure the Open AI Extension in FlexRule

Install the latest “FlexRule.Extensions.LLMs.OpenAI” extension from the Extension manager.

Then Navigate to Project Properties -> Extensions, and then enable the “LLM” extension by clicking on the check box.

LLM properties Extension

How to use LLM

Create/open Activity Flow logic document.

In the ToolBox, you can find the “Prompt” under the LLM section.

LLM prompt

You can drag and drop the Prompt node to your activity flow document.

Configuring properties

Prompt Settings
  • OpenAI Key: Enter your OpenAI API key.
  • Memory ID (Optional):
    • Used to maintain conversation context.
    • If you reference a previous prompt, provide the same Memory ID.
  • Prompt: Enter your question or instruction for OpenAI.
  • Copy Results To:
    • Automatically creates a parameter to store OpenAI’s response.

You have to define parameters for OpenAI Key, MemoryID, and Prompt for assigning values to it.

Updated on April 7, 2025

Was this article helpful?

Related Articles