ChatGPT · GPT ActionsCRM
Crear encuesta NPS
Da de alta registros de encuestas NPS con confirmación del usuario.
por Prompt Studio
openapinps-surveys
Licencia: MITVer original
Contenido
Dónde va: GPT → Configurar → Acciones → Esquema
{
"openapi": "3.1.0",
"info": {
"title": "Crear encuesta NPS",
"version": "1.0.0",
"description": "Acción de GPT para encuestas NPS. Cambia el servidor por la URL de tu API."
},
"servers": [
{
"url": "https://api.tu-dominio.com/v1"
}
],
"paths": {
"/nps-responses": {
"post": {
"operationId": "createNPSSurvey",
"summary": "Crea encuesta NPS",
"x-openai-isConsequential": true,
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NewNPSSurvey"
}
}
}
},
"responses": {
"201": {
"description": "Creado",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NPSSurvey"
}
}
}
},
"400": {
"description": "Datos inválidos"
}
}
}
}
},
"components": {
"schemas": {
"NPSSurvey": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"customerId": {
"type": "string"
},
"score": {
"type": "integer"
},
"comment": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"recibida",
"revisada",
"atendida"
]
},
"createdAt": {
"type": "string",
"format": "date-time"
}
}
},
"NewNPSSurvey": {
"type": "object",
"properties": {
"customerId": {
"type": "string"
},
"score": {
"type": "integer"
},
"comment": {
"type": "string"
}
},
"required": [
"customerId",
"score"
]
}
},
"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.