Skip to main content

Obtener agente

Devuelve los detalles completos de un agente específico.
GET https://app.chatnorris.ai/api/v2/chatbots/{chatbot_id}
Authorization: Bearer <tu_api_key>
Scope requerido: chatbots:read

Path parameters

ParámetroTipoDescripción
chatbot_idstringID del agente

Respuesta

{
  "status": "success",
  "data": {
    "id": "bot_abc123",
    "name": "Soporte al cliente",
    "description": "Agente para consultas generales",
    "system_prompt": "Eres el asistente virtual de Acme Corp...",
    "model": "claude-sonnet-4-6",
    "temperature": 0.3,
    "max_tokens": 1000,
    "is_active": true,
    "is_published": true,
    "widget_config": {
      "primaryColor": "#00ed64",
      "greeting": "¡Hola! ¿En qué puedo ayudarte?",
      "leadCapture": false
    },
    "created_at": "2025-03-20T14:30:00.000Z",
    "updated_at": "2025-06-01T09:15:00.000Z"
  }
}

Errores comunes

CodeDescripción
NOT_FOUNDEl agente no existe o no pertenece a tu organización