Skip to content
Integration

OpenAI integrations and automation

Say what should happen in OpenAI, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

OpenAI on Whenever

About OpenAI

Toolkit for OpenAI APIs: manage Assistants, Threads/Messages; upload/list/delete Files; list/retrieve Models (including vision/multimodal); and view fine-tune listings and events.

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the OpenAI workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your OpenAI workflow

Most people who connect OpenAI to an automation want one of two things: a model call inside a larger job, such as classifying an inbound message or drafting a summary, or housekeeping on the OpenAI account itself, such as tracking token spend, cleaning up uploaded files, or watching a fine-tuning job finish. These are different integrations. The first treats OpenAI as a step; the second treats it as the system being watched. Decide which one you are building before choosing a key and a model.

OpenAI has moved its recommended interface over time. The Assistants API, with its assistants, threads and runs, was officially sunset on August 26, 2026 and is no longer available; OpenAI points integrations to the Responses API, with conversations replacing threads and dashboard-managed prompts replacing assistants. Files remain their own resource: you upload a file with a stated purpose such as batch, fine-tune or user_data and reference its ID. By default, batch files expire after 30 days and all other files persist until deleted, unless you set an expiry when uploading, so a project that uploads routinely needs a cleanup rule. Fine-tuning jobs expose a status and a list of job events, which makes a scheduled check simple: read the job, compare the status with the last recorded value, and report only changes.

Rate limits are defined at the organization and project level, not per user, and are measured in requests and tokens per minute and per day, varying by model. Paid organizations move through usage tiers (Build, Launch and Grow) automatically as their credit purchases reach each threshold, and higher tiers generally get higher limits. A bulk job that classifies thousands of rows at once can hit a limit that a single test never touches. For large offline workloads, the Batch API takes a file of requests and completes each batch within 24 hours at a 50% discount compared with synchronous calls, from a separate and larger rate-limit pool; it suits nightly enrichment where nobody is waiting.

Model output varies between runs even with the same input, so the surrounding automation should constrain it. Structured Outputs with a strict JSON schema keep the response to the shape you defined, and safety refusals are reported in a form the workflow can detect. A valid shape can still hold a wrong answer, so route doubtful cases to a person. Whenever runs the surrounding steps identically each time; the OpenAI call is the part that can differ, and each call is billed to your OpenAI account.

OpenAI workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Classify new support emails with a fixed label set

A model call used as one step, with its answer checked against an allowed list before anything is written.

Build this workflow

Report a finished fine-tuning job

Housekeeping on the account: poll a job and notify only when its status changes.

Build this workflow

Weekly cleanup of stale uploaded files

Keeps the project file store tidy, with a report before anything is removed.

Build this workflow

Related apps for your workflows

All integrations

OpenAI FAQs

Should new automations still use the OpenAI Assistants API?

No. OpenAI sunset the Assistants API on August 26, 2026 and it is no longer available. Build on the Responses API, using conversations where you previously used threads.

What happens when an OpenAI rate limit is reached?

Requests that exceed a limit return a 429 error, sometimes with a Retry-After header. Limits apply to the organization and project, vary by model, and rise with your usage tier. Spread bulk work out, retry with backoff, or move offline jobs to the Batch API.

Is the Batch API worth using for nightly jobs?

For work nobody waits on, yes. Each batch completes within 24 hours at half the price of synchronous calls and uses its own, higher rate limits.

How do I make model answers reliable enough to write into a spreadsheet?

Use Structured Outputs with a strict JSON schema so the response always matches the fields you defined, and check for refusals. The model can still pick a wrong but valid value, so keep a human check where it matters.

Do files uploaded to OpenAI get deleted automatically?

Only batch files, which expire after 30 days by default. Other files persist until deleted unless you set an expires_after policy at upload, so schedule cleanup for routine uploads.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.