# Create and configure an assistant

> An assistant is the AI on a call: its instructions, first sentence, voice, speech recognition, tools and turn-taking. With tips for assistants that speak Hebrew.

An **assistant** is the AI that talks on a call. It holds what the AI should do (the instructions), what it says first, how it sounds, how it hears, which tools it may use and how it takes turns. One assistant can take any number of calls at once: inbound calls routed to it, [outbound calls](https://docs.morevoice.ai/guides/outbound-calls/) and [campaigns](https://docs.morevoice.ai/guides/campaigns/).

Assistants are configuration, shared by live and test mode: an assistant you build with a test key answers live calls too.

## Create an assistant

Only `name` is required. Everything you leave out takes the default the dashboard uses, and the answer shows the complete assistant.

**cURL**

```sh
curl https://api.morevoice.ai/v1/assistants \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Clinic receptionist",
    "language": "he",
    "first_message": "שלום, הגעתם למרפאת השרון. איך אפשר לעזור?",
    "system_prompt": "You are the receptionist of Sharon Clinic. You book, move and cancel appointments. Speak Hebrew, keep answers to one or two short sentences, and read numbers back digit by digit.",
    "voice": { "provider": "gemini", "voice_id": "en-us-fola", "style": "warm, calm and unhurried" },
    "llm": { "quality_tier": "advanced", "temperature": 0.7 },
    "tools": {
      "end_call": true,
      "transfer_call": { "destination": "queue:reception" }
    },
    "metadata": { "clinic_id": "sharon-01" }
  }'
```

**Node.js**

```ts title="create-assistant.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

const assistant = await mv.assistants.create({
	name: "Clinic receptionist",
	language: "he",
	first_message: "שלום, הגעתם למרפאת השרון. איך אפשר לעזור?",
	system_prompt:
		"You are the receptionist of Sharon Clinic. You book, move and cancel appointments. " +
		"Speak Hebrew, keep answers to one or two short sentences, and read numbers back digit by digit.",
	voice: { provider: "gemini", voice_id: "en-us-fola", style: "warm, calm and unhurried" },
	llm: { quality_tier: "advanced", temperature: 0.7 },
	tools: {
		end_call: true,
		transfer_call: { destination: "queue:reception" },
	},
	metadata: { clinic_id: "sharon-01" },
});
console.log(assistant.id); // asst_…
```

**Python**

```python title="create_assistant.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

response = requests.post(
    f"{API}/assistants",
    headers=HEADERS,
    json={
        "name": "Clinic receptionist",
        "language": "he",
        "first_message": "שלום, הגעתם למרפאת השרון. איך אפשר לעזור?",
        "system_prompt": (
            "You are the receptionist of Sharon Clinic. You book, move and cancel appointments. "
            "Speak Hebrew, keep answers to one or two short sentences, and read numbers back digit by digit."
        ),
        "voice": {"provider": "gemini", "voice_id": "en-us-fola", "style": "warm, calm and unhurried"},
        "llm": {"quality_tier": "advanced", "temperature": 0.7},
        "tools": {
            "end_call": True,
            "transfer_call": {"destination": "queue:reception"},
        },
        "metadata": {"clinic_id": "sharon-01"},
    },
    timeout=30,
)
response.raise_for_status()
print(response.json()["id"])  # asst_…
```

The fields you will use most:

| Field | What it does |
| --- | --- |
| `name` | Your name for the assistant. Callers never hear it. |
| `language` | The language of the call, as a language tag: `he`, `en`, `ar`, `ru`… |
| `system_prompt` | The instructions the model follows: who it is, what it may and may not do, how to speak. Up to 100,000 characters. |
| `first_message` | The first sentence, spoken word for word. |
| `first_message_mode` | `assistant_speaks_first` (the default), `assistant_waits_for_user`, or `assistant_generates_first_message`. |
| `voice` | How it sounds: `voice_id` from `GET /v1/voices`, and `style`, a direction such as "warm and calm". |
| `transcriber` | How it hears: languages to expect, and words and names to recognise better. |
| `llm` | The language model: a `quality_tier` (see [quality tiers](#quality-tiers)), `temperature`, `max_output_tokens`. |
| `tools` | What it can do besides talking: end the call, transfer it, look up the time, and your own [custom tools](https://docs.morevoice.ai/guides/custom-tools/). |
| `flow_id` | A published [voice flow](https://docs.morevoice.ai/guides/flows/) that drives the call step by step instead of the instructions alone. |
| `end_call_message`, `end_call_phrases` | What it says before it hangs up, and phrases that end the call when it says them. |
| `max_duration_seconds` | Calls end after this long (10 seconds to 12 hours). |
| `answering_machine_detection` | On outbound calls: hang up on a machine, or leave a message after the beep. |
| `artifacts` | What is kept after the call: the recording, the transcript, an AI summary, the event log. |
| `metadata` | Up to 50 key–value strings of your own, for example your CRM's ID. MoreVoice never reads them. |
| `advanced` | Turn-taking, latency and model routing. The defaults suit most assistants. |

[The API reference](https://docs.morevoice.ai/api/operations/assistants_create/) lists every field with its limits.

### Variables

`system_prompt`, `first_message` and a flow can contain `{{variables}}`, such as `{{customer_name}}`. Each call fills them in from its own `variables` (see [outbound calls](https://docs.morevoice.ai/guides/outbound-calls/#variables)), and each campaign contact from its columns.

## Quality tiers

Pick how capable each part of the assistant is with a neutral tier, not a model name. The tier is the same for every provider, so you do not need to know which model is behind it:

| Tier | Language model (`llm`, `advanced.llm_routing`) | Voice (`voice`) | Recognition (`transcriber`) |
| --- | --- | --- | --- |
| `fast` | the smallest, quickest model | the fastest voice model | none |
| `standard` | the balanced model | the standard voice model | the standard recognition model |
| `advanced` | the most capable model | none | none |
| `custom` | a model the tiers do not name, kept as it is | | |

A part that has no model for a tier (for example `advanced` for the voice) keeps its current model. Each tier maps to one canonical model, and the exact models can change as providers release new ones; read `quality_tier` in the response to see what an assistant uses now.

The fields are:

- `llm.quality_tier`, `voice.quality_tier`, `transcriber.quality_tier`: the tier of the language model, the voice and the speech recognition.
- `advanced.llm_routing.simple_quality_tier` and `complex_quality_tier`: the tiers of the two models that `llm_routing` (with `mode: "auto"`) picks between.

Each response shows the tier next to the model it describes, so you can read both.

**How a request resolves a tier.** The rule is the same for every part:

- If a request sends both a `model` and a `quality_tier` for the same part, the explicit `model` wins.
- A tier alone sets the canonical model of that tier. If the stored model already has that tier, the stored model is kept: an assistant on `gpt-5` stays on `gpt-5` when you send `advanced`.
- `custom` keeps the stored model. On create, where nothing is stored, the default applies.

```json title="Pick tiers, not models"
{
  "llm": { "quality_tier": "advanced" },
  "advanced": {
    "llm_routing": { "mode": "auto", "simple_quality_tier": "standard", "complex_quality_tier": "advanced" }
  }
}
```

**Compatibility.** `provider`, `model`, `llm_routing.simple_model` and `llm_routing.complex_model` are kept: they still work and are still returned, so existing integrations keep running. Prefer the tier fields in new code. `voice.tier` (`auto`, `premium`, `lite`) is a separate setting and is not a quality tier. The same tiers apply to a [copilot profile](https://docs.morevoice.ai/guides/copilot/)'s `model` (`quality_tier`, `fallback_quality_tier`) and to a flow's classifier (`classifier_quality_tier`).

## Change an assistant

`PATCH /v1/assistants/{id}` changes only the fields you send. Nested objects (`voice`, `advanced`…) are merged with the stored values; lists (`end_call_phrases`, `tools.custom`) are replaced as a whole. The next call uses the new settings.

To try a change without touching the assistant in use, copy it first. The copy has the same configuration, tools (with their stored headers) and metadata:

**cURL**

```sh
# Copy an assistant to try a change without touching the one in use.
curl https://api.morevoice.ai/v1/assistants/$ASSISTANT_ID/duplicate \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Clinic receptionist (evening)" }'
```

**Node.js**

```ts title="duplicate-assistant.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Copy an assistant to try a change without touching the one in use.
const copy = await mv.assistants.duplicate(process.env.ASSISTANT_ID!, { name: "Clinic receptionist (evening)" });
console.log(copy.id);
```

**Python**

```python title="duplicate_assistant.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}
assistant_id = os.environ["ASSISTANT_ID"]

# Copy an assistant to try a change without touching the one in use.
response = requests.post(
    f"{API}/assistants/{assistant_id}/duplicate",
    headers=HEADERS,
    json={"name": "Clinic receptionist (evening)"},
    timeout=30,
)
response.raise_for_status()
print(response.json()["id"])
```

## Find your assistants

`GET /v1/assistants` lists your assistants, newest first, a page at a time; `GET /v1/assistants/{id}` returns one with every setting, the defaults included:

**cURL**

```sh
# Your assistants, newest first, a page at a time.
curl "https://api.morevoice.ai/v1/assistants?limit=50" \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"

# One assistant, with every setting (the defaults included).
curl https://api.morevoice.ai/v1/assistants/$ASSISTANT_ID \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```

**Node.js**

```ts title="list-assistants.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Your assistants, newest first. The list follows next_cursor for you.
for await (const a of mv.assistants.list({ limit: 50 })) {
	console.log(a.id, a.name, a.language, a.flow_id ?? "no flow");
}

// One assistant, with every setting (the defaults included).
const assistant = await mv.assistants.retrieve(process.env.ASSISTANT_ID!);
console.log(assistant.voice.voice_id, assistant.transcriber.language_hints);
```

**Python**

```python title="list_assistants.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

# Your assistants, newest first, page by page.
params = {"limit": 50}
while True:
    response = requests.get(f"{API}/assistants", headers=HEADERS, params=params, timeout=30)
    response.raise_for_status()
    page = response.json()
    for a in page["data"]:
        print(a["id"], a["name"], a["language"], a["flow_id"] or "no flow")
    if not page["has_more"]:
        break
    params["starting_after"] = page["next_cursor"]

# One assistant, with every setting (the defaults included).
response = requests.get(f"{API}/assistants/{os.environ['ASSISTANT_ID']}", headers=HEADERS, timeout=30)
response.raise_for_status()
assistant = response.json()
print(assistant["voice"]["voice_id"], assistant["transcriber"]["language_hints"])
```

Each assistant carries your `metadata`, so you can match it to your own records.

## Voices

Voices come from the text-to-speech provider. List them, then set `voice.voice_id`:

**cURL**

```sh
curl https://api.morevoice.ai/v1/voices \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```

**Node.js**

```ts title="list-voices.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

for await (const voice of mv.voices.list()) {
	console.log(voice.name, voice.gender ?? "", voice.languages.join(", "));
}
```

**Python**

```python title="list_voices.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}

response = requests.get(f"{API}/voices", headers=HEADERS, timeout=30)
response.raise_for_status()
for voice in response.json()["data"]:
    print(voice["name"], voice.get("gender") or "", ", ".join(voice["languages"]))
```

A voice's `languages` is what the provider lists, but voices speak many more languages, Hebrew included: listen before you choose (the dashboard plays a sample of each voice). `voice.style` directs the delivery, for example `"warm, calm and unhurried"`. With `style_mode: "dynamic"` (the default) the delivery adapts to the caller from reply to reply, and `style` is the fallback.

## Tips for Hebrew

These settings come from how the pipeline handles Hebrew speech today. Start with the defaults, then change one thing at a time and listen to a test call.

**Let callers mix in English.** Speech recognition expects Hebrew and English by default (`transcriber.language_hints` is `["he", "en"]`), so product names, email addresses and English words in a Hebrew sentence come out right. Turn on `strict_language_hints` only if callers never switch language.

**Teach it your names.** Recognition hears common Hebrew well, but not your brand, your doctors' family names or your street names. Put them in `transcriber.terms` (up to 500), and describe the business in a sentence or two in `transcriber.context`:

```json title="Part of an assistant"
{
  "language": "he",
  "transcriber": {
    "provider": "soniox",
    "model": "stt-rt-v5",
    "language_hints": ["he", "en"],
    "strict_language_hints": false,
    "terms": [
      "מרפאת השרון",
      "ד״ר לוי",
      "רעננה",
      "כפר סבא"
    ],
    "context": "A clinic in the Sharon region. Callers book, move and cancel appointments."
  }
}
```

**Give numbers time.** Callers read ID numbers, policy numbers and phone numbers in short groups with pauses in between. After a phrase that ends with a number, the assistant waits `advanced.start_speaking_plan.on_number_seconds` (0.5 s by default) before it answers. Raise it to about 1–1.5 seconds if callers get cut off mid-number, and tell the assistant in its instructions to read numbers back digit by digit and confirm them.

**Choose what interrupts it.** By default any caller voice interrupts the assistant (`advanced.stop_speaking_plan.num_words: 0`), and if no real word follows within 0.9 seconds it carries on. On noisy lines (cars, streets) or with callers who say "אהה" and "כן כן" while listening, ask for one or two words instead:

**cURL**

```sh
# Give callers more time after a number (they may still be dictating), and
# let a cough or "אהה" no longer cut the assistant off: two words interrupt it.
curl -X PATCH https://api.morevoice.ai/v1/assistants/$ASSISTANT_ID \
  -H "Authorization: Bearer $MOREVOICE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "advanced": {
      "start_speaking_plan": { "on_number_seconds": 1.2 },
      "stop_speaking_plan": { "num_words": 2 }
    }
  }'
```

**Node.js**

```ts title="tune-turn-taking.ts"
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // reads MOREVOICE_API_KEY

// Give callers more time after a number (they may still be dictating), and
// let a cough or "אהה" no longer cut the assistant off: two words interrupt it.
const assistant = await mv.assistants.update(process.env.ASSISTANT_ID!, {
	advanced: {
		start_speaking_plan: { on_number_seconds: 1.2 },
		stop_speaking_plan: { num_words: 2 },
	},
});
console.log(assistant.id);
```

**Python**

```python title="tune_turn_taking.py"
import os

import requests

API = "https://api.morevoice.ai/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MOREVOICE_API_KEY']}"}
assistant_id = os.environ["ASSISTANT_ID"]

# Give callers more time after a number (they may still be dictating), and
# let a cough or "אהה" no longer cut the assistant off: two words interrupt it.
response = requests.patch(
    f"{API}/assistants/{assistant_id}",
    headers=HEADERS,
    json={
        "advanced": {
            "start_speaking_plan": {"on_number_seconds": 1.2},
            "stop_speaking_plan": {"num_words": 2},
        }
    },
    timeout=30,
)
response.raise_for_status()
print(response.json()["id"])
```

**Match the grammar to the voice.** Hebrew verbs and adjectives have gender. Tell the assistant in its instructions which gender it speaks in, to match the voice, and to address callers in neutral forms until it knows how they speak about themselves.

**Say it's an AI.** Open with a sentence that says the caller is talking to a digital representative, for example "שלום, כאן נציגה דיגיטלית של מרפאת השרון". Marketing calls must disclose it; see [compliance](https://docs.morevoice.ai/guides/compliance/).

**Write instructions in English or Hebrew, speech in Hebrew.** The model follows instructions in either language. What callers hear word for word (`first_message`, `end_call_message`, the idle messages and fillers under `advanced`) must be written in the language of the call.

> **Tip:** Keep answers short. On the phone, one or two sentences at a time sound natural; lists and long explanations don't. Say so in the instructions.

## Tools

`tools` decides what the assistant can do besides talking:

| Field | What it lets the assistant do |
| --- | --- |
| `end_call` | Hang up when the conversation is over. |
| `transfer_call` | Transfer the caller to people: `{ "destination": "queue:<queue>" }`, a phone number, or a `sip:` address. `null` turns transfers off. |
| `get_current_time` | Look up the current date and time (for "tomorrow" and "next Sunday"). |
| `web_search` | Search the web. |
| `add_participant` | Add a person to the call, for a three-way conversation. |
| `custom` | Call your own server during the call: see [custom tools](https://docs.morevoice.ai/guides/custom-tools/). |

## Test an assistant

With a test key, call a [test number](https://docs.morevoice.ai/get-started/test-mode/#test-numbers): the call runs on simulated speech recognition, model and voice, so you can check the flow of the conversation, your tools and your webhooks without a phone line or AI spend. To hear the real voice and the real model, call yourself with a live key, or [make a test call](https://help.morevoice.ai/en/ai-agents/test-call/) from the assistant's page in the dashboard.

## Delete an assistant

`DELETE /v1/assistants/{id}` deletes it. Past calls keep their history, but inbound routes and campaigns that used it need another assistant before their next call.
