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, you must provide an OpenAPI specification (Swagger). This is a JSON or YAML file that 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
Actions support None, API Key, and OAuth. If you use OAuth, the user will be prompted to log in to the third-party service before the GPT can execute the action.