Skip to content

Workflow Agents

A workflow is a connected sequence of nodes with explicit task order and routing. Use it for processes that need repeatability, defined dependencies, and visible control over business actions. Individual steps can use agents or LLMs without handing control of the entire process to a model.

Plan the process

Break the business process into tasks. For each task, identify its inputs, node type, expected output, and error behavior. Separate fixed logic and data operations from tasks that need language understanding.

For example, a purchasing process can use an LLM to extract quotation details, a Business Object Function node to validate the supplier, a policy function to evaluate rules, and a Human Approval node before further action. Define the handoff between each step before writing its prompt.

Create a workflow agent

See Workflow Editor for creation fields, toolbar actions, palettes, expressions, and draft management.

  1. Open AI Agent Studio > Workflows and select Add.
  2. Configure the workflow settings below.
  3. Add nodes and connect the execution paths.
  4. Map inputs and outputs using static values or expressions.
  5. Debug representative scenarios and publish the workflow.

You can also describe the desired workflow in Ask Oracle, switch the tag beneath the field to Workflows, and submit the request to start authoring.

Workflow settings

The table below is an overview. Use the complete Workflow Settings reference for field definitions, options, defaults, conditional forms, and TBDs.

Tab Configuration
Details Enter Agent Team Name, Agent Team Code, family, product, Tags, and description. Configure Expose to Agentic Apps and estimated time/cost savings. The saved draft's code is disabled.
LLM Select the workflow's model according to capability, performance, and cost needs.
Security Configure employee/role access and Run signal triggers as. Execution identity and access are distinct controls.
Chat Experience Configure Answer in user's language, local file uploads, and third-party file uploads. Cloud file uploads require provider credentials in Credentials > Chat Experience.
Questions Enter Starter Questions and enable Follow-up Questions if required.
Triggers Configure events or entry points that start the workflow.
Variables Define values shared across workflow nodes.
Error Handling Set email details for permanent workflow errors. Supported fields can use context expressions.

Workflow canvas

Connect nodes in the order they must execute. You can insert a node before, after, or between existing nodes. Use descriptive names so the graph shows the business process, and retain stable codes for nodes referenced in expressions.

flowchart LR
    A[Start] --> B[LLM: extract intent]
    B --> C{Switch}
    C -->|Supported| D[Business Object Function]
    C -->|Missing details| E[LLM: ask for clarification]
    D --> F[LLM: format response]
    F --> G[End]
    E --> G

This illustrative flow separates interpretation, routing, data retrieval, and response generation. Select the actual nodes from the Node Types reference.

Inputs and context

Expressions use {{...}} to read runtime values. Supported value types include string, date, integer, number, Boolean, object, and array. Enter an expression directly or use Insert Expression.

Value Expression
Current date {{$context.$system.$currentDate}}
Current date and time {{$context.$system.$currentDateTime}}
Incoming chat message {{$context.$system.$inputMessage}}
Conversation history {{$context.$system.$chatHistory}}
Trigger type {{$context.$system.$triggerType}}
Authenticated user {{$context.$user.$name}}
Workflow trace {{$context.$workflow.$traceId}}
Conversation identifier {{$context.$workflow.$conversationId}}
User-defined variable {{$context.$variables.variableName}}
Complete node input {{$context.$nodes.NODE_CODE.$input}}
Complete node output {{$context.$nodes.NODE_CODE.$output}}
Specific output field {{$context.$nodes.NODE_CODE.$output.fieldName}}
Node execution status {{$context.$nodes.NODE_CODE.$status}}
Failed node's detailed error {{$context.$nodes.NODE_CODE.$error.$info}}
Failed node's error code {{$context.$nodes.NODE_CODE.$error.$code}}
REST trigger field {{$context.$triggers.REST.$input.fieldName}}
Email subject {{$context.$triggers.EMAIL.$input.subject}}

Replace NODE_CODE, variableName, and fieldName with configured values. Email trigger inputs also include fromAddress, content, headers, and attachments.

Pass full objects when the next node needs the complete structure. Use specific fields for conditions, variables, and concise prompts. A field missing at runtime can resolve to empty or null, so inspect the actual output before relying on a property path.

Read the failed node's error details from its Error Handler path. Error details are scoped to the node that failed.

Define shared variables

  1. In workflow settings, open Variables and select Add.
  2. Enter the variable name and type.
  3. Select User Question or Conversation as its scope, then apply and save.
  4. Add Logic > Set Variables to the graph where the value must be assigned.
  5. Select the variable and supply a static value or expression.

