Meta Pixel tracking image
Myna

Agent Architecture Reference

A guide to building effective conversational agents

Ship conversational agents that handle real work, from small business to enterprise.

For builders Partner developers v2.2 · 2026

Download the PDF

Get the full runtime reference

Chatbot vs Agent

Introduction

The market has blurred the line between chatbots and agents. A true agentic AI solution can inspect state, choose approved tools, take action, verify the result, and respond from confirmed evidence.

Diagram comparing a linear chatbot flow with a stateful, tool-using agent flow

4 Key Concepts

The architecture behind true agentic AI solutions

01 / Runtime loop

Runtime loop

Every agent turn runs as a bounded loop. Myna builds context, checks policy, lets the model propose actions, executes approved calls, refreshes state, and composes a reply only after the work is confirmed.

1 Trigger
2 Context
3 Checks
4 Decide
5 Execute
6 Confirm
7 Compose
Code-style diagram showing the bounded runtime loop for an agent turn

02 / Turn contract

Turn contract

Every trigger is normalized into a TurnRequest, then expanded into an authoritative TurnContext with contact state, instructions, eligible tools, knowledge, confirmed evidence, and turn limits.

TurnRequest Trigger Message Channel
TurnContext Contact state Eligible tools Limits
Code-style diagram showing the TurnRequest contract fields

03 / Tool and action contracts

Tool and action contracts

Capabilities are tools: typed, authorizable units of work with input schemas, output schemas, eligibility rules, and idempotency for side effects. That is how agents safely take action.

Myna
KnowledgeScheduleRouteUpdateHandoffExternalResolve
Code-style diagram showing the base tool contract

04 / Composition and policy

Composition and policy

Language is composed after tool work stops. The composer uses confirmed results and refreshed state, then post-gates check truthfulness, leakage, conflicts, opt-outs, and delivery rules.

Tool results Refreshed state Composer Policy gates Delivery
Code-style diagram showing composition from confirmed evidence and refreshed state

Key Findings

90%+

AI SaaS still using traditional one-way LLMs

8x

Boost in productivity using Agents

84%

Automated resolution rate

Read the technical guide behind the award-winning conversational business agent

Try Myna for free

Sign up for free