ChatGPT · GPT ActionsEventos
Crear boleto
Da de alta registros de boletos con confirmación del usuario.
por Prompt Studio
openapiticket-sales
Licencia: MITVer original
Contenido
Dónde va: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear boleto",
"version": "1.0.0",
"description": "Acción de GPT para boletos. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/ticket-sales": {
"post": {
"operationId": "createTicketSale",
"summary": "Crea boleto",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewTicketSale"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TicketSale"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"TicketSale": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"eventId": {
"type": "string"
},
"buyerEmail": {
"type": "string",
"format": "email"
},
"quantity": {
"type": "integer"
},
"status": {
"type": "string",
"enum": [
"reservado",
"pagado",
"usado",
"reembolsado"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewTicketSale": {
"type": "object",
"properties": {
"eventId": {
"type": "string"
},
"buyerEmail": {
"type": "string",
"format": "email"
},
"quantity": {
"type": "integer"
}
},
"required": [
"eventId",
"buyerEmail"
]
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
},
"security": [
{
"bearerAuth": []
}
]
}
Más en GPT Actions
Clima por ciudad
Ejemplo mínimo de Action con API key en el encabezado.
Crear lead en el CRM
Registra contactos desde la conversación con autenticación OAuth.
Agendar reunión
Crea eventos con invitados y zona horaria.
Enviar a webhook
Publica el resultado del GPT en cualquier URL (Zapier, Make, n8n).
Buscar contactos
Busca contactos por texto y estado desde tu GPT.
Consultar contacto
Trae un registro de contactos por su ID.