Skip to main content
Proprietary agent harness Checked before and after every reply Stops when your team takes over

What is a runtime?

A runtime is the software that runs an AI agent. The AI model understands language and decides what to do, but on its own it can’t send a message, book an appointment or follow a rule every time. The runtime handles everything around the model: it receives each message, checks it, gives the model the information it needs, runs the tools the model asks for, checks the reply and sends it. The Myna Runtime around the AI model: messages arrive from any channel, pass pre-gates, the model reads context modules and runs tools that return evidence, and post-gates check the reply before it sends Every Myna agent runs on the Myna Runtime. There is nothing to install or set up. The instructions, persona, tools and knowledge you set in Workflow Studio all run inside it, the same way on every channel.

Building the runtime

Explore how you can set up the Myna Runtime directly from the platform.

Inbound: a message arrives

A customer sends a message on any connected channel. The runtime records who sent it, what they wrote and which channel it came through, so every stage after this one starts from the same facts.
SettingWhat it controls
Channels
Agent → Channels
Where the agent can respond, in order of priority
Assignments
Agent → Assignments
Which contacts this agent works with, and on which channels
Direction
Agent → Channels
Who starts the conversation
Response Delay
Agent → Reply Settings
How long the agent waits before starting a workflow
Tracing
Agent → Show logs
What happened on each inbound message

Pre-gates: checked before any model runs

Before any AI model runs, the runtime checks the message against a set of rules written in code. If a check fails, the message is blocked or deferred, and no model is involved at all.
SettingWhat it controls
Opt-Out
Contacts → status
Contacts who asked to stop or unsubscribe
Channel compliance
Settings
Rules that apply per channel, such as A2P 10DLC compliance for SMS
Takeover
Conversations
User takeover enabled to stop AI replies
Message Cap
Agent → Channels
Checks if message count is below the set limit
Agent Reply Schedule
Agent → Reply Settings
When the agent is allowed to reply

Context: assembled in modules

Your instructions never become one giant prompt. Objective, persona, tool policies, channel guidance, knowledge and corrections are separate modules, and each stage reads only what it needs.
SettingWhat it controls
Instructions
Studio → Agent node
The agent’s overall system instructions, objectives, tool references and variables
Persona
Agent → Persona
The agent’s tone and writing style
Tool policy
Studio → Tools
Tool-specific settings, input/output vars, and policies
Channel policy
Studio → Composer
How replies are formatted on each channel
Knowledge
Agent → Memory Hub
What data is accessible by the agent
Business Context
Settings → Business Profile
Your business details
Contact Fields
Agent → Contact Fields
What contact fields the agent can see and edit
Conversation History
Agent → Contact
Previous messages including timestamps and channels
Live state
Agent → Contact
Where a contact currently lives in a workflow

Planner: reasons, then calls its tools

The planner is the part of the agent that thinks. It reads the context, works out what the customer needs and calls tools by name. After each tool returns, it reads the result and decides what to do next.
SettingWhat it controls
Tools
Studio → Agent Node
Which tools the planner can call
Gates
Studio → Tools
Tools that are disabled until certain conditions are met
Planner model
Studio → Models
The AI model that decides which tools or skills to call

Tool evidence: tools return evidence

When the planner calls a tool, the tool fills in its own inputs from the conversation and the contact record, runs, and returns structured output. That output is evidence of what actually happened, not a message for the customer. It goes back to the planner for its next decision, and then to the composer once no more checks are required. Here is a booking as data:
Input · what the tool filled in
Evidence · what the tool returned
Tools that change data, such as booking an appointment or updating a contact, run one at a time. Only one of them can run per step, and if a call has already succeeded, running it again returns the first result instead of booking twice.
SettingWhat it controls
Extractor model
Studio → Models
The AI model that converts natural language and context into tool inputs
Inputs and outputs
Studio → Tools
What each tool is allowed to receive and return
Native tools available today: compose reply search memory ask qualification update contact change status update tags add note turn off ai offer appointment schedule appointment modify appointment create ticket update ticket hand off to human send call to action send gif
Custom tools: You’re able to connect webhooks, MCP tools and custom integrations to give your agents additional tools and skills.

Composer: one composer writes the reply

