---
docId: doc_a288db2f3fdc41c2ba0c3445d5ac835c
title: Configuration
description: "Configure your agent and look up the fields you can send."
---

<script>
  import { Note, Collapsible, Ways } from '$lib/components';
</script>

# Agent configuration

Set the agent’s instructions, language, assistance and other settings. Send changes to the [draft](/api-reference/agents/drafts/update), then [publish](/api-reference/agents/publications/publish) when you want them to take effect.

## Partial changes

To create or edit, you send a partial configuration: only the sections and fields that change, directly in the body.

- An object is merged with the current one: the fields you don't send stay as they are.
- A list, a text or any other value (including `null`) replaces the current one. `null` leaves the field as `null`; it doesn't delete it.
- The result is validated as a whole. If anything isn't valid, nothing is saved. See [Validation](#validation).

```json
{
  "instructions": "You are the sales assistant for Acme Store. Answer in under 80 words.",
  "guardrails": { "message": "I can only help with store topics." }
}
```

In the example, `instructions` replaces the whole instructions text, and of `guardrails` only `message` changes.

Since `subagents` is a list, sending it replaces all the links. To change just one, use [Link a subagent](/api-reference/agents/subagents/link) or [Unlink a subagent](/api-reference/agents/subagents/unlink).

## Sections

The configuration has 15 sections, all at the top level. To see what changed between two versions, use [Compare versions](/api-reference/agents/versions/compare).

