> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plazbot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Crear Agente

> Crea un nuevo agente de IA con wizard interactivo o archivo JSON

### Crear un agente

El CLI ofrece dos formas de crear un agente: un **wizard interactivo** o importando un **archivo JSON** de configuracion.

<CodeGroup>
  ```bash Wizard interactivo theme={null}
  plazbot agent create
  ```

  ```bash Desde archivo JSON theme={null}
  plazbot agent create ./agent.config.json
  ```
</CodeGroup>

***

### Modo Wizard Interactivo

Si no proporcionas un archivo de configuracion, el CLI inicia un wizard paso a paso:

```text theme={null}
Crear nuevo agente IA

Nombre del agente: Mi Asistente
Descripcion del agente: Asistente virtual para atencion al cliente
Prompt del agente: Eres un asistente amable que ayuda a los clientes...
Buffer (segundos): 5
Color (orange/blue/green/gray/white): blue

Agente creado exitosamente
   ID: age_TZiOY...
   Nombre: Mi Asistente
   Tool Calling: Habilitado
```

***

### Modo Archivo JSON

Puedes crear el agente desde un archivo `agent.config.json`:

```json theme={null}
{
  "name": "mi-asistente",
  "description": "Asistente de atencion al cliente",
  "prompt": "Vas a ayudar a las personas a resolver sus preguntas...",
  "zone": "LA",
  "buffer": 5,
  "color": "blue",
  "question": "Como te podemos ayudar?",
  "timezone": "America/Lima",
  "person": {
    "name": "Sofia",
    "role": "Asistente de Atencion al Cliente",
    "speaksInFirstPerson": true,
    "isHuman": false
  },
  "instructions": {
    "tone": "amigable",
    "style": "conversacional",
    "language": "Espanol",
    "emojis": true
  },
  "examples": [
    { "value": "informacion de contacto", "color": "green" },
    { "value": "horarios de atencion", "color": "orange" }
  ]
}
```

```bash theme={null}
plazbot agent create ./agent.config.json
```

***

### Templates Predefinidos

Usa `plazbot agent templates` para ver plantillas listas para usar:

| Template                 | Industria     |
| ------------------------ | ------------- |
| Asistente de Ventas      | Comercio      |
| Soporte Tecnico IT       | Tecnologia    |
| Asistente de Clinica     | Salud         |
| Asistente de Restaurante | Gastronomia   |
| Asistente Inmobiliario   | Bienes Raices |

```bash theme={null}
plazbot agent templates
```

<Tip>
  Los templates incluyen configuracion de persona, instrucciones, acciones y Tool Calling preconfigurado para cada industria.
</Tip>
