Actions allow your Custom GPT to interact with external APIs. This turns a chatbot into an agent that can fetch live weather, create Jira tickets, or query a private database.
To create an Action, provide an OpenAPI specification (Swagger). This JSON or YAML file describes your API's endpoints, parameters, and authentication methods.
openapi: 3.1.0
info:
title: Weather API
version: 1.0.0
paths:
/weather:
get:
summary: Get current weather
operationId: getCurrentWeather
parameters:
- name: location
in: query
required: true
schema:
type: string
| Method | When to Use |
|---|---|
| None | Public APIs with no auth required |
| API Key | Simple bearer token or query param auth |
| OAuth 2.0 | User-specific access (Google, Slack, GitHub) |