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

# Create assistant

> Create a new AI assistant with specified configuration

This endpoint allows you to create a new AI assistant with comprehensive configuration options.

### Request Body

#### Core Required Fields

**assistant\_name** `string` *required*

The name of the assistant (max 255 characters)

**voice\_id** `integer` *required*

The voice ID to use for the assistant (must exist in available voices)

**language** `string` *required*

The language name for the assistant (max 100 characters)

**llm\_model** `string` *required*

The LLM model name to use (max 100 characters)

**calls\_direction** `string` *required*

The call direction type. Options: `receive`, `make`

**engine\_type** `string` *required*

The engine type to use. Options: `pipeline`, `multimodal`

**timezone** `string` *required*

The timezone for the assistant (e.g., "America/New\_York")

**initial\_message** `string` *required*

The initial message the assistant will speak when the call starts

**system\_prompt** `string` *required*

The system prompt that defines the assistant's behavior and personality

#### Optional Configuration

**phone\_number\_id** `integer`

The ID of a phone number to assign to the assistant (must exist in user's phone numbers)

**tool\_ids** `integer[]`

Array of mid call tool IDs to attach to the assistant. Each element must be a valid tool ID that belongs to your account.

**endpoint\_type** `string`

Voice activity detection type. Options: `vad`, `ai`

**endpoint\_sensitivity** `number`

Endpoint sensitivity level (0-5)

**interrupt\_sensitivity** `number`

Interrupt sensitivity level (0-5)

**ambient\_sound\_volume** `number`

Ambient sound volume level (0-1)

**post\_call\_evaluation** `boolean`

Whether to enable post-call evaluation

**send\_webhook\_only\_on\_completed** `boolean`

Whether to send webhooks only on completed calls

**include\_recording\_in\_webhook** `boolean`

Whether to include recording URL in webhook payload

#### Webhook Configuration

**is\_webhook\_active** `boolean`

Whether webhook notifications are enabled

**webhook\_url** `string`

The webhook URL for post-call notifications (required if is\_webhook\_active is true)

#### Interruption Settings

**use\_min\_interrupt\_words** `boolean`

Whether to use minimum interrupt words setting

**min\_interrupt\_words** `integer`

Minimum number of words before interruption is allowed (0-10)

#### Variables and Schema

**variables** `object`

Key-value pairs of custom variables for the assistant

**post\_call\_schema** `array`

Schema definition for post-call data extraction

**post\_call\_schema properties**

**post\_call\_schema\[].name** `string` *required*

The name of the schema field (alphanumeric and underscores only)

**post\_call\_schema\[].type** `string` *required*

The data type. Options: `string`, `number`, `bool`

**post\_call\_schema\[].description** `string` *required*

Description of what this field represents

#### End Call Tool

**end\_call\_tool.description** `string`

Description for the end call tool functionality (max 500 characters)

#### Voice and Speech Settings

**llm\_temperature** `number`

LLM temperature setting (0-1)

**voice\_stability** `number`

Voice stability setting (0-1)

**voice\_similarity** `number`

Voice similarity setting (0-1)

**speech\_speed** `number`

Speech speed multiplier (0.7-1.2)

#### Call Behavior Settings

**allow\_interruptions** `boolean`

Whether to allow caller interruptions

**filler\_audios** `boolean`

Whether to use filler audio during processing

**re\_engagement\_interval** `integer`

Re-engagement interval in seconds (7-600)

**max\_call\_duration** `integer`

Maximum call duration in seconds (20-1200)

**max\_silence\_duration** `integer`

Maximum silence duration in seconds (1-120)

**end\_call\_on\_voicemail** `boolean`

Whether to end call when voicemail is detected

**noise\_cancellation** `boolean`

Whether to enable noise cancellation

**record\_call** `boolean`

Whether to record the call

**who\_speaks\_first** `string`

Who speaks first in the call. Options: `AI assistant`, `Customer`

### Response

**message** `string`

Success message confirming assistant creation

**data** `object`

**properties**

**id** `integer`

The unique identifier of the created assistant

**name** `string`

The name of the assistant

**status** `string`

The current status of the assistant

**type** `string`

The type of assistant (`inbound` or `outbound`)

**mode** `string`

The engine mode (`pipeline` or `multimodal`)

### Error Responses

**422 Validation Error**

**Error Response**

**message** `string`

Error message indicating validation failure

**errors** `object`

Detailed validation errors for each field

**500 Internal Server Error**

**Error Response**

**message** `string`

Error message indicating assistant creation failure

```json 201 Success Response theme={null}
{
  "message": "Assistant created successfully",
  "data": {
    "id": 789,
    "name": "Sales Assistant",
    "status": "active",
    "type": "outbound",
    "mode": "pipeline"
  }
}
```

```json 422 Validation Error theme={null}
{
  "message": "Validation failed",
  "errors": {
    "assistant_name": [
      "The assistant name field is required."
    ],
    "webhook_url": [
      "The webhook url field is required when is webhook active is true."
    ]
  }
}
```

```json 500 Internal Server Error theme={null}
{
  "message": "Assistant creation failed"
}
```

### Notes

* All required fields must be provided for successful assistant creation
* The assistant will be created with default settings for any optional fields not specified
* Phone number assignment is optional but the phone number must belong to the authenticated user
* Webhook URL is required only when `is_webhook_active` is set to true
* Voice and language identifiers must correspond to available options in the system


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.