Skip to navigation

MIA — MeetStream Infrastructure Agents

View as Markdown

MIA is the AI agent layer built into MeetStream’s infrastructure. It lets you deploy intelligent, voice-enabled agents into live meetings across Google Meet, Zoom, and Microsoft Teams — no infrastructure to manage.

When a MeetStream bot joins a meeting, MIA receives the live audio stream, processes it in real time through your configured AI pipeline, and responds back into the meeting via voice, chat, or silent tool actions.

MIA is the Agents API: it runs on top of the Bot API. MIA is track 3 in Build tracks: MeetStream hosts the agent. If you only need recordings, transcripts or live data, use the Bot API. To run your own models, including local ones, use a bridge server instead. For prices and keys, see Voice agent pricing and keys.

Applies to: Google Meet, Zoom, Microsoft Teams Support: docs.meetstream.ai · API: api.meetstream.ai


How It Works

Meeting Platform
│
▼
MeetStream Bot ──── joins as participant
│
│ Live audio (binary PCM, low-latency)
▼
MIA Engine
│
├── STT ──► LLM ──► TTS (pipeline mode)
│ or
├── Realtime provider (realtime mode)
│
├── MCP Servers ◄──► Tool calls
│
▼
MeetStream Bot
│
▼
Meeting Platform ──── speaks, sends chat, or executes actions

MIA connects to the bot over two dedicated channels:

ChannelFormatPurpose
AudioBinary PCMLive meeting audio with speaker metadata, with no JSON or base64 overhead
ControlJSONCommands: send voice responses, chat messages, images, interrupts

Operating Modes

MIA supports two modes. Choose based on your latency and flexibility needs.

Realtime Mode

A single provider handles speech-to-text, reasoning, and text-to-speech in one integrated pipeline. This is the fastest path — audio goes in, audio comes out, with minimal hops.

  • Latency: lowest. One provider handles speech and reasoning.
  • Best for: Conversational agents where response speed is critical
  • Trade-off: Provider choice is all-or-nothing — you can’t mix STT from one vendor with LLM from another

Pipeline Mode

Each stage of the pipeline — STT, LLM, and TTS — is independently configurable. Pick the best provider for each job.

  • Latency: higher than realtime mode, because each stage is a separate step.
  • Best for: Fine-tuned setups where you want specific providers per capability (e.g., Deepgram for STT, GPT-4.1 for reasoning, ElevenLabs for voice)
  • Trade-off: Higher latency due to sequential processing stages

Tip: Start with Realtime mode for the fastest experience. Switch to Pipeline when you need specific provider combinations or features like wake words and adaptive interruption handling.


Response Modalities

Choose how the agent interacts during the meeting:

ModalityBehavior
VoiceAgent listens and responds with spoken audio
ChatAgent responds via text messages in the meeting chat
ActionAgent performs tool actions silently — no voice or chat output

In all three modalities, the agent can execute MCP tools, built-in tools, and custom functions when configured. For example, an action-only agent can silently create tickets, update CRMs, or trigger workflows based on what it hears in the meeting.


Supported Providers

Each provider can run on MeetStream’s inbuilt (default) keys or on your own provider keys saved under Integrations. Using your own agent as the LLM (local_agent) is coming soon. Inbuilt keys work in pipeline mode only: Deepgram (speech-to-text) and OpenAI (LLM and voice). Realtime mode runs on OpenAI and needs your own OpenAI key. Any other provider: bring your own key. Agent configurations contain provider identifiers and settings, not raw provider API keys. See Voice agent pricing and keys.

Realtime Providers

The MIA configuration API accepts these unified realtime providers:

Provider identifierDefault modelDefault voice
openaigpt-realtime-minicoral
googlegemini-2.5-flash-native-audio-preview-12-2025Puck
xaiProvider-managedAra

The API validates provider identifiers. Use the provider identifiers in this table.

Pipeline STT Providers

Provider identifierDefault modelOther examples
deepgramnova-2nova-3, nova-2-conversationalai, flux-general
openaiwhisper-1—
assemblyaiu3-rt-prouniversal-streaming, universal-streaming-multilingual
xaistt-1—

Pipeline LLM Providers

Provider identifierExample models
openaigpt-5.4-mini, gpt-5.4-nano, gpt-5, gpt-5-mini, gpt-5-nano, gpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini
anthropicAn Anthropic model available to your configured account
googlegemini-2.5-pro, gemini-2.5-flash
xaigrok-3, grok-3-mini
local_agentComing soon, not yet available in production. Your own agent (Claude Code, Codex and others) through the meetstream CLI (meetstream setup and meetstream agent serve). See MIA Screen Sharing and Custom Agents.

