ChatGPT · GPT ActionsCRM
Create deal
Creates a new deal after the user confirms.
by Prompt Studio
openapideals
License: MITView original
Contents
Where it goes: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear oportunidad",
"version": "1.0.0",
"description": "Acción de GPT para oportunidades. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/deals": {
"post": {
"operationId": "createDeal",
"summary": "Crea oportunidad",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewDeal"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Deal"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"Deal": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "string"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"closeDate": {
"type": "string",
"format": "date"
},
"status": {
"type": "string",
"enum": [
"abierta",
"ganada",
"perdida"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewDeal": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"amount": {
"type": "number"
},
"currency": {
"type": "string"
},
"closeDate": {
"type": "string",
"format": "date"
}
},
"required": [
"title",
"amount"
]
}
},
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer"
}
}
},
"security": [
{
"bearerAuth": []
}
]
}
More in GPT Actions
Weather by city
Minimal Action example with an API key in the header.
Create CRM lead
Registers contacts from the chat using OAuth.
Schedule meeting
Creates events with guests and time zone.
Send to webhook
Posts the GPT output to any URL (Zapier, Make, n8n).
Search contacts
Lets your GPT search contacts by text and status.
Get contact
Fetches one contact by ID.