| Section | What it stores |
|---------|----------------|
| [`description`](#description) | The agent's short description |
| [`instructions`](#instructions) | The agent's instructions, as text |
| [`model`](#model) | Main model; `"auto"` lets Platica pick it |
| [`modelPriority`](#modelpriority) | What Platica prioritizes when it picks the model |
| [`fallbackModels`](#fallbackmodels) | Fallback models, in order |
| [`memory`](#memory) | Memory across each contact's conversations |
| [`fileAttachments`](#fileattachments) | Reading the documents contacts attach |
| [`scheduledTasks`](#scheduledtasks) | Scheduled tasks and routines for contacts |
| [`multilingual`](#multilingual) | Language, transcription and voice |
| [`workingMessage`](#workingmessage) | "Working" message while it uses tools |
| [`subagents`](#subagents) | Links to other agents |
| [`assistance`](#assistance) | Whether it asks a person for help, and with which escalations |
| [`schedule`](#schedule) | Service hours and what happens outside them |
| [`guardrails`](#guardrails) | Topics it refuses and how many strikes it tolerates |
| [`followUp`](#followup) | Automatic follow-up when the contact stops replying |

## Fields by section

Each version stores the complete configuration. Every field is present, with `null` or `[]` when it has no value.

### `description`

`description` is a text: a short summary of what the agent does. A new agent is born with `""`.

The name and photo aren't in the configuration: they belong to the agent, not to its versions. They are changed with [Update an agent](/api-reference/agents/update) (`name` and `imageUrl`) and apply immediately.

### `instructions`

`instructions` is a text (string), not an object: what the agent is asked to do. Tone, personality and the way it answers also go here; there is no separate style setting. A new agent is born with empty instructions (`""`).

```json
{
  "instructions": "You are the sales assistant for Acme Store. Answer in under 80 words."
}
```

In a validation problem, its path is `["instructions"]`.

### `model`

A text with the main model. With `"auto"` (what a new agent has), Platica picks the model following [`modelPriority`](#modelpriority) and follows its updates. To pin one, send its name, such as `gpt-6.1-terra`. It can carry the [reasoning level](#reasoning-level) as a suffix: `gpt-6.1-terra-high`.

### `modelPriority`

What Platica prioritizes when it picks the model with `model: "auto"`: `balanced` (what a new agent has), `speed`, `cost` or `intelligence`.

### `fallbackModels`

A list of fallback models, in order, as `provider/model`. Adding one the agent didn't have requires a connected key of your own: see [Fallback models](#fallback-models). A new agent is born with `[]`.

### `memory`

A boolean. With `true`, the agent has [memory across conversations](/help/agents/memory): it remembers facts, preferences, agreements and pending items from each contact's earlier conversations. A new agent is born with `false`.

### `fileAttachments`

A boolean. With `true`, the agent reads the documents contacts attach (docx, xlsx, pdf, etc.). A new agent is born with `false`.

### `scheduledTasks`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | Lets the agent create scheduled tasks and routines for contacts |
| `allowExternalRecipients` | boolean | With `false`, the emails and WhatsApp numbers of the tasks have to belong to workspace users |

### `multilingual`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | Answer in the contact's language, with transcription and voice replies |
| `transcription.contextPrompt` | string | Context that helps transcribe names and jargon. Up to 2000 characters |
| `transcription.keywords` | array of strings | Names and terms the transcriber must recognize. Up to 50, up to 120 characters each, no duplicates and no leading or trailing spaces |
| `audio.mode` | string | `off`: never answers with voice. `when_audio`: with voice when the contact sent voice. `always`: always with voice |

### `workingMessage`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | Turns on the "working" message while the agent uses tools |
| `trigger.type` | string | `toolCallCount`: after `minToolCalls` tools in the turn. `toolName`: when a tool from `toolNames` runs. `any`: the first of the two configured conditions |
| `trigger.minToolCalls` | integer \| null | From 1 to 10. `null` means no count condition. `toolCallCount` needs it |
| `trigger.toolNames` | array of strings | Tools that trigger the message. `toolName` needs at least one; `any` needs `minToolCalls`, `toolNames` or both |
| `trigger.match` | string | `exact` or `prefix`: how it is compared with `toolNames` |
| `message.enabled` | boolean | Whether text is sent |
| `message.mode` | string | `fixed` sends `fixedText`; `ai` writes the message from `aiPrompt` |
| `message.fixedText` | string | Literal text |
| `message.aiPrompt` | string | Instruction for writing the message with AI |
| `sticker.enabled` | boolean | Whether a sticker is sent |
| `sticker.url` | string | Sticker URL |

### `subagents`

A list of links to other agents in the same workspace. Each agent appears at most once. A link names the agent, not a version: it always uses the subagent's **published version**.

| Field | Type | Description |
|-------|------|-------------|
| `agentId` | string | Subagent id |
| `alias` | string | Name the model sees the subagent by. 1 to 100 characters |
| `mode` | string | `delegate`: hands it the conversation. `assist`: consults it and carries on itself |
| `enabled` | boolean | A link that is turned off stays configured, but the model doesn't see it |
| `description` | string | When to call it. Up to 2000 characters |
| `delegationCriteria` | string | With `delegate`: when to hand it the conversation. Up to 2000 characters |
| `completionCriteria` | string | With `delegate`: when to return the conversation to the parent. If empty, uses the generic criterion. Up to 2000 characters |
| `oneWayDelegation` | boolean | With `delegate`: whether it keeps the conversation and doesn't hand it back |

### `assistance`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | General switch. With `false`, the agent never asks for help; a new agent is born this way. With `true`, it hands the conversation to your team when one of its active escalations applies |
| `escalations` | array | The [escalations](/api-reference/escalations) from the library it can use, in order. Up to 20. They are also changed, publishing immediately, with [Connect an escalation](/api-reference/agents/escalations/connect) |
| `escalations[].escalationId` | string | Escalation id. Not repeated |
| `escalations[].enabled` | boolean | Whether the agent uses this escalation |

Each escalation says when to ask for help and what message the contact gets while waiting (`agent.waitMessage`, see [Create an escalation](/api-reference/escalations/create#request-body)). With `enabled: true` and no active escalations, the agent can still hand the conversation to a person, but without opening a case and with the platform's wait message.

How to get an agent escalating, from the escalation library to assistance turned on, is in [Escalations](/api-reference/escalations#set-up-an-agent-to-escalate-step-by-step).

### `schedule`

| Field | Type | Description |
|-------|------|-------------|
| `serviceHours` | object | The seven days, from `monday` to `sunday`. Each day is `{ "open", "start", "end" }` |
| `outOfServiceBehavior` | string | `limited` lets the agent start and continue helping at any time. `outOfService` lets it start only within service hours; service that has started continues after closing |

A new agent is always available: the seven days open all day. Each day of `serviceHours` has one of three forms. Times are `HH:mm` (24 h) in the workspace's time zone, which is not part of the agent:

| Form | Meaning |
|------|---------|
| `{ "open": false, "start": null, "end": null }` | Closed all day |
| `{ "open": true, "start": null, "end": null }` | Open all day |
| `{ "open": true, "start": "09:00", "end": "17:00" }` | Open during those hours. An `end` earlier than `start` crosses midnight (`22:00` → `02:00`). `start` and `end` can't be equal |

To open all day, send `open: true` with both times set to `null`. Do not substitute 00:00–23:59: a specific window includes its start and excludes its end, while all day also includes the minute 23:59.

With `outOfService`, a message received outside service hours is kept without a reply. Opening does not reply automatically: a new message within service hours starts service in that conversation. Once started, it continues until the conversation ends or expires. For comments, continuity belongs to each thread. Human supervision and assistance pauses retain priority.

The team's service hours still limit escalations that pause the agent (`keepReplying: false`). Those that record a case and keep the agent replying (`keepReplying: true`) can be used outside service hours when the agent is allowed to help.

`queue` remains readable for historical versions and is normalized to `limited` in new writes, copies and restores. It does not queue messages for a handoff at opening. The legacy aliases `full` and `none` are deprecated and retain their normalization to `limited`; use the two canonical options.

### `guardrails`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | Turns guardrails on |
| `rules` | array of strings | Topics the agent refuses. Up to 20 |
| `message` | string | Reply when a rule blocks a message. Empty uses the platform's reply. Up to 500 characters |
| `conversationStrikeThreshold` | integer | Strikes in a conversation before escalating it. From 1 to 10 |
| `clientStrikeThreshold` | integer | Strikes from a contact before escalating them. From 1 to 10 |

The list of allowed terms belongs to the workspace, not to the agent.

### `followUp`

| Field | Type | Description |
|-------|------|-------------|
| `enabled` | boolean | Turns follow-up on |
| `delayMinutes` | number | Minutes of silence from the contact before a follow-up. Greater than 0 |
| `maxConsecutiveMessages` | integer | Follow-ups in a row without a reply before stopping. At least 1 |
| `messageType` | string | `automatic`: the agent writes it. `customMessage`: sends `customMessage` as is. `customInstructions`: the agent writes it following `customInstructions` |
| `customMessage` | string | Fixed message |
| `customInstructions` | string | Instructions for writing the follow-up |

## Model

### Reasoning level

With a fixed model in `model`, you choose how much it reasons before answering. More reasoning gives more careful answers, but takes longer and spends more credits.

The level goes as a suffix of the model name: `gpt-6.1-terra-high` is GPT-6.1 Terra with level `high`. Without a suffix, the model uses its recommended level. With `model: "auto"`, Platica picks the model and the level too.

The levels, from least to most, with their name in Platica: `none` (No reasoning), `minimal` (Minimal), `low` (Low), `medium` (Medium), `high` (High), `xhigh` (Very high) and `max` (Maximum).

<Ways tabs="api,sdk,asistente">
<Ways.Way name="api">

```bash
curl -X PATCH https://api.platic.ai/v1/agents/$AGENT_ID/draft \
  -H "Authorization: Bearer $PLATIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "gpt-6.1-terra-high" }'
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.agents.draft.update("agent_123", {
  model: "gpt-6.1-terra-high",
});
```

</Ways.Way>
<Ways.Way name="asistente">
<Ways.Say>

Have the Sales agent answer with GPT-6.1 Terra and high reasoning.

</Ways.Say>

Your assistant uses `update_agent_draft`.

</Ways.Way>
</Ways>

The change stays in the draft until you [publish](/api-reference/agents/publications/publish). To let Platica pick again, send `{ "model": "auto" }`.

Each model accepts only some levels:

| Model | `model` | Levels | Recommended |
|-------|---------|--------|-------------|
| GPT-6.1 Sol | `gpt-6.1-sol` | `low`, `medium`, `high`, `xhigh` | `medium` |
| GPT-6.1 Terra | `gpt-6.1-terra` | `none`, `low`, `medium`, `high`, `xhigh`, `max` | `medium` |
| GPT-6 Luna | `gpt-6-luna` | `none`, `low`, `medium`, `high`, `xhigh`, `max` | `medium` |
| DeepSeek V4.1 Flash | `DeepSeek-V4.1-Flash` | `low`, `high`, `max` | `low` |
| Gemini 3.5 Flash-Lite | `gemini-3.5-flash-lite` | `minimal`, `low`, `medium`, `high` | `minimal` |
| Gemini 3.8 Flash | `gemini-3.8-flash` | `low`, `medium`, `high` | `medium` |
| Gemini 4 Argon | `gemini-4-argon` | `low`, `medium`, `high` | `medium` |
| Grok 4.7 | `grok-4.7` | `low`, `medium`, `high`, `xhigh` | `high` |
| Muse Spark | `muse-spark-1.3` | `minimal`, `low`, `medium`, `high`, `xhigh`, `max` | `medium` |
| Claude Sonnet 5.5 | `claude-sonnet-5-5` | `low`, `medium`, `high`, `xhigh` | `medium` |
| Claude Haiku 5.5 | `claude-haiku-5-5` | `low`, `medium`, `high` | `medium` |
| Claude Opus 5.5 | `claude-opus-5-5` | `low`, `medium`, `high`, `xhigh` | `high` |

Kimi K2.6 (`Kimi-K2.6`), Grok 4.6 (`grok-4.6`) and DeepSeek V4 Flash (`DeepSeek-V4-Flash`) have no adjustable level: they go without a suffix.

A level the model doesn't accept, such as `gpt-6.1-sol-none`, answers `422` with `details.code: "UNSUPPORTED_REASONING_EFFORT"` and nothing is saved. In `details`, `model` is the model without `provider/` or suffix (`gpt-6.1-sol`), `effort` is the level you asked for (`none`) and `supportedEfforts` is the list of levels it accepts.

An unknown `model` returns `422` with `details.code: "INVALID_CONFIG"` at `["model"]`; nothing is saved. This can be a typo (`gpt-6.1-trra`), a suffix that is not a level (`gpt-6.1-terra-ultra`) or a model without adjustable reasoning sent with a suffix (`Kimi-K2.6-high`). In the last case, the message asks you to send it without a suffix.

Only a new model without `provider/` is validated. The saved model is kept without rechecking it. Names with `provider/` are not checked either, because your own key can use any model from that provider.

### Fallback models

`fallbackModels` are the models that are tried, in order, if the main one fails. Each one goes as `provider/model` and accepts the same level suffix: `openai/gpt-6.1-terra-high`.

To add a new fallback, the workspace needs at least one [key of your own](/api-reference/ai-providers) connected: the provider must have `status: "connected"` in [List providers](/api-reference/ai-providers/list). Without it, the API returns `422` with `details.code: "MODEL_FALLBACKS_REQUIRE_OWN_KEY"` and does not save the change. If you use Platica’s account, you do not need to configure fallbacks: the platform switches models when one fails.

Keeping, removing or reordering the fallbacks the agent already has, or emptying the list (`"fallbackModels": []`), is always allowed, even without a key.

A fallback is new if it isn't saved as is in the draft: the same model with another level suffix counts as new, just like one you removed and send again. That's why [restoring a version](/api-reference/agents/drafts/restore) that brings a fallback the draft no longer has also asks for the key. On a new agent, all of its fallbacks are new.

## Default configuration

[Create an agent](/api-reference/agents/create) and [Create a subagent](/api-reference/agents/subagents/create) start from this configuration and apply the sections you send. It is also a good starting point for [Replace the draft](/api-reference/agents/drafts/replace), although the simplest is to start from the `config` that [Get the draft](/api-reference/agents/drafts/get) returns.

<Collapsible summary="Complete configuration of a new agent">

```json
{
  "description": "",
  "instructions": "",
  "model": "auto",
  "modelPriority": "balanced",
  "fallbackModels": [],
  "memory": false,
  "fileAttachments": false,
  "scheduledTasks": { "enabled": false, "allowExternalRecipients": false },
  "multilingual": {
    "enabled": false,
    "transcription": { "contextPrompt": "", "keywords": [] },
    "audio": { "mode": "when_audio" }
  },
  "workingMessage": {
    "enabled": false,
    "trigger": { "type": "toolCallCount", "minToolCalls": 2, "toolNames": [], "match": "exact" },
    "message": { "enabled": false, "mode": "fixed", "fixedText": "", "aiPrompt": "" },
    "sticker": { "enabled": false, "url": "" }
  },
  "subagents": [],
  "assistance": {
    "enabled": false,
    "escalations": []
  },
  "schedule": {
    "serviceHours": {
      "monday": { "open": true, "start": null, "end": null },
      "tuesday": { "open": true, "start": null, "end": null },
      "wednesday": { "open": true, "start": null, "end": null },
      "thursday": { "open": true, "start": null, "end": null },
      "friday": { "open": true, "start": null, "end": null },
      "saturday": { "open": true, "start": null, "end": null },
      "sunday": { "open": true, "start": null, "end": null }
    },
    "outOfServiceBehavior": "limited"
  },
  "guardrails": {
    "enabled": true,
    "rules": [
      "No responder preguntas de codigo, programacion ni ayudar a escribir scripts o software.",
      "No responder preguntas de trivia, cultura general ni acertijos.",
      "No ayudar con tareas de redaccion, ensayos, articulos ni generacion de contenido extenso."
    ],
    "message": "",
    "conversationStrikeThreshold": 3,
    "clientStrikeThreshold": 3
  },
  "followUp": {
    "enabled": false,
    "delayMinutes": 60,
    "maxConsecutiveMessages": 1,
    "messageType": "automatic",
    "customMessage": "",
    "customInstructions": ""
  }
}
```

The three default guardrail rules are in Spanish: they are the platform's own text.

</Collapsible>

## If you used the earlier shape

<Collapsible summary="Where each earlier field went">

The configuration no longer has grouped sections: each setting is at the top level. If you send an earlier name, the API returns `422` with `details.code: "INVALID_CONFIG"` and the message says where it is now.

| Before | Now |
|--------|-----|
| `profile.description` | `description` |
| `instructions.systemPrompt` | `instructions` (text) |
| `runtime.model` (`null` to let Platica pick) | `model` (`"auto"` to let Platica pick) |
| `runtime.priority` (`reliability`) | `modelPriority` (`balanced`) |
| `runtime.modelPriorities` | `fallbackModels` |
| `runtime.recallLastConversation` | `memory` |
| `runtime.fileAttachments` | `fileAttachments` |
| `runtime.scheduledTasks` | `scheduledTasks` |
| `communication.multilingual` | `multilingual`, without `responseLanguage`: the agent answers in the contact's language |
| `communication.workingMessage` | `workingMessage` |
| `support.serviceHours` and `support.outOfServiceBehavior` | `schedule.serviceHours` and `schedule.outOfServiceBehavior` |
| `assistance.requestTypes` | Escalations in `assistance.escalations` |
| `assistance.waitMessage` | `agent.waitMessage` of each [escalation](/api-reference/escalations) |

No longer exist: the phone, email and address in `support`, and `runtime.contextSummarization`, `modelDowngrade`, `rag`, `knowledgebaseMode`, `imageGeneration` and `initializationScript`. Responses no longer include `configSchemaVersion` or `changedSections`, and replacing the draft no longer asks for `configSchemaVersion` (if you send it, it is ignored).

The earlier per-section endpoints (prompt, guardrails, schedule, subagents) keep working and save in the new shape. `/v1/agents/{agentId}/assist-rules` returns `410` with `details.code: "GONE"`: use [escalations](/api-reference/escalations).

</Collapsible>

## Validation

<Collapsible summary="Resolve save or publish errors">

Before saving, the API validates the resulting configuration. An unknown section returns `400` with `details.code: "INVALID_REQUEST"`; a name from the [earlier shape](#if-you-used-the-earlier-shape), `422` with a message that says where it is now. An unknown field or invalid value within a section returns `422` with `details.code: "INVALID_CONFIG"`. `details.issues` includes each problem and its path within the configuration:

```json
{
  "code": 422,
  "error": "Unprocessable Entity - Unable to process the request",
  "details": {
    "code": "INVALID_CONFIG",
    "message": "The configuration is not valid",
    "issues": [
      {
        "path": ["guardrails", "conversationStrikeThreshold"],
        "message": "Number must be less than or equal to 10"
      }
    ]
  }
}
```

A new link to a missing or deleted subagent, or to the agent itself, returns `422` with `details.code: "INVALID_SUBAGENT_LINK"`. Saving checks only new links. If the draft already links a [deleted](/api-reference/agents/delete#if-it-is-another-agents-subagent) agent, you can edit the other settings. Publishing checks every link: a deleted agent or a cycle between agents returns the same error.

When creating an agent or publishing, the API checks the escalations connected or enabled in `assistance.escalations`. A missing or archived escalation returns `422` with `details.code: "INVALID_ESCALATION"`. If the API cannot check them, it returns `503` with `details.code: "SUPPORT_SERVICE_UNAVAILABLE"`. Saving the draft does not run this check.

When saving `model` or `fallbackModels`, an unsupported reasoning level returns `422` with `details.code: "UNSUPPORTED_REASONING_EFFORT"`. Adding a new fallback model without a connected key of your own returns `422` with `details.code: "MODEL_FALLBACKS_REQUIRE_OWN_KEY"`.

These rules are checked when editing, replacing or restoring the draft, and when creating an agent or subagent. They are not checked when copying, publishing or rolling back: copying preserves the models from the source version. See [Reasoning level](#reasoning-level) and [Fallback models](#fallback-models).

To find out beforehand whether some changes could be saved and then published, without saving anything, use [Validate changes](/api-reference/agents/drafts/validate).

</Collapsible>

## What to send for each operation

<Collapsible summary="Compare configuration operations">

The operation determines whether you send partial settings or a complete configuration:

| Where | What you send or receive |
|-------|--------------------------|
| [Get the draft](/api-reference/agents/drafts/get) and [Get a version](/api-reference/agents/versions/get) | The complete `config` |
| [Replace the draft](/api-reference/agents/drafts/replace) | The complete `config` |
| [Create an agent](/api-reference/agents/create), [Update the draft](/api-reference/agents/drafts/update), [Validate changes](/api-reference/agents/drafts/validate) and [Create a subagent](/api-reference/agents/subagents/create) | Only the sections that change, directly in the body |
| [Compare versions](/api-reference/agents/versions/compare) | The before and after of each section that differs |

<Note type="note">

These are not part of the configuration, so they don't create a version and apply immediately: the name, photo, status and owners (changed with [Update an agent](/api-reference/agents/update)), the [files](/api-reference/agents/files/list) and [tools](/api-reference/agents/tools/list) connected to the agent, and its channels (assigned with [Update a channel](/api-reference/channels/update)).

</Note>

</Collapsible>