Model names are passed to the selected provider and are not a guarantee that every model is enabled for every account.

Pipeline TTS Providers

Provider identifierDefault modelVoice examples
openaitts-1alloy, ash, coral, nova, shimmer
elevenlabseleven_turbo_v2_5Voice IDs from your ElevenLabs account
xaitts-1ara, eve, leo, rex

Default TTS model by provider

When voice.model is omitted, the API auto-fills a default:

ProviderDefault voice.model
openaitts-1
elevenlabseleven_turbo_v2_5
xaitts-1

Required fields for voice: provider and voice_id are always required. model is optional (auto-filled). ElevenLabs voice IDs are provider-specific UUIDs — do not reuse OpenAI names like "alloy".


Key Capabilities

Wake Word Gating (Pipeline Mode)

Pipeline agents start with wake-word gating on unless wake_word.enabled=false is stored. Without an explicit block, runtime defaults are "hey assistant", "hello bot", and a 30-second listening window. Once activated, the agent listens and responds for the configured timeout, then returns to standby.

To turn the wake word off, store "wake_word": { "enabled": false } on the agent (or toggle Enabled off in the Wake Word panel of the agent editor). To turn it off for one live bot, call update_mia with "wake_word_enabled": false. A pipeline agent that speaks its greeting but ignores questions is usually waiting for its wake word.

  • Configure one or more wake phrases (e.g., “hey assistant”, “hello bot”)
  • Adjustable activation timeout (default: 30 seconds)
  • Each new user utterance during the active window extends the timeout
  • Participant-count bypass: optionally auto-disable the gate for small meetings — set bypass_below_participants: 1 to make the bot always-on in 1:1 calls (you + bot). Reacts live to mid-call joins/leaves, so the gate re-enables the moment a second human joins.
  • Max listening window: optionally cap how long a single listening session can stay open (max_listening_window, in seconds). Once exceeded, the user must say the wake word again — useful for high-traffic shared meetings where you want a hard ceiling on always-on listening.

See wake_word in the Agent Config API Reference for the full field list.

Adaptive Interruption Handling

MIA distinguishes between real interruptions and background noise like “uh-huh” or “okay”:

  • Adaptive mode (pipeline): Uses ML-based barge-in detection to filter backchanneling — the agent keeps speaking through filler words but stops for genuine interruptions
  • VAD mode: Silence-based detection — any speech above the threshold triggers an interrupt
  • Configurable false interruption timeout with automatic speech resumption
  • Minimum duration and word thresholds to prevent noise-triggered interrupts

Voice Activity Detection

Configurable per mode:

  • Realtime: Provider-native VAD with semantic understanding (OpenAI) or silence-based detection. Adjustable eagerness, silence duration, and speech probability thresholds.
  • Pipeline: Local high-performance VAD model with configurable activation threshold, silence duration, and speech padding.

Turn Detection

Multiple strategies for detecting when the user has finished speaking:

ModeBehavior
VADSilence-based — waits for a configurable pause after speech
STTTranscript-based — uses the STT provider’s endpointing signals
MultilingualML turn-detector model optimized for non-English conversations
ManualProgrammatic control — you decide when the agent should respond

Endpointing can be fixed (constant delay) or dynamic (adapts to conversation rhythm).

MCP Tool Calling

Connect the agent to external tools and services via Model Context Protocol:

  • Multiple MCP servers per agent, each with its own URL and auth headers
  • Tool whitelisting — expose only the tools you want the agent to use
  • Configurable per-server timeouts
  • Fail-open behavior: If an MCP server is unreachable at session start, the agent retries without those tools rather than failing entirely

Custom Function Tools