Once the planner is done, a single composer writes the reply, using confirmed evidence only. Its voice comes from your persona settings. The length, formatting and layout come from the channel policy, so the same answer can be a short text on SMS and a fuller message by email.
SettingWhat it controls
Persona
Agent → Persona
The agent’s tone and personality
Writing Style
Personas → Writing Style
Spelling, slang, punctuation and emoji
Channel policy
Studio → Composer
How replies are formatted on each channel
Corrections
Playground → Feedback
Wording fixes you approved during training
Composer model
Studio → Models
The AI model that writes the reply

Post-gates: checked again before it sends

Before anything is sent, a second set of checks written in code compares every claim in the reply with the tool evidence. They catch replies that claim something no tool proved, such as a booking, a ticket, a handoff or a contact update. A reply that fails gets one repair pass. If it still fails, the runtime sends a safe line or nothing at all. Here is a booking that failed, and the reply that claimed it anyway:
Draft reply
Post-gate result
Repaired reply
SettingWhat it controls
Hand Off to Human
Agent → Hand Off to Human
Checks that a handoff really happened before the reply says so
Tools
Studio → Agent Node
Which actions a reply is allowed to claim
No reply
Studio → Composer
When the agent may leave a message unanswered

Send: reply and update state

Only the runtime sends messages, and only after the post-gates approve. In a workflow with multiple stages, the contact then lands on the right next step. Routing uses deterministic conditions, and the workflow graph is verified so it can always run.
SettingWhat it controls
Send from
Agent → Channels
The number or address the reply goes out from
Split Texting
Agent → Reply Settings
Sends a longer reply as separate texts
Conditions
Studio → Agent Node
Where the contact goes next
Billing
Settings → Billing
What each reply costs

One Agent Node or several?

Each Agent Node is one set of instructions working with the tools you select. An agent’s workflow can have one Agent Node or several, connected by workflow steps. Workflows with several Agent Nodes are available on request.
Only switch on the tools your agent’s job needs. Fewer tools make your agents more accurate. For more complex workflows, multiple Agent Nodes and Condition nodes are better.

Why not just write one big prompt?

Many AI agents out there are built on a single long prompt that holds everything at once: the personality, the business rules, the tool instructions, the prices and the formatting. But with this strategy as a business adds rules and edge cases, the prompt keeps growing, and problems start to show.

Rules collide

Instructions like “keep replies short” and “explain every service in detail” can sit side by side, and the model decides which one wins.

Stronger wording doesn't fix anything

Writing a rule in capital letters doesn’t guarantee the model follows it. It is still one instruction weighed against hundreds of others.                                                                                                                                      

Critical rules get buried

A rule such as never confirming a booking before it happens sits in the same text as a rule about emoji, and to the model, both are just lines of text with the same weight.

Mistakes are hard to trace

When everything lives in one document, it’s hard to tell whether a problem came from the instructions, the knowledge or a conflicting rule. The usual fix is one more sentence.                                                          
Myna splits that work apart. Your agent’s setup is kept in separate modules for instructions, persona, tool rules and knowledge. The rules that must always hold are written into the software itself, outside the prompt. This is the difference between an AI Agent tool and an award-winning harness.

What the runtime promises

These eight rules hold on every turn, on every channel, for every agent.

Tools never send

Only the runtime sends messages, and only after the post-gates approve. A tool built to send messages can’t even be registered.

One change per step

Only one booking, ticket or handoff runs per step, and a call that already succeeded returns its result instead of running twice.

A bounded loop

Planning runs for a small, capped number of steps. Any tool failure ends it, and the customer still gets an honest reply.

A fixed order of priority

Truth comes first, then safety and your policies, then the conversation and your instructions, then the persona’s voice. The channel decides how the reply is delivered.

Tools can be removed

Each layer can only narrow the tools on offer. A tool that isn’t enabled for the current turn is refused, even one that only reads data.

No false confirmations

A failed booking, move or handoff can never be reported as done. A reply can only claim what a tool proved.

Takeover means silence

When someone on your team takes over, the agent stops before any model runs. Incoming messages still reach your team.

Facts come from records

Contact fields, answers, appointments and tickets are read from structured records every turn, not remembered from the transcript.