Read the value later with {{$context.$variables.variableName}}.

Branching and routing

Use If Condition for a conditional path and Switch for routing among supported values. Define the expected intent values in the upstream extraction prompt and output schema, and make branch labels consistent with those values.

When debugging a wrong route, inspect the upstream node's extracted value, the decision expression, the branch selected at runtime, and the first node on that branch. Include missing, invalid, and unsupported values in the test inputs.

Use For Loop, While Loop, Parallel, and Wait where the process needs iteration, concurrent branches, or a pause. Inspect loop state and each parallel branch independently. Configure a node's error handler where applicable, and use workflow-level Error Handling for permanent-error notification.

Reusable workflows and logic

A Workflow node calls another workflow. Use an explicit input and output contract and inspect the returned structure before passing it downstream.

Within a workflow, a Reference Block groups reusable nodes and logic. Add parameters and their types to the block. At each call site, add a Reference node, select the block, and map the input values. Leave the Reference node's output schema blank to use the block's output.

A Return node can end a branch and return a specific value to its caller. Use it when the component needs an explicit result; it is not required in every workflow.

For reusable functions, open Resources > Functions. Functions can define typed inputs, a return type, code, and test cases, and can be used in Code nodes.

Configure triggers

Triggers activate after publication. Open Settings > Triggers in the workflow editor.

Entry point Configuration and verification
Webhook Add a webhook trigger with a name and type, apply it, and publish.
Capability Define the operation's name, description, and input schema in Capabilities. Enable Read Only for operations with no side effects and Requires Compute for operations that need compute execution. See Capabilities in Workflow Settings for setup and routing.
Email Register an Inbound account in Credentials > Email Accounts, then select it in the trigger's Email subtab. Verify activity in Monitoring and Evaluation > Activities > Inbound Emails.
Schedule Choose Interval to run at fixed intervals or Recurrence to run once at a specified date and time or repeat on a calendar pattern such as daily, weekly, or monthly. Enter schedule dates and times in UTC. See schedule setup.
Signal Create a versioned signal with a payload schema in Resources > Signals, then subscribe to an active definition in the workflow. Configure Max attempts, Retry delay, and Backoff policy.

Each email-triggered workflow monitors one unique inbound account. The account cannot be shared with another workflow or used as an approver account.

Scheduled triggers require FAI Batch Job Manager (ORA_DR_FAI_BATCH_JOB_MANAGER_DUTY) access in Security Console. For signal filters, retry policies, and dead-letter delivery, see signal configuration.

Testing in the debugger

  1. Edit the workflow and select Debug in the toolbar.
  2. Submit a representative prompt through Ask Oracle in the conversation pane.
  3. Follow the highlighted execution path on the canvas.
  4. Select completed nodes and inspect Results and Configuration.
  5. Confirm the final response in the conversation pane.

When a result is incorrect, trace backward to the first wrong value. For a node, inspect output, input, variables, context, and configuration. Check expression spelling, node codes, execution order, and the actual output schema.

Save repeatable scenarios

Open Debug > Run Profiles > Create new profile. Give each profile a business-oriented name and set its type and inputs. Replay profiles for each branch, major intent, successful case, error case, and known defect.

Use breakpoints before decisions or important handoffs. Pin stable upstream outputs to avoid repeated calls while investigating a later step. Simulated output and configuration overrides help test edge cases and candidate fixes. Accept a configuration change only after validating it.

Finish with a clean run

Remove temporary breakpoints, pinned or edited outputs, mocks, and configuration overrides. Run the full workflow again and replay affected profiles before publishing. A successful simulated run does not verify the real integration.

For an update node, confirm the operation, target identifier, and payload before continuing execution. Also inspect empty results, policy failures, approval paths, structured output validity, and the final user-visible response.

Publishing and editing

See Deployment and External Access for delivery channels, external invocation, and identity requirements. Use Testing, Monitoring, and Performance to operate published workflows.

Publish after validating the complete process. Authorized users can find published workflows on Agents and Applications, reached through Me > Quick Actions > Show More > AI Agent Studio > AI Agent.

Edit draft workflows from Workflows. For a preconfigured workflow marked Seeded, open View and use Customize when available; some allow only prompt changes. Use Duplicate to create an editable copy with a different code.

When moving a published workflow to another instance, validate access and tool configuration in the target environment. Document content must be uploaded and republished, Email tools reconfigured, and External REST authentication restored as applicable.