Register any HTTPS endpoint you host as an agent tool — no MCP server required. Each function is described with a JSON Schema so the LLM knows the arguments, and MIA handles the HTTP call end-to-end.

  • When to pick custom functions vs MCP: custom functions are a single endpoint registration — drop-in for one-off integrations. MCP is preferable when you already run a multi-tool MCP server that several agents share.
  • Authentication: handled by you through a narrowly scoped credential in the function’s headers. Header values are stored with the agent configuration.
  • Retries and timeout: automatic exponential backoff on 5xx and network errors (up to 5 retries, waits capped at 8 seconds).
  • Response cap: long responses are truncated before being passed back to the LLM so a noisy endpoint doesn’t inflate context.
  • Response variables: pick fields out of successful JSON responses via dot-notation paths. They are available to later custom-function templates and stored-prompt rebuilds triggered by update_mia.
  • Speak during execution (optional): the agent emits a filler utterance (e.g. “One moment while I pull that up.”) while the HTTP call is in flight so the meeting doesn’t go silent.
  • Speak after execution (optional): set speak_after_execution=false to end the turn silently after the tool returns — useful for pure side-effect calls (create-ticket, update-CRM, etc.).
  • Limits: up to 20 custom functions per agent, up to 20 response variables per function.

See Custom Functions Guide for an end-to-end walkthrough.

Built-in Tools

Available without any external MCP server. Enable them by listing their names in agent.tools:

ToolDescription
current_timeReturns current time in ISO 8601 with optional timezone
weather_nowReturns current weather for a city (no API key required)
screenGoogle Meet. MIA presents a live web page and reads, clicks, types and scrolls it. Needs a model that can see images. See MIA Screen Sharing and Custom Agents.

Echo Cancellation and Speaker Filtering

MIA automatically prevents the agent from hearing and responding to its own voice:

  • Audio from known agent speakers is filtered out before processing
  • RMS-gated echo suppression when the agent is actively speaking
  • Silence gating on all incoming audio below a noise floor

Text-Only / Chat Mode

The agent processes speech but responds only via meeting chat messages — no voice output. Useful for note-taking bots, silent assistants, or scenarios where voice responses would be disruptive.

Optional trigger keywords can gate when the agent responds in chat mode.

First Message / Greeting

In pipeline mode, set model.first_message to a greeting that the agent speaks (or sends as chat) after it joins the meeting. The agent doesn’t wait for user input — it proactively introduces itself.

Speaker-Aware Responses (Pipeline Mode)

Set agent.speaker_aware_responses=true to prefix each transcribed user message with the active participant’s display name before it reaches the LLM. Use agent.speaker_aware_prompt to replace the default instruction governing how the model uses those names.

  • Zoom: separate audio for each participant (strongest)
  • Google Meet: follows the active speaker (approximate)
  • Microsoft Teams: isolated participant tracks when available; dominant-speaker fallback otherwise
  • Custom prompt limit: 2000 characters

The prefix uses the latest speaker state when an utterance completes, so during rapid hand-offs and overlapping speech it names the speaker who was active last. Speaker awareness is compatible with wake words, custom functions, and MCP tools. Use it with pipeline agents.

Template Variables and Live Updates

Use {{variable}} placeholders in model.system_prompt and model.first_message, then pass values in agent_config_params when creating the bot. Unresolved placeholders remain unchanged.

While a bot is in a meeting, POST /api/v1/bots/{bot_id}/update_mia can:

  • merge new agent_config_params
  • replace the active system_prompt
  • force wake-word gating on or off with wake_word_enabled
  • replace phrases with wake_words

The endpoint accepts and forwards live changes asynchronously; HTTP success does not wait for confirmation from the active agent session. Live changes apply to the current session. Update the saved agent with PUT /api/v1/mia when a change must persist to future sessions.

Virtual Avatars (Anam)

Video-based agent presence — instead of the agent appearing as a static bot tile, a photorealistic animated avatar lip-syncs to the TTS output in real time on the bot’s video track.

  • Provider: Anam — BYOK, key added as avatar.anam in the integrations page
  • Works in: both Realtime and Pipeline modes, on all three meeting platforms
  • Avatar selection: pick any avatar from your Anam account by avatar_id (listed via Anam’s GET /v1/avatars)
  • Preflight validation: MeetStream verifies the avatar_id and API key when the agent starts and returns specific errors for common misconfigurations — including the frequent personaId vs avatarId mix-up
  • Fail-safe: if Anam is unreachable or hits its concurrent-session limit, MeetStream returns a diagnostic error (open-session list + auto-expiry ETA) so you can recover without guessing

Provider Keys and Pricing

