Graphrt

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
Use in Graphrt Desktop

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_KEY Required
    API key (sk-...), sent as Authorization: Bearer
  • OPENAI_UPLOAD_DIR Optional
    Directory upload_file may read local files from (absolute path). Without it, file must be an https URL
  • OPENAI_OUTPUT_DIR For download_file_content
    Absolute directory where downloaded file content is saved
  • OPENAI_TOOL_ALLOW_BATCH Optional
    1 lets agent tools call create_batch (off by default: one call can queue thousands of paid requests)
  • OPENAI_TOOL_ALLOW_REMOTE_TOOLS Optional
    1 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

  1. Open Plugins and search for OpenAI.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

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#}}"
Plugins in the docs