Skip to main content

OpenAI Connector

OpenAI Interact with OpenAI's models and build AI Agents

Connections

OpenAI API Key

Connect to OpenAI using an API key

Integrations can authenticate with OpenAI using API keys. Generate an API key at platform.openai.com/account/api-keys.

If your user is associate with one organization, you can leave the connection's organization field blank. Otherwise, specify your organization's ID.

InputCommentsDefault
API KeyGenerate an API key at https://platform.openai.com/account/api-keys
OrganizationYour organization ID. If you have just one organization, this value is optional.

Triggers

Tool Flow Trigger

Marks this flow as a tool that can be called by AI agents

Actions

Agent: Add Local MCP Server

Configure a local MCP server that runs via command line

InputCommentsDefault
Server LabelUnique identifier for the MCP server
CommandCommand to execute the MCP server (currently only npx is supported)npx
ArgumentsArguments to pass to the command
Tool FilterList of specific tool names to expose. If empty, all tools are exposed.

Agent: Add Remote MCP Server

Configure a remote MCP server accessed via HTTP

InputCommentsDefault
Server LabelUnique identifier for the MCP server
Server URLURL endpoint for the MCP server
HeadersHTTP headers for authentication or other needs. Key = header name, Value = header value
Tool FilterList of specific tool names to expose. If empty, all tools are exposed.

Agent: Classify and Branch

Use AI to analyze input and route to the appropriate branch

InputCommentsDefault
OpenAI ConnectionConnection to OpenAI API with your API key
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.
Classification InstructionsAdditional instructions for how to classify the input
Branch DefinitionsDefine branches and their classification criteria. Key = branch name, Value = description of when to use this branch
Input TextThe text to analyze and classify (e.g., email content)
ToolsList of tools available to the agent. Each tool should be the output from a Create Tool action.
MCP ServersList of MCP server configurations. Each should be the output from an Add MCP Server action.
File IDsFile IDs from previously uploaded files to OpenAI. Use the Upload File action to get these IDs.

Agent: Create

Create an AI agent with customizable instructions.

InputCommentsDefault
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.
NameThe name of the agent
InstructionsSystem instructions that define the agent's behavior and capabilities
Handoff DescriptionDescription for handoff routing. Used by other agents to understand when to hand off to this agent.
ToolsList of tools available to the agent. Each tool should be the output from a Create Tool action.
MCP ServersList of MCP server configurations. Each should be the output from an Add MCP Server action.
Output SchemaJSON Schema for structured output. Forces the agent to respond with data matching this schema.
Output Schema NameName for the output schemaoutput
Output Schema StrictIf true, enforces strict schema validationfalse

Agent: Create Code Interpreter Tool

Create a code interpreter tool that allows agents to execute Python code

InputCommentsDefault
Tool NameCustom name for the code interpreter toolCode Interpreter
Container TypeContainer type for code executionauto
Container IDSpecific container ID (only used if containerType is 'specific')
File IDsComma-separated list of file IDs to include in the container

Agent: Create File Search Tool

Create a file search tool that searches through vector stores

InputCommentsDefault
Tool NameCustom name for the file search toolFile Search
Vector Store IDsComma-separated list of vector store IDs to search
Max ResultsMaximum number of results to return
Include Search ResultsInclude search results in the LLM outputtrue
Ranking AlgorithmAlgorithm for ranking search results
Score ThresholdMinimum score threshold for results (0-1)

Agent: Create Flow Tool

Create a tool configuration that allows an agent to invoke another flow

InputCommentsDefault
Flow NameThe flow that this tool will invoke when called by an agent
Tool DescriptionDescription that helps the agent understand when to use this tool
Strict ModeIf true, requires exact parameter matching. If false, allows flexibility in agent inputs.false
Requires ApprovalIf true, the tool will require human approval before the agent can execute the flowfalse

Agent: Create Human Approval Tool

Create a tool that requires human approval before the agent can proceed

InputCommentsDefault
Tool NameName for the approval toolHuman Approval
Tool DescriptionDescription that helps the agent understand when to use this toolRequest human approval before proceeding with this action
Parameters SchemaOptional JSON schema for parameters the agent should provide when calling this tool. If not provided, the tool will accept a 'reason' string parameter.

Agent: Create Image Generation Tool