An agent costs $0.25 per hour for the agent infrastructure, in addition to the bot price. (A bridge server on your own stack is not a MIA agent and costs the bot price only.) The setups:

  • MeetStream’s inbuilt (default) keys: set "key_source": "meetstream" on a pipeline section (transcriber, model, voice). You also pay the per-hour price of the models that you pick, which the dashboard agent editor shows before the bot runs. Inbuilt keys work in pipeline mode only: Deepgram (speech-to-text) and OpenAI (LLM and voice). Realtime mode runs on OpenAI and needs your own OpenAI key. Any other provider: bring your own key.
  • Your own keys: save your provider keys in the dashboard under Integrations. Keys are never stored in the agent configuration. Your provider bills you for model usage.
  • Your own agent (coming soon, not yet available in production): model.provider: "local_agent" with the meetstream CLI (meetstream agent serve). MeetStream will charge no model tokens for your agent’s reasoning.

See Voice agent pricing and keys for prices, examples and the error when inbuilt keys are not available on your account.

Per-Bot Logging

The Container Logs tab on the bot page shows errors from the agent session.


Configuration Reference

Agent configuration is set through the MIA dashboard. Below are the key configuration areas and what they control.

Agent Settings

SettingOptionsDescription
Moderealtime, pipelineSingle-provider vs multi-provider pipeline
agent.response_modalityaudio, chat, actionHow the agent communicates back; defaults to audio
System promptFree textDefines agent personality, constraints, and behavior
model.first_messageFree textOptional pipeline greeting spoken when the bot joins
agent.speaker_aware_responsestrue, falsePrefix pipeline transcripts with the participant’s name
agent.speaker_aware_promptFree text, max 2000 charsOptional instruction for interpreting speaker names

Provider Settings

Realtime mode: Select one provider and model for the entire pipeline.

Pipeline mode: Select independently:

  • STT provider + model + language
  • LLM provider + model + parameters (temperature, max tokens, etc.)
  • TTS provider + model + voice

Interruption Settings

SettingDefaultDescription
Enable interruptionsYesWhether users can interrupt the agent
Interruption modeAdaptivePipeline agents can use adaptive detection, which ignores short backchannel words such as “uh-huh”. If adaptive detection is not available, the agent uses VAD.
False interruption timeout2 secondsWait time before declaring a noise-triggered interrupt as false
Resume after false interruptYesAutomatically resume agent speech after a false interrupt
Minimum speech duration0.5 secondsUser must speak this long to count as an interrupt
Minimum word count2 (pipeline) / 0 (realtime)Transcribed words required to count as an interrupt

Wake Word Settings (Pipeline Only)

SettingRequiredDefaultDescription
EnabledNotrue at runtimeWhether wake word gating is active; set explicitly to false for always-on listening
WordsYes in an explicit enabled block["hey assistant", "hello bot"] at runtimeTrigger phrases (case-insensitive)
TimeoutNo30 secondsHow long the agent stays active after hearing the wake word; rolls forward on every new utterance
Bypass below participantsNo0 (off)When the meeting has at most this many humans (the bot is excluded), wake-word gating is skipped entirely. Reacts live to joins/leaves. Set to 1 for 1:1 calls.
Max listening windowNo0 (off)Hard cap (seconds) on a single listening session. Once exceeded, user must re-trigger the wake word. Default rolling-extend behaviour preserved when 0.

MCP Server Settings

SettingRequiredDescription
URLYesStreamable HTTP MCP endpoint
HeadersNoAuthentication headers. Put the header value in the agent configuration. Use a narrowly scoped token for each server.
Allowed toolsNoWhitelist of tool names — omit to allow all
TimeoutNo (default: 10s)Request timeout per tool call
agent.mcp_fail_openNo (default: true)Retry the session without MCP tools if MCP startup fails

Custom Function Settings

SettingRequiredDescription
NameYesSnake-case identifier, unique per agent, max 64 chars
DescriptionYesNatural-language description shown to the LLM — drives tool selection
MethodNo (default: POST)HTTP method: GET, POST, PATCH, PUT, or DELETE
URLYesHTTPS endpoint; must resolve to a public IP (SSRF-protected)
ParametersNoJSON Schema (type: object) describing the LLM-supplied arguments
HeadersNoExtra HTTP headers used for endpoint authentication; values may use {{variable}}. Put the header value in the agent configuration. Use a narrowly scoped token for each function. MeetStream adds X-Bot-ID, and X-Agent-ID when available, so do not require X-Agent-ID on your endpoint.
TimeoutNo (default: 30s)Total request timeout; range 1–120s
RetriesNo (default: 2)Number of retries on 5xx/network; range 0–5
Response capNo (default: 15000)Characters of response body fed back to the LLM; range 1000–50000
Speak during executionNo (default: off)Emit a filler utterance while the HTTP call is in flight
Speak during promptNoOptional fixed filler text (e.g. “One moment…”); defaults to “One moment please.” if omitted
Speak after executionNo (default: on)If off, the agent’s turn ends silently after the tool completes
Response variablesNoList of { name, path } extractors — dot-notation JSON paths

