Configure the Agentic AI Thinking Pattern
AI agents can use different thinking patterns for reasoning. Before you can create an AI agent, you need to create the thinking pattern the agent will use.
- In the left navigation pane, select Projects.
- Select the Simple Expense Approval project that you created.
- In the left navigation pane, select AI Agents
. - In the Agent patterns box, click Add.
The Create pattern panel is displayed.
- In Create pattern, configure required fields for your pattern:

- Name: Name for the thinking pattern. For our tutorial, enter the name
ReAct for Simple Expense Approval Agent. Currently, there are two patterns available in Oracle Integration. ReAct and Plan and Execute. You might want to identify your pattern with those names for easier understanding. - Identifier: Specify
REACTPATTERN_FOR_AGENTS. - Version: Accept the default value of
01.00.0000or change it, if needed. You can create different versions of the same pattern. For example, you create theSimple Decisionpattern with two different versions:- Version
01.00.0000uses the ReAct pattern recipe. - Version
02.00.0000uses the Plan pattern recipe.
- Version
- Pattern recipe: Value sent to the LLM as a system prompt to define how the agent reasons. Select the ReAct pattern for the tutorial. A pattern recipe is implemented as an integration that contains the thinking pattern for the AI agent. Oracle Integration ships with two ready-to-use patterns (ReAct and Plan) and two OCI Generative AI patterns:
- ReAct for OCI GenAI: Reasoning and action pattern for OCI Generative AI models. See Generative AI.
- ReAct: Reasoning and action pattern for non-OCI Generative AI models. The AI agent alternates between reasoning and acting. The AI agent updates its plans based on new information that it learns. The AI agent prompts the LLM for the next action, acts, learns, and then repeats.
- Plan GenAI: Planner for plan and react pattern for OCI Generative AI models. See Generative AI.
- Plan: Planner for plan and react pattern for non-OCI Generative AI models. The AI agent prompts the LLM to generate a complete plan, then executes that plan step by step.
ReAct and Plan are two separate patterns that must be orchestrated in sequence, respectively.
- Name: Name for the thinking pattern. For our tutorial, enter the name
- Click Create.The Pattern details page is displayed.
- Configure the Pattern and LLM.
- Leave the following fields with the default number:
- Max iterations: Leave Max iterations as the default number. This limits the number of reasoning and action steps the agent can take before providing a final answer or exiting. This field prevents infinite loops.
- In the Guidelines box, enter the following guidelines for the ReAct thinking pattern:

Strictly follow all guidelines. It is mandatory that you reflect on all guidelines provided. You should follow the ReAct agent pattern (Reason + Act) when generating a response. Pattern: Think - using your internal reasoning. Action - Invoke tools to get information, including additional human input. Observe - Process tool response using your internal reasoning. Repeat - Repeat until finished. At each step you provide your think, action, and observe rationale. You should always attempt to get the most relevant information based on tool use. Do not guess or infer tool arguments except for the following reasons: You are given specific guidance by the tool on inferring a tool argument. You have previous context to make a reasonable assumption. - Click Save.
- Under LLM Connections, click
to configure the LLM connection.A new LLM connection is created and is displayed. - Configure connection information for your LLM.

- Base URL: URL to connect to your LLM. For example:
https://api.openai.com. - Model: Model to use for your AI agent. For example:
gpt-4o-mini - API Key Based Authentication: Specify your API key to connect to the LLM.
- Base URL: URL to connect to your LLM. For example:
- Click Test to test that your connection works, then click Save.
When you save, Oracle Integration creates an integration that implements the ReAct pattern called ReAct Pattern Intg in the Integrations section. This system-created integration is automatically activated for the agent.
- Leave the following fields with the default number:
- Click Back
to return to the Pattern details page. - Click Back
to return to the AI Agents page. - Activate the thinking pattern. The pattern must have the status Active before you can specify it in your agent.
- In the Agent patterns section, next to ReAct for Simple Expense Approval agent, click Actions
, and select Activate.
- In the Agent patterns section, next to ReAct for Simple Expense Approval agent, click Actions
After your thinking pattern is created for your AI agent, Oracle Integration automatically creates the ReAct Pattern Intg integration in your project. Select the Integration section to see it. The integration is system-generated and is required for your AI agent. You don't need to change or edit it.
The LLM connection is also automatically created for you.