Create an image generation tool that allows agents to generate images

InputCommentsDefault
Tool NameCustom name for the image generation toolImage Generation
BackgroundBackground type for generated imagesauto
Input FidelityInput fidelity level
ModelModel to use for generationgpt-image-1
ModerationModeration level for content filteringauto
Output CompressionCompression level 0-100 (higher = more compression)
Output FormatImage output formatpng
Partial ImagesNumber of partial images to generate
QualityQuality level for generated imagesauto
SizeImage dimensionsauto

Agent: Create Web Search Tool

Create a web search tool that allows agents to search the web

InputCommentsDefault
Tool NameCustom name for the web search toolWeb Search
Search Context SizeAmount of context to return from searchesmedium
User CityCity for location-aware searches
User CountryCountry for location-aware searches
User RegionRegion/state for location-aware searches
User TimezoneTimezone for time-sensitive searches (e.g., 'America/New_York')

Agent: Resume Run

Resume an interrupted agent run with approval decisions

InputCommentsDefault
OpenAI ConnectionConnection to OpenAI API with your API key
Agent ConfigurationAgent configuration object from Create Agent action. Should be the same configuration used in the original run.
Run StateState from the interrupted run, containing the execution context and interruptions.
Approval ResponsesArray of approval responses with updated approvalRequest objects containing functionId and approved status.
Max TurnsMaximum number of conversation turns the agent can take from this point. Prevents infinite loops.10
Handoff AgentsSame handoff agents configuration used in the original run, if any.

Agent: Run

Run an agent

InputCommentsDefault
OpenAI ConnectionConnection to OpenAI API with your API key
Agent ConfigurationAgent configuration object from Create Agent action
User InputThe message or question to send to the agent
HistoryPrevious conversation history. Use this to continue a conversation from a previous run. Should be the history array from a previous agent run result.
File IDsFile IDs from previously uploaded files to OpenAI. Use the Upload File action to get these IDs.
Previous Response IDID of the previous response to continue the conversation. Alternative to passing full history array.
Max TurnsMaximum number of conversation turns the agent can take. Prevents infinite loops.10
Handoff AgentsList of agent configurations that can be handed off to. Each should be the output from a Create Agent action.

Create Chat Completion

Create a completion for the chat message

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.gpt-3.5-turbo
Messages
[
{
"role": "system",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Who won the world series in 2020?"
},
{
"role": "assistant",
"content": "The Los Angeles Dodgers won the World Series in 2020."
},
{
"role": "user",
"content": "Where was it played?"
}
]
TemperatureWhat sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.1
top_pAn alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.1
Number of choicesHow many chat completion choices to generate for each input message.1
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Create Image

Create image(s) given a prompt

InputCommentsDefault
Connection
PromptA text description of the desired image(s). The maximum length is 1000 characters.
Number of ImagesThe number of images to generate. Must be between 1 and 10.1
Image SizeThe size of the generated images. Must be one of 256x256, 512x512, or 1024x1024.1024x1024
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Create Response

Create a response using the responses endpoint

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.gpt-4.1
InputThe input text to process
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Delete File

Delete a previously uploaded file

InputCommentsDefault
Connection
File IDThe ID of the file to delete
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Get Model by ID

Get model by ID

InputCommentsDefault
Connection
ModelSelect an OpenAI model to use for the request. The list of available models will be fetched from your OpenAI account.
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

List Files

List previously uploaded files

InputCommentsDefault
Connection
PurposeFilter files by purpose
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

List Models

List all available models

InputCommentsDefault
Connection
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Raw Request

Send raw HTTP request to OpenAI

InputCommentsDefault
Connection
URLInput the path only (/v1/images/generations), The base URL is already included (https://api.openai.com). For example, to connect to https://api.openai.com/v1/images/generations, only /v1/images/generations is entered in this field./v1/models
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Retrieve File

Retrieve information about a specific file

InputCommentsDefault
Connection
File IDThe ID of the file to retrieve
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000

Upload File

Upload a file to OpenAI that can be used with various features

InputCommentsDefault
Connection
FileThe file to upload (binary data or base64 encoded)
FilenameName of the file including extension
PurposeThe intended purpose of the uploaded file
Timeout (ms)The maximum amount of time (in MS) to wait for a response.10000