Avatar Settings

SettingRequiredDescription
EnabledNo (default: false)Whether the agent renders a video avatar on its participant tile
ProviderNo (default: anam)Avatar provider: anam
Avatar IDYes (when enabled with anam)Anam avatar_id — pick from GET https://api.anam.ai/v1/avatars. Must be an avatar_id, not a persona_id
Avatar modelNoOptional Anam avatarModel override
NameNoOptional persona display name

Requires an Anam API key configured under Integrations → Avatar → Anam.


Example Configurations

Realtime Voice Agent

Fastest possible agent — single provider, voice responses.

Mode: Realtime
Provider: OpenAI
Model: gpt-4o-realtime-preview
Response: Voice
System prompt: "You are a concise meeting assistant. Answer questions
about the discussion and help track action items."

Pipeline Chat Agent

Multi-provider setup, responds via meeting chat.

Mode: Pipeline
STT: Deepgram nova-3
LLM: Google gemini-2.5-flash
TTS: (none — chat mode)
Response: Chat
System prompt: "You are a silent meeting note-taker. Summarize key
points when asked. Keep responses brief."
Wake word: "hey notes"

Action-Only Agent with MCP

Silently executes tools based on meeting conversation.

Mode: Pipeline
STT: Deepgram nova-3
LLM: OpenAI gpt-4.1
TTS: (none — action mode)
Response: Action
System prompt: "Listen for action items. When someone says 'create a
ticket for [task]', use the Linear tool to create it.
Do not speak or send chat messages."
MCP Server: https://your-mcp-gateway.example.com/mcp
Authorization: Bearer <token>
Allowed tools: create_issue, list_issues

Realtime Agent with Anam Avatar

Voice agent with a photorealistic animated avatar rendered on the bot’s video track. Requires ANAM_API_KEY configured via Integrations → Avatar → Anam.

Mode: Realtime
Provider: OpenAI gpt-realtime
Response: Voice
Avatar: Anam (avatar_id = "f0e7a8c4-…")
System prompt: "You are a friendly customer success agent. Greet
participants warmly and help them get started."

Pipeline Agent with Custom Function

Support-style agent that calls your own HTTPS endpoint to look up an order. The response’s data.order.status is captured and exposed as {{latest_order_status}} for the rest of the session, so a subsequent update_mia prompt can reference it directly.

Mode: Pipeline
STT: Deepgram nova-3
LLM: OpenAI gpt-4.1
TTS: OpenAI nova
Response: Voice
System prompt: "You are a support agent. When the caller asks about an
order, call lookup_order. When they ask to open a
ticket, call create_ticket."
Custom function 1: name = lookup_order
method / url = POST https://api.example.com/orders/lookup
parameters = { order_id: string (required) }
speak_during = "One moment while I pull that up."
response_vars = latest_order_status ← data.order.status
Custom function 2: name = create_ticket
method / url = POST https://api.example.com/tickets
parameters = { subject, body, priority }
speak_after = false (silent side-effect)

xAI Full Pipeline Agent

Full xAI-powered pipeline using a single XAI_API_KEY for all three components: Grok STT, Grok LLM, and Aurora TTS. Requires XAI_API_KEY configured via the Integrations page.

Mode: Pipeline
STT: xAI stt-1 (25 languages)
LLM: xAI grok-3
TTS: xAI tts-1, voice: ara
Response: Voice
System prompt: "You are a helpful AI meeting assistant powered by xAI.
Keep responses concise and natural."

Available xAI TTS voices: ara (warm, friendly), eve (energetic, upbeat), leo (authoritative, strong), rex (confident, clear)

API configuration:

{
"mode": "pipeline",
"model": {
"provider": "xai",
"model": "grok-3",
"system_prompt": "You are a helpful AI meeting assistant. Keep responses concise.",
"temperature": 0.8,
"max_tokens": 150
},
"voice": {
"provider": "xai",
"model": "tts-1",
"voice_id": "ara"
},
"transcriber": {
"provider": "xai",
"model": "stt-1",
"language": "en"
}
}