ipIterPrompt
IntegrationDeveloper WorkflowVerified Last verified 2026-07-24

GPT Actions

by OpenAI

GPT Actions let a Custom GPT call external APIs during a conversation. You describe the API with an OpenAPI specification (JSON or YAML) and choose an authentication method — None, API Key, or OAuth. ChatGPT then translates natural language into the required API calls, so the GPT can fetch data, trigger workflows, or send updates against your own or third-party services.

Works with

Custom GPTs, Actions, MCP connectors, and Apps.

When to use it

  • Your GPT needs live data from a system the built-in tools can't reach
  • You want the GPT to trigger a workflow (create a ticket, post an update) via API
  • You already have an API with an OpenAPI spec you can expose

When not to

  • You need the integration in code/production automation — use the API directly, not a GPT Action
  • The target API has no OpenAPI description and you can't author one

What it does

  • Call external REST APIs from inside a custom GPT
  • Define endpoints via an OpenAPI schema (paste it or point to a hosted URL)
  • Authenticate with None, API Key, or OAuth per action
  • Turn a read-only assistant into one that can take real actions

How to install

Setup steps with copy-paste config. Sources are cited under each method.

Add an Action to a GPT

ChatGPT

Requires: A custom GPT you can edit · An OpenAPI (Swagger) schema for the target API · Auth details for the API (API key or OAuth client)

  1. Open the GPT editor's Configure tab

    Edit your GPT, scroll to the bottom, and choose Create new action (Add action).

  2. Provide the OpenAPI schema

    Paste the OpenAPI JSON/YAML or import it from a hosted URL. Each path becomes a callable operation the GPT can invoke.

    yaml
    openapi: 3.1.0
    info:
      title: Weather API
      version: 1.0.0
    servers:
      - url: https://api.example.com
    paths:
      /weather:
        get:
          operationId: getWeather
          parameters:
            - name: city
              in: query
              required: true
              schema: { type: string }
  3. Configure authentication

    Set Authentication to None, API Key (server-to-server), or OAuth (when the action acts on behalf of a user account).

  4. Test the action

    Use the editor's test panel to confirm the GPT calls the endpoint and parses the response.

How to prompt it

Copy-paste prompts written to exercise this plugin, with what to expect.

Fetch live data through an action

You wired a weather API as an action and want the GPT to use it.

What's the current weather in Kyoto? Use the getWeather action and summarize it in one sentence.

What to expect: The GPT calls the getWeather endpoint with city=Kyoto, then returns a grounded, one-sentence summary from the real API response.

  • Name the operationId in your prompt when the GPT hesitates about which action to call.

Tips for getting the most out of it

  • Give each operation a clear operationId and description — the model uses those to decide when to call it.
  • Prefer OAuth for anything that acts on a user's behalf; reserve API keys for server-to-server reads.
  • Return concise, well-structured JSON; huge responses waste context and slow the GPT down.

Prompts to pair with it

Real prompts from the IterPrompt library you can copy or run.

4.5

REST API Design Reviewer

Consistent, predictable REST endpoints — enforced at design time.

2,040 copiesOpen ↗

CLAUDE.md for Python APIs

FastAPI/Django-ready CLAUDE.md with typing, testing, and migration guardrails.

3,080 copiesOpen ↗

Hypnotherapist

Turn any AI chat into a hypnotherapist with this community persona prompt.

4,215 copiesOpen ↗

Interdisciplinary Connections and Applications

Turn any AI chat into an interdisciplinary connections and applications with this community persona prompt.

1,056 copiesOpen ↗

CI/CD Strategy for SpringBoot REST APIs Deployment

Turn any AI chat into a ci/cd strategy for springboot rest apis deployment with this community persona prompt.

778 copiesOpen ↗

.NET API Project Analysis

Turn any AI chat into a .net api project analysis with this community persona prompt.

3,192 copiesOpen ↗
See more prompts in the library

Frequently asked questions

What format does the schema need?+

An OpenAPI specification in JSON or YAML. You can paste it directly into the action editor or point to a URL where the spec is hosted.

How is an Action different from an MCP connector?+

Actions are defined per-GPT with an OpenAPI schema and were the original way to connect APIs. Developer Mode MCP apps connect an MCP server to ChatGPT more broadly. They solve similar problems with different plumbing.

Pairs well with

Related guides

Alternatives to GPT Actions

Sources & verification

The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.

Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.