Workflow agent invoker

From oracle/Fusion-Setup-Configuration-Registry · View interactive version

Workflow agent invoker is an AI agent skill from the GitHub repository oracle/Fusion-Setup-Configuration-Registry. Submits and tracks on-demand Oracle Fusion AI Studio workflow agent requests.

How to use this skill

Skill file

Fusion AI Workflow Agent Invoker

Purpose

Submits an on-demand Oracle Fusion AI Studio workflow agent request and optionally

polls the resulting job until a final or input-required status is returned.

REST API Contract

This skill uses the Oracle Fusion AI Agent Team REST API:

Oracle A-Team examples call these endpoints through the Fusion AI gateway prefix:

The submit payload always includes message. It can also include Oracle

documented fields such as invocationMode, conversational,

conversationId, version, parameters, agentCodes, toolCodes,

resumeNodeInput, streamOutput, and progressMessage.

Project Scripts

Run from the repository root:

python3 core/fusion-ai/workflow-agent-invoker/scripts/workflow_agent_invoker.py \
  --workflow-code <workflowCode> \
  --message "Search for YOZ Corp" \
  --version <publishedVersion> \
  --workflow-status PUBLISHED \
  --wait-seconds 300 \
  --token-cache auto

Resume status polling for an existing job:

python3 core/fusion-ai/workflow-agent-invoker/scripts/workflow_agent_invoker.py \
  --workflow-code <workflowCode> \
  --job-id <jobId> \
  --wait-seconds 300 \
  --token-cache auto

The script reads the default Fusion environment properties file:

core/auth/fusionEnv.properties

It imports OAuth helpers from:

core/auth/fusion-oauth-authentication/scripts/fusion_auth.py

Inputs

Script-level inputs:

request.

/api/fusion-ai based on Oracle A-Team invokeAsync samples. Use an empty

value for the raw OpenAPI path.

override, the invoker uses ai_scope from core/auth/fusionEnv.properties,

falling back to scope when ai_scope is unavailable.

name@file=path.

toolCodes.

--new, optional --state-file, and

--client-generated-conversation-id: options for conversational workflow

turns. Use a path under project/{project_id}/artifacts/core/fusion-ai/

when conversation state must persist across sessions.

flags passed to the shared OAuth flow when login is required.

Outputs

Script-level outputs:

jobId, status fields, polling diagnostics, and target environment summary.

when no wait was requested.

Implementation Notes

Use the bundled script instead of writing workflow-specific authentication,

invokeAsync, or status polling code in consuming skills. Never print access

tokens, refresh tokens, client secrets, .fusionaim_token.json contents, or

Authorization headers.

Consuming skills must record the workflow code, prompt purpose, target

environment, returned jobId, and terminal status in their own audit artifacts

when the invocation has implementation side effects.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.