OpenAI
Responses and chat completions (non-streaming), embeddings, moderation, models, files and the Batch API (paid calls never retried, batches and mcp tools opt-in for agents, deletes and cancels node only)
Beta v0.1.0 Node.js 18 actions
About
A Graphrt plugin for the OpenAI API. It is meant for workflows that need a second model next to the agent's own: summarize, classify, extract JSON, embed or moderate text, and run large jobs cheaply through the Batch API. Every request is non-streaming. Every operation is a workflow node, deletes and batch cancellation are node only.
What it can do
- Generation: create_response (Responses API: input, instructions, reasoning_effort, JSON schema output through text_format, tools) and create_chat_completion (messages, response_format, tools)
- get_response / delete_response: stored responses (only when you pass store: true, the plugin defaults it to false)
- create_embeddings: vectors for up to 2048 texts, optional dimensions
- create_moderation: free harmful-content check (omni-moderation-latest)
- Models: list_models, get_model
- Files: list_files (paginated), upload_file, get_file, download_file_content (saved to disk), delete_file
- Batch API: create_batch, get_batch, list_batches, cancel_batch
- api_request: any other endpoint under https://api.openai.com/v1 (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Create response
openai.create_response - Get response
openai.get_response - Delete response
openai.delete_response - Create chat completion
openai.create_chat_completion - Create embeddings
openai.create_embeddings - Moderate text
openai.create_moderation - List models
openai.list_models - Get model
openai.get_model - List files
openai.list_files - Upload file
openai.upload_file
Show all 18 actions
- Get file
openai.get_file - Download file content
openai.download_file_content - Delete file
openai.delete_file - Create batch
openai.create_batch - Get batch
openai.get_batch - List batches
openai.list_batches - Cancel batch
openai.cancel_batch - OpenAI API request
openai.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
OPENAI_API_KEYRequiredAPI key (sk-...), sent as Authorization: Bearer -
OPENAI_UPLOAD_DIROptionalDirectory upload_file may read local files from (absolute path). Without it, file must be an https URL -
OPENAI_OUTPUT_DIRFor download_file_contentAbsolute directory where downloaded file content is saved -
OPENAI_TOOL_ALLOW_BATCHOptional1 lets agent tools call create_batch (off by default: one call can queue thousands of paid requests) -
OPENAI_TOOL_ALLOW_REMOTE_TOOLSOptional1 lets agent tools pass mcp and connector tools to create_response (off by default: they make OpenAI send the conversation to another server)
How to use it
In Graphrt Desktop
- Open Plugins and search for OpenAI.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install openai workflow.yaml
- id: summary
type: openai.create_response
model: gpt-5-mini
instructions: Summarize in one sentence.
input: "{{#start.text#}}"
max_output_tokens: 300
- id: answer
type: answer
answer: "{{#summary.data.output#}}"