← Back to Agent

Agent Configuration

Configure the agent's LLM model, model routing, fallback providers, heartbeat schedule, voice, and description.

Table of Contents

Overview

For Everyone

The Configuration tab is where you control the agent's brain. Choose which AI model it uses, how it handles different types of tasks, what happens when a model goes down, how often it checks in proactively, and what voice it uses in meetings. Each setting is organized into its own card with inline help.

For Developers

Configuration is stored across several config keys: model (provider + modelId + thinkingLevel), modelRouting (per-context overrides), modelFallback (chain + retry settings), heartbeat (interval, active hours, custom prompt), voiceConfig (ElevenLabs voice ID), and description. Each card has independent edit/save state. Saves use hot-update when running, PATCH when stopped. Provider/model lists come from /providers and /providers/:id/models APIs.

How It Works

The Configuration tab contains 6-7 independent cards, each with its own Edit/Save/Cancel flow. Click "Edit" on any card to modify that section without affecting others. Changes apply immediately if the agent is running (hot-update).

Default LLM Model

The primary AI model for all conversations and tasks.

SettingDescription
ProviderThe AI provider — Anthropic, OpenAI, Google, etc. Must have an API key configured in Settings → Integrations.
ModelThe specific model (e.g., claude-sonnet-4-20250514, gpt-4o). Auto-populated from the provider's model list.
Thinking LevelExtended reasoning capability. Off / Low (2K tokens) / Medium (8K) / High (16K). Higher = better for complex tasks but slower and more expensive.
Tip: Use Model Routing below to assign different models for different task types — a cheaper model for chat and a smarter one for complex work.

Model Routing

Assign different AI models to different types of tasks for cost/quality optimization:

ContextDescriptionRecommended
ChatReal-time conversations (Slack, Teams, WhatsApp)Sonnet 4 — fast replies
Meetings (Voice)Google Meet with voice capabilitiesSonnet 4 — low latency
EmailComposing and replying to emailsOpus — professional quality
Tasks & ProjectsComplex work, analysis, researchOpus — deep reasoning
SchedulingCalendar, remindersHaiku — quick and cheap

Leave a route empty to use the Default LLM Model for that task type. Each route has its own provider/model selector.

Backup Model Providers

Automatic failover when the primary model fails:

Behavior

Tip: Mix providers in your chain — e.g., Anthropic primary → OpenAI fallback → Google fallback. This protects against single-provider outages.

Heartbeat

Periodic check-ins where the agent wakes up and proactively handles pending work.

SettingDescription
Interval5 min to once daily. Default: every 30 minutes.
Active HoursOnly run heartbeats during these hours (agent's timezone). Set 12AM–12AM for 24/7.
Custom PromptOverride what the agent checks during heartbeats. E.g., "Check emails, calendar events in next 2h."
Tokens per BeatEstimated tokens per cycle — 1K (minimal), 3K (typical), 5K (moderate), 10K (heavy).

Cost Estimation

The heartbeat card shows a real-time cost estimate based on your model and interval:

Example: 30-min interval with Haiku ≈ $0.10/day vs Opus ≈ $5/day.

Cost Impact: Each heartbeat is a full LLM call. A 5-minute interval = 288 calls/day. Use a cheaper model for heartbeats via Model Routing (set the "Scheduling" context).

Meeting Voice (ElevenLabs)

Configure a text-to-speech voice for meetings and voice interactions. Features:

Requires an ElevenLabs API key configured in Settings → Integrations. Without it, voices are shown but won't work.

Description

A human-readable description of what this agent does. Shown to other agents, team members, and included in the agent's system prompt. Be specific about responsibilities.

Role Template

If the agent was created from a role template (soul), the template name is shown as a badge. Templates pre-configure identity, personality, skills, and permissions for specific roles.

Key Concepts

Best Practices

Troubleshooting

ProblemSolution
"No providers configured" warningAdd API keys in Settings → Integrations for at least one provider.
Model dropdown is emptySelect a provider first. If still empty, the provider's API key may be invalid.
Heartbeat cost too highIncrease the interval, reduce active hours, or switch to a cheaper model.
Voice not working in meetingsEnsure ElevenLabs is connected in Settings → Integrations. Verify the voice ID is valid.
Fallback not triggeringEnsure fallback is enabled and models in the chain have valid API keys.
Config changes not applyingIf the agent is running, hot-update should work instantly. Check for error messages. Try restarting the agent.
AgenticMail Enterprise Documentation Report an issue