ChatGPT · GPT ActionsCalendario
Crear cita
Da de alta registros de citas con confirmación del usuario.
por Prompt Studio
openapiappointments
Licencia: MITVer original
Contenido
Dónde va: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear cita",
"version": "1.0.0",
"description": "Acción de GPT para citas. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/appointments": {
"post": {
"operationId": "createAppointment",
"summary": "Crea cita",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewAppointment"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Appointment"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"Appointment": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"clientName": {
"type": "string"
},
"clientEmail": {
"type": "string",
"format": "email"
},
"start": {
"type": "string",
"format": "date-time"
},
"serviceId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"agendada",
"confirmada",
"completada",
"cancelada"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewAppointment": {
"type": "object",
"properties": {
"clientName": {
"type": "string"
},
"clientEmail": {
"type": "string",
"format": "email"
},
"start": {
"type": "string",
"format": "date-time"
},
"serviceId": {
"type": "string"
}
},
"required": [
"clientName",
"clientEmail"
]
}
},
"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.