<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Ronan Oliveira</title>
    <description>The latest articles on DEV Community by Ronan Oliveira (@oliveiraronan).</description>
    <link>https://dev.to/oliveiraronan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4229340%2F7c2a7b1e-cd1e-4b8b-93b7-c7cb98699bf6.jpg</url>
      <title>DEV Community: Ronan Oliveira</title>
      <link>https://dev.to/oliveiraronan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/oliveiraronan"/>
    <language>en</language>
    <item>
      <title>One agent, invoked from anywhere: n8n, SDKs, MCP and channels</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:45:06 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/one-agent-invoked-from-anywhere-n8n-sdks-mcp-and-channels-2085</link>
      <guid>https://dev.to/oliveiraronan/one-agent-invoked-from-anywhere-n8n-sdks-mcp-and-channels-2085</guid>
      <description>&lt;p&gt;The scenario is common: the automation team builds a flow in n8n that calls the model directly. The product team writes another prompt in code. Someone connects an AI assistant to the same database on their own. Three "agents" that are, in fact, three raw model calls — each with its own rules, cost and history, none auditable as a whole.&lt;/p&gt;

&lt;p&gt;Agent portability is the alternative: the agent is defined once, on the platform, and each surface — automation, code, AI client or chat channel — just invokes it. This guide shows how that works in Zihin and where the limits of each path are.&lt;/p&gt;

&lt;h2&gt;
  
  
  What travels with the agent
&lt;/h2&gt;

&lt;p&gt;In Zihin, persona, tools, policies and memory live on the platform. Every call is an agent call, never a raw model call. That means five things apply equally, no matter where the agent is triggered from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Roles (RBAC).&lt;/strong&gt; Owner, admin, editor and member, enforced in the UI and the API.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget.&lt;/strong&gt; The per-agent dollar spending cap stops execution, even with your own model key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Human approvals.&lt;/strong&gt; Actions in the configured scope stay pending until the responsible person decides.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audit.&lt;/strong&gt; The session can be replayed with phases, tool calls and per-call latency.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session.&lt;/strong&gt; The same conversation continues across surfaces, with the history stored on the platform.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The practical difference: when the approval policy changes, it changes once. The n8n flow, the TypeScript service and Claude Desktop all respect the new rule on the next call, with no deploy.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;See the product view at &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;/product&lt;/a&gt;. Below, each invocation path with what is published today.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to integrate an AI agent with n8n and other automations
&lt;/h2&gt;

&lt;p&gt;For those who live in flows, Zihin publishes npm packages for &lt;strong&gt;n8n&lt;/strong&gt; and &lt;strong&gt;Activepieces&lt;/strong&gt;, plus an &lt;strong&gt;adapter for Paperclip&lt;/strong&gt;. You install it as a node or piece and invoke the agent from any flow: the trigger can be a form, a new spreadsheet row, a CRM event — the node receives the input, calls the agent and passes the answer to the next step.&lt;/p&gt;

&lt;p&gt;What to keep in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Installation and marketplace listing vary by platform. Check each package's version before depending on it.&lt;/li&gt;
&lt;li&gt;The node doesn't "talk to the model"; it invokes the agent. Roles, budget and approvals apply to the call as on any other surface.&lt;/li&gt;
&lt;li&gt;Streaming, retries and errors behave the same across all published connectors, because they share the same core.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Zapier and Make aren't public yet.&lt;/strong&gt; If your flow lives in one of them, today's path is the webhook (next section, on channels) or the REST API.&lt;/p&gt;

&lt;h2&gt;
  
  
  From your code: TypeScript SDK, Python SDK and REST API
&lt;/h2&gt;

&lt;p&gt;Three options, at different levels of maturity — and it's worth being direct about that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TypeScript SDK &lt;code&gt;@zihin/agent-client&lt;/code&gt; 0.4.0.&lt;/strong&gt; It's the most complete client: agent invocation, response streaming and asynchronous triggers. Published on npm.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python SDK &lt;code&gt;zihin&lt;/code&gt;.&lt;/strong&gt; Published on PyPI, it covers invocation and sessions. Context, attachments and triggers are left for future versions — there's no parity with the TypeScript client today. If your case needs attachments or triggers in Python, the REST API covers it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;REST API with SSE streaming.&lt;/strong&gt; The API has its own call contract: request, response, structured JSON output with schema validation and sending images together with text. It is &lt;strong&gt;not compatible with the OpenAI SDK&lt;/strong&gt; — an existing integration may need adjustments to authentication, payload and response handling. Automatic routing (&lt;code&gt;model: "auto"&lt;/code&gt;) and the fallback chain between models live in the agent's configuration, not in your code.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Treat the SDK as the agent's entry point, not as a model wrapper. Business logic, tools and limits stay in the agent definition; the code just sends the task and consumes the result. When the team changes the model or adds a tool, the service doesn't need to change.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Quickstart, call reference and packages are at &lt;a href="https://www.zihin.ai/en/developers" rel="noopener noreferrer"&gt;/developers&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  From the AI assistant you already use, via MCP
&lt;/h2&gt;

&lt;p&gt;Zihin is also an &lt;strong&gt;MCP server&lt;/strong&gt;. That lets you talk to your agents and manage the platform from the AI client your team already uses: Claude Desktop, Claude Code, Cursor, VS Code, Windsurf, Codex and Gemini CLI.&lt;/p&gt;

&lt;p&gt;Through MCP, an editor manages agents, secrets and telemetry without opening the console. Two governance points still apply:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The available tools depend on the role and permissions of whoever connected. A member doesn't gain admin powers by being in Cursor.&lt;/li&gt;
&lt;li&gt;Actions require approval when the configured policies say so — MCP isn't a shortcut around policy.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The MCP package, at version 2.2.2, came with the removal of the direct database connection tools: data comes in through API tools or MCP servers, such as the MCP Bridge over the read-only copy maintained by Replay. The agent doesn't receive database credentials through any path.&lt;/p&gt;

&lt;h2&gt;
  
  
  From channels: WhatsApp, Slack, Teams, email, webhook and scheduling
&lt;/h2&gt;

&lt;p&gt;The last surface is where the end user meets the agent. Today, the published integrations are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;WhatsApp via Twilio.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Slack and Teams via webhook/API.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Incoming email&lt;/strong&gt; as a trigger.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HTTP webhook&lt;/strong&gt;, for any system that can make a call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scheduling&lt;/strong&gt;, for routines at set times — check the time zone, input data and result destination.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Input, response and authentication vary by channel and provider. Webhook, email and scheduling triggers are available from the Core plan; multichannel (WhatsApp, Slack, Teams) from Pro — details at &lt;a href="https://www.zihin.ai/en/plans" rel="noopener noreferrer"&gt;/plans&lt;/a&gt;. Telegram and Discord aren't in the published catalog.&lt;/p&gt;

&lt;p&gt;The point that closes the loop: the conversation started on WhatsApp is the same session that Zihin Chat shows the internal team, with pending approvals in the same place. One person approves what another triggered, right in the chat, and the audit records both.&lt;/p&gt;

&lt;h3&gt;
  
  
  A checklist before multiplying surfaces
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Define the agent once, with an owner.&lt;/strong&gt; Persona, tools, approval policy and spending cap. Only then add the second surface.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start with the lowest-friction path.&lt;/strong&gt; Flow already exists in n8n? Use the node. Your own product in TypeScript? Use the SDK. Team operating in Cursor? Connect MCP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Confirm what's published.&lt;/strong&gt; Package version, Python SDK coverage, channel available in the plan. This post reflects what Zihin publishes today; the &lt;a href="https://www.zihin.ai/en/changelog" rel="noopener noreferrer"&gt;changelog&lt;/a&gt; and the documentation record what changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test approval on every surface.&lt;/strong&gt; Trigger an action in the approval scope through n8n, the SDK and MCP, and check that they all ended up pending in the same place.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When all four steps pass, the "n8n agent", the "code agent" and the "Claude agent" stop existing. There's one agent, with one rule, seen from several places — and that's what makes AI operable in production.&lt;/p&gt;

&lt;p&gt;Want to map the surfaces of your operation and where to start? &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/um-agente-invocado-de-qualquer-lugar-sdk-n8n-mcp" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>n8n</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Getting started with AI agents at your company: the first 30 days</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:27:47 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/getting-started-with-ai-agents-at-your-company-the-first-30-days-2khh</link>
      <guid>https://dev.to/oliveiraronan/getting-started-with-ai-agents-at-your-company-the-first-30-days-2khh</guid>
      <description>&lt;p&gt;The board asked for "something with AI" next quarter. You have three vendors on the calendar, no numbers in hand and an operation that can't stop for experiments. The risk isn't the AI going wrong — it's spending 30 days on demos and ending up not knowing whether it's worth it.&lt;/p&gt;

&lt;p&gt;This plan is for the operations director who wants an answer in a month: start small, measure for real and decide on executions and cost, not slides.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 1: the trial with your own key and a process with real pain
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://www.zihin.ai/en/plans" rel="noopener noreferrer"&gt;Zihin Trial&lt;/a&gt; lasts 15 days, asks for no card and includes 100K complimentary Zihin tokens, and you can connect your own AI provider key (BYOK). If the complimentary tokens run out before the period ends, an agent with a fixed model and no fallback chain keeps running on your key; when the 15 days end, you need to choose a plan. In practice, that changes the conversation with finance: usage on your key is billed by the provider, with no Zihin markup, and the platform is a separate cost — zero during the test.&lt;/p&gt;

&lt;p&gt;The Trial includes 1 agent, 1 admin and 1 editor/member, 100K tokens per cycle, 24-hour sessions and access to Zihin Chat, the app the team uses to talk to the agent. It's small on purpose: it fits one process. Choose it well.&lt;/p&gt;

&lt;p&gt;Three criteria for choosing the process:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The pain is measurable today.&lt;/strong&gt; Someone already complains about it in numbers: hours per week, a ticket queue, a missed deadline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The answer depends on data that lives in a system.&lt;/strong&gt; Orders, tickets, customer records, contracts. If the information is "in Carlos's head", it's not the first case.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Getting it wrong is cheap.&lt;/strong&gt; Start with lookups and triage, not irreversible actions.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Don't start with the process most visible to the board. Start with the one that has an owner, data and pain. An agent that answers "what's the status of order 4,512?" in seconds is more convincing than an ambitious pilot that never reaches the end of the trial.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Week 2: one data source, read-only
&lt;/h2&gt;

&lt;p&gt;The agent is only useful when it reaches the system where the work happens. But in week 2 there's a single rule: &lt;strong&gt;connect one source, and only for reading&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In Zihin, the agent uses the tools you make available — REST endpoints configured as tools with authentication and defined parameters, or MCP servers. An integration can be read-only, and writing is never automatic: the agent only does what the exposed tool allows. For ERPs and databases, the production path is Zihin Replay, which keeps a read-only copy in your network, queried through the MCP Bridge — the agent never receives database credentials. That feature is part of the Business plan, so in the Trial the source is usually an API of the system or an MCP server your team already exposes. See the paths at &lt;a href="https://www.zihin.ai/en/integrations" rel="noopener noreferrer"&gt;/integrations&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Credentials live in the platform's encrypted vault (AES-256) and are resolved by the authorized integrations, not pasted into the prompt.&lt;/p&gt;

&lt;p&gt;What to deliver by the end of the week: an agent that answers real questions about the chosen process, querying the system, for 2 or 3 people in the operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 3: who approves what
&lt;/h2&gt;

&lt;p&gt;Before expanding, define the limits. Two mechanisms address most of an operations director's concerns:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Human approval.&lt;/strong&gt; You define the scope of actions that require approval, and the step stays pending until the responsible person decides — right in the chat. One user can approve the action triggered by another; responsibility sits between people, not just between a person and an agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A spending cap per agent.&lt;/strong&gt; A dollar limit per agent. When it hits the cap, the agent stops on its own, even when running on your key. That takes the question "what if it burns everything overnight?" off the table.&lt;/p&gt;

&lt;p&gt;Add to that the four-level access control — owner, admin, editor and member — enforced in both the UI and the API. The difference between the two most used roles is simple:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Editor&lt;/strong&gt; creates and edits agents, including flows, connections and configuration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Member&lt;/strong&gt; uses ready-made agents (chat, WhatsApp, Slack) and doesn't see configuration, prompts or other people's conversations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both count as plan users. In the Trial you have one editor/member seat; this is the time to decide who will be the agent's technical owner and who will be the operations user.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Write the approval policy in one sentence before configuring it: "every reply that mentions an amount above X goes through management". If the sentence doesn't fit on one line, the process isn't clear enough for an agent yet.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Week 4: measure executions and cost, then choose the plan
&lt;/h2&gt;

&lt;p&gt;Time to look at the numbers. The console shows the account's consumption; each execution's session can be replayed with phases, tool calls and per-call latency. With that, three questions close the pilot:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;How many executions did the process generate&lt;/strong&gt; in two weeks, and how many needed human approval?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How much did it cost in tokens&lt;/strong&gt; on the provider's bill, and what does that represent per execution?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How much time did the operation stop spending&lt;/strong&gt; on the chosen process, in the metric defined in week 1?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With the answers, choosing a plan stops being a guess. The prices published at &lt;a href="https://www.zihin.ai/en/plans" rel="noopener noreferrer"&gt;/plans&lt;/a&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Core&lt;/th&gt;
&lt;th&gt;Pro&lt;/th&gt;
&lt;th&gt;Business&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Price&lt;/td&gt;
&lt;td&gt;$89/month&lt;/td&gt;
&lt;td&gt;$269/month&lt;/td&gt;
&lt;td&gt;On request&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Agents&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Admins · editors/members&lt;/td&gt;
&lt;td&gt;2 · 10&lt;/td&gt;
&lt;td&gt;5 · 50&lt;/td&gt;
&lt;td&gt;Unlimited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Included tokens&lt;/td&gt;
&lt;td&gt;5M&lt;/td&gt;
&lt;td&gt;15M&lt;/td&gt;
&lt;td&gt;15M&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Triggers&lt;/td&gt;
&lt;td&gt;Webhook, email and scheduling&lt;/td&gt;
&lt;td&gt;+ multichannel (WhatsApp, Slack, Teams)&lt;/td&gt;
&lt;td&gt;+ on-premise MCP Bridge, Tunnel, SSO, SLA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sessions&lt;/td&gt;
&lt;td&gt;7 days&lt;/td&gt;
&lt;td&gt;14 days&lt;/td&gt;
&lt;td&gt;30 days&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A quick guide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Core&lt;/strong&gt; if the pilot became one or a few processes, triggered by webhook, email or schedule, with up to 10 people using it. Includes RBAC, credential vault, basic telemetry and onboarding with virtual training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pro&lt;/strong&gt; if you need to put the agent on WhatsApp, Slack or Teams, or want Zihin Watch — weekly summaries and monthly reports on executions, costs and points of attention by email. It also brings a managed token pool on top of your own key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Business&lt;/strong&gt; if the data lives in an ERP or database behind the firewall (Replay, MCP Bridge and Tunnel), if SSO and audit logs are required, or if the contract calls for an SLA and dedicated support. Pricing on request.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're torn between two, upgrade later: an upgrade takes effect immediately, with the prorated difference charged at the switch, self-service plans have no lock-in, and the published add-ons cover gradual growth — a Booster of 1 million tokens for $10 per pack, an extra admin for $15/month and a pack of 10 editors/members for $10/month.&lt;/p&gt;

&lt;h2&gt;
  
  
  What not to do in the first 30 days
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Don't connect three systems at once.&lt;/strong&gt; Each integration requires checking compatibility, authentication and scope. One at a time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't start with writes.&lt;/strong&gt; Irreversible actions come in after the approval process has been tested on reads.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't expect "automatic learning".&lt;/strong&gt; The agent follows configurations and instructions defined by the team; memory keeps context between sessions, but that isn't training and doesn't guarantee identical answers. Review the results.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't treat the trial as a demo.&lt;/strong&gt; Treat it as week 1 of the operation. The same roles, limits and approvals you configure now are the ones that apply in production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;By the end of the month you'll have an agent in a real process, a cost per execution, a written approval policy and a plan chosen by usage — not by promise. If you'd rather do the journey with support, Zihin structures onboarding in four phases: diagnostic, plan, execution and ongoing support. Questions about the trial, keys and roles are in the &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/primeiros-30-dias-com-agentes-de-ia-na-empresa" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>automation</category>
    </item>
    <item>
      <title>The cost of AI agents in production: why almost half go over budget</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Sat, 21 Nov 2026 18:27:16 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/the-cost-of-ai-agents-in-production-why-almost-half-go-over-budget-55ef</link>
      <guid>https://dev.to/oliveiraronan/the-cost-of-ai-agents-in-production-why-almost-half-go-over-budget-55ef</guid>
      <description>&lt;p&gt;The commercial proposal for the AI agent fit the budget. Six months later, the bill no longer does — and nobody can point precisely to where the difference came from. If that scene sounds familiar, you're not alone: it repeats itself in almost half of the companies that bought agents.&lt;/p&gt;

&lt;p&gt;This post organizes what market data says about the cost of AI agents in production, why the overrun happens and what a buyer should demand from the vendor before signing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost of AI agents in production surprises almost half of buyers
&lt;/h2&gt;

&lt;p&gt;According to G2's &lt;em&gt;AI Agents Report&lt;/em&gt;, published in October 2026, &lt;strong&gt;46% of the agent buyers surveyed report operating costs higher than expected&lt;/strong&gt;. It's a survey of buyers, not a measurement of bills — but the size of the number already says something: the surprise isn't the exception.&lt;/p&gt;

&lt;p&gt;And the amount of money at stake is growing. Gartner's forecast published in September 2026 projects &lt;strong&gt;US$576 billion in worldwide spending on AI services&lt;/strong&gt; in 2026 and, in the same forecast, &lt;strong&gt;US$29 billion in spending on AI agents and assistants&lt;/strong&gt;. These are rounded global projections, but the message is clear: the "agents" slice is still small next to the services pie — and most of the cost of putting AI to work isn't in the software itself.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The model bill is the visible part. Integration, support and operations services are where agent budgets usually get lost — and that's exactly the slice that rarely shows up in the initial proposal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why only a fraction of pilots reach production
&lt;/h2&gt;

&lt;p&gt;The cost overrun and the difficulty of leaving the pilot are two symptoms of the same problem. Three studies, with different methodologies, point to it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MIT NANDA, &lt;em&gt;The GenAI Divide&lt;/em&gt; (2025):&lt;/strong&gt; only 5% of the organizations in the study reported successful implementation of generative AI for specific tasks. The report is preliminary and the definitions of success vary by category, but the funnel it describes is narrow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MuleSoft / Salesforce, &lt;em&gt;Connectivity Benchmark&lt;/em&gt; (2025):&lt;/strong&gt; 95% of the organizations surveyed (1,050 IT leaders at companies with more than a thousand employees) face challenges integrating AI into existing processes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deloitte, &lt;em&gt;State of AI in the Enterprise&lt;/em&gt; (2026):&lt;/strong&gt; 21% of respondents say their organization has a mature governance model for AI agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Together, the three tell a coherent story. The model works in the demo. It gets stuck when it touches the real systems — where the data, the rules and the processes live. And whatever gets stuck is expensive.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's behind the overrun
&lt;/h2&gt;

&lt;p&gt;When the cost of an AI agent in production exceeds the plan, it's rarely for a single reason. In most cases, three of them pile up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Integration that wasn't in the budget.&lt;/strong&gt; An agent that only chats is cheap. An agent that reads the order in the ERP, checks stock and replies in the customer's channel requires connecting systems that weren't built for that. Each connection brings authentication, a data contract, error handling and maintenance whenever the source system changes. That bill shows up as project and support hours — not as "tokens".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Support after go-live.&lt;/strong&gt; The pilot had a dedicated team. Production has whatever team is left. Agents need someone tracking failures, adjusting instructions, reviewing integrations and responding when behavior changes. If the proposal didn't plan for who does that and with which tools, the cost appears as people pulled off other fronts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. No per-agent cost visibility.&lt;/strong&gt; This is the item that best explains the &lt;em&gt;surprise&lt;/em&gt;. When model consumption is billed in bulk, with no split per agent, per session or per tool call, there's no way to know which initiative consumes what. An agent stuck in a loop and a useful agent show up on the same line of the bill. Without visibility, there's no cap; without a cap, there's no predictability.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Be wary of any proposal where model consumption is "included" with no breakdown. Hidden markup on tokens and aggregated billing are the two most common ways of turning a variable cost into a quarterly surprise.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  What to demand before signing
&lt;/h2&gt;

&lt;p&gt;None of this is a reason not to buy agents. It's a reason to buy with criteria. Before signing, a buyer should demand — and verify in practice — four things.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost visibility per agent, per session and per call.&lt;/strong&gt; Every execution should record tokens, cost and latency, queryable in the console and through an API. In Zihin, the full session is recorded — phases, tool calls, tokens, costs and latencies — and replay lets you reconstruct any past execution. Details on the &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;security page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A spending cap per agent.&lt;/strong&gt; A dollar limit per agent that stops execution when it's reached — even when the agent runs on your own provider key. It's the difference between knowing you went over and preventing it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Models on your own key, with no markup.&lt;/strong&gt; With BYOK (&lt;em&gt;Bring Your Own Key&lt;/em&gt;), you connect your provider key and Zihin runs the agents with it, with no markup on tokens: you pay the provider for consumption and Zihin for the platform, as separate components. This applies to Anthropic, OpenAI, Google and xAI, and also to an OpenRouter account, with more than 100 models and cost reported by the provider itself. See how this shows up in each plan at &lt;a href="https://www.zihin.ai/en/plans" rel="noopener noreferrer"&gt;/plans&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reports that reach the people who decide.&lt;/strong&gt; Observability only changes behavior if it leaves the console. Zihin Watch sends weekly summaries and monthly reports with executions, AI costs and points of attention to the people responsible for accounts with delivery enabled — the data arrives before the bill, not after.&lt;/p&gt;

&lt;p&gt;There's also a fifth question, less technical: &lt;strong&gt;who supports it afterwards?&lt;/strong&gt; If the answer is "the internal team", confirm that the team exists and has tools. If it doesn't, one option is for the vendor to keep operating and evolving the agents after go-live — at Zihin, that's the Agent Manager Service, described in the &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;The cost of AI agents in production overruns because the proposal was sized for the model, while operations charge for integration, support and lack of visibility. The data from G2, Gartner, MIT NANDA, MuleSoft and Deloitte doesn't say agents aren't worth it — it says most companies still buy without the controls that would make the cost predictable.&lt;/p&gt;

&lt;p&gt;Per-agent visibility, spending caps, your own key with no markup and reports for the people who decide aren't advanced features. They're the minimum for the bill six months from now not to be a surprise. If you're evaluating a purchase or trying to understand a bill that already overran, &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;book a diagnostic&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;G2, &lt;em&gt;2026 AI Agents Insight Report&lt;/em&gt; (Oct 2026) — &lt;a href="https://sell.g2.com/g2-2026-ai-agents-insight-report" rel="noopener noreferrer"&gt;report&lt;/a&gt;. Reflects buyer responses.&lt;/li&gt;
&lt;li&gt;Gartner, &lt;em&gt;Forecasts Worldwide AI Spending to Grow 49.5% in 2026&lt;/em&gt; (Sep 2026) — &lt;a href="https://www.gartner.com/en/newsroom/press-releases/2026-09-16-gartner-forecasts-worldwide-ai-spending-to-grow-49-point-5-percent-in-2026" rel="noopener noreferrer"&gt;press release&lt;/a&gt;. Rounded global projections.&lt;/li&gt;
&lt;li&gt;MIT NANDA, &lt;em&gt;The GenAI Divide: State of AI in Business 2025&lt;/em&gt; — &lt;a href="https://www.spinnerai.com/mit_ai_report_2025.pdf#page=6" rel="noopener noreferrer"&gt;PDF, copy hosted by a third party&lt;/a&gt;. Preliminary study; definitions of success vary by category.&lt;/li&gt;
&lt;li&gt;MuleSoft / Salesforce, &lt;em&gt;Connectivity Benchmark 2025&lt;/em&gt; — &lt;a href="https://www.salesforce.com/blog/mulesoft-connectivity-benchmark-2025/" rel="noopener noreferrer"&gt;publication&lt;/a&gt;. 1,050 IT leaders at companies with 1,000+ employees.&lt;/li&gt;
&lt;li&gt;Deloitte, &lt;em&gt;State of AI in the Enterprise 2026&lt;/em&gt; — &lt;a href="https://www.deloitte.com/us/en/about/press-room/state-of-ai-report-2026.html" rel="noopener noreferrer"&gt;press release&lt;/a&gt;. 3,235 leaders in 24 countries; maturity as self-reported by respondents.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/por-que-agentes-de-ia-estouram-o-custo-operacional" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>finops</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Human approval for AI agents: three brakes for production</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Thu, 19 Nov 2026 20:30:54 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/human-approval-for-ai-agents-three-brakes-for-production-348g</link>
      <guid>https://dev.to/oliveiraronan/human-approval-for-ai-agents-three-brakes-for-production-348g</guid>
      <description>&lt;p&gt;The pilot won the team over. Now the agent needs to issue an invoice, release a refund or change a customer record — and the question that stalls the meeting is a different one: &lt;strong&gt;who answers for it if it gets it wrong?&lt;/strong&gt; Until that answer exists, the agent stays in the demo.&lt;/p&gt;

&lt;p&gt;For an IT or operations director, "autonomous" isn't a compliment. It's a risk to be sized. This post shows the three brakes that turn an acceptable agent into an approvable one: human approval before sensitive actions, a spending cap per agent, and contextual policies. And, at the end, a distinction that often gets blurred in due diligence: evidence is not certification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Human approval before sensitive actions
&lt;/h2&gt;

&lt;p&gt;Not every agent action needs a human. Looking up an order, summarizing a history or answering a product question are read operations — cheap to get wrong and easy to fix. The problem lies in actions that change the state of something in the world: payments, cancellations, contract changes, sending communication on the company's behalf.&lt;/p&gt;

&lt;p&gt;That's where human approval comes in (HITL, &lt;em&gt;human in the loop&lt;/em&gt;). In Zihin, you define the &lt;strong&gt;scope of actions that require approval&lt;/strong&gt;. When the agent reaches one of them, it stops and asks. The request shows up as a card in &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;Zihin Chat&lt;/a&gt;, with the context of the action and two buttons: approve or reject. Only after the decision does the process continue — or not.&lt;/p&gt;

&lt;p&gt;Two details make a difference in practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One member can approve what another triggered.&lt;/strong&gt; The governance rule allows the person who triggered the agent to be different from the one who authorizes the action. It's &lt;em&gt;accountability&lt;/em&gt; between people, not just between a person and an agent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval applies outside the console too.&lt;/strong&gt; Whoever operates the agents through an MCP-compatible client is still subject to the same policies: the action requires approval when the configuration says so.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Start from the opposite of the obvious. Instead of asking "which actions can the agent take on its own?", ask "which actions would I never accept explaining to an auditor without a human name next to them?". Those go into the approval scope. The rest can run.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  A spending cap per agent
&lt;/h2&gt;

&lt;p&gt;The director's second fear is less dramatic and more frequent: the bill. An agent stuck in a loop, a misconfigured integration or simply higher volume than expected — and model consumption gets out of control in the middle of the night.&lt;/p&gt;

&lt;p&gt;The brake here is the &lt;strong&gt;per-agent budget&lt;/strong&gt;: a dollar limit set for each agent. When it hits the cap, the agent stops on its own. This applies even when it runs on your own provider key (BYOK) — the limit belongs to the platform, not the provider, so it doesn't depend on alerts that arrive after the damage.&lt;/p&gt;

&lt;p&gt;What this changes in the conversation with the board:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Cost stops being a global estimate and becomes a &lt;strong&gt;cap per initiative&lt;/strong&gt;. The collections agent has one budget; the support agent, another.&lt;/li&gt;
&lt;li&gt;Predictability doesn't require vigilance. Nobody has to watch a dashboard for the brake to work.&lt;/li&gt;
&lt;li&gt;Consumption can be checked in the console, and &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;Zihin Watch&lt;/a&gt; sends weekly summaries and monthly reports with executions, AI costs and points of attention to the people responsible.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Contextual policies: what the agent never does
&lt;/h2&gt;

&lt;p&gt;Approval handles specific actions. Budget handles money. The third brake handles everything that should be impossible, no matter who asked: &lt;strong&gt;contextual security policies&lt;/strong&gt; (CSP).&lt;/p&gt;

&lt;p&gt;A contextual policy is a rule enforced on every execution, before the tool runs. Five types cover most cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Schedule&lt;/strong&gt; — outside the defined window (business hours, weekdays, time zone), the agent doesn't run.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Behavior&lt;/strong&gt; — tone, language, what it must and must not do, including blocking specific tools and limiting iterations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data&lt;/strong&gt; — restricting access to sensitive fields and entities.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Origin&lt;/strong&gt; — where the agent can be triggered from (allowed IPs and domains).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom&lt;/strong&gt; — your own rules, in JSON, for what is specific to your operation.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Policies follow &lt;strong&gt;scope inheritance&lt;/strong&gt;: you define them once at the company level and refine them per team, agent or user. The most specific rule wins. An LGPD (Brazil's privacy law) restriction written once applies to every agent, with no need to paste it into each configuration.&lt;/p&gt;

&lt;p&gt;These policies add to access control: four-level RBAC (owner, admin, editor, member), enforced in the UI and the API, defines what people can configure. CSPs define what the agent can do at execution time. Details of both layers are on the &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;security page&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What gets recorded — and why it matters
&lt;/h2&gt;

&lt;p&gt;A brake without a record is a promise. The three controls above only serve the director if they can prove, months later, that they worked.&lt;/p&gt;

&lt;p&gt;Every agent session is recorded in full: phases, tool calls, tokens, costs and latencies. All of it can be queried in the console and via the telemetry API. &lt;strong&gt;Session replay&lt;/strong&gt; lets you reconstruct what happened in a past execution, call by call. Approval decisions are recorded before the process continues. Integration credentials live in a vault encrypted with AES-256-GCM, never in configuration files.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; This is &lt;strong&gt;evidence&lt;/strong&gt;, not &lt;strong&gt;certification&lt;/strong&gt;. Zihin does not hold SOC 2 or ISO 27001 certification. What it provides are verifiable technical controls, an audit trail and a DPA covering the Controller and Processor roles under LGPD and GDPR. Controls and a DPA are not equivalent to a certification — and a vendor that treats the two as synonyms deserves suspicion.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The distinction matters because the auditor's question is rarely "do you have the seal?". It's "show me what the agent did on the 14th, at 2:17 a.m., and who authorized it". Evidence answers that. A certification attests to a process, but it doesn't reconstruct a session.&lt;/p&gt;

&lt;p&gt;According to Deloitte, only 21% of respondents in its 2026 survey say their organization has a mature governance model for AI agents. The number isn't about technology — it's about the absence of the brakes described here, with a record. Those who have them are in the minority.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;An agent is acceptable to a director when they can answer three questions without hesitating: who approved the sensitive action, how much the agent can spend, and what it could never have done. Human approval, spending caps and contextual policies answer each of them — and leave a record.&lt;/p&gt;

&lt;p&gt;If your operation has agents stuck in the demo for lack of those answers, it's worth mapping which actions require approval, which cap fits each initiative, and which rules already exist on paper without being enforced. See the &lt;a href="https://www.zihin.ai/en/plans" rel="noopener noreferrer"&gt;plans&lt;/a&gt;, check the &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; or &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;book a diagnostic&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Deloitte, &lt;em&gt;State of AI in the Enterprise 2026&lt;/em&gt; — &lt;a href="https://www.deloitte.com/us/en/about/press-room/state-of-ai-report-2026.html" rel="noopener noreferrer"&gt;press release&lt;/a&gt;. Survey of 3,235 business and IT leaders in 24 countries; maturity as self-reported by respondents.&lt;/li&gt;
&lt;li&gt;Zihin.ai, &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;Security&lt;/a&gt; and &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; — controls, RBAC, contextual policies and position on certifications.&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/aprovacao-humana-e-orcamento-por-agente" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>governance</category>
      <category>security</category>
      <category>llm</category>
    </item>
    <item>
      <title>AI agents in agribusiness: procurement and quoting connected to the ERP</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Wed, 18 Nov 2026 05:33:35 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/ai-agents-in-agribusiness-procurement-and-quoting-connected-to-the-erp-3031</link>
      <guid>https://dev.to/oliveiraronan/ai-agents-in-agribusiness-procurement-and-quoting-connected-to-the-erp-3031</guid>
      <description>&lt;p&gt;Procurement in agribusiness is short-window work. Inputs have to arrive before planting, freight shifts with the harvest, and the quote that was valid on Monday is gone by Thursday. Buyers spend the day between the ERP, the spreadsheet and the supplier's WhatsApp — and the bottleneck is rarely deciding; it's gathering the information to decide.&lt;/p&gt;

&lt;p&gt;This post describes a published Zihin case in that setting and carefully separates what is a fact of the case from what is the solution pattern we recommend for procurement and quoting.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case: Grupo Conceito and eBarn
&lt;/h2&gt;

&lt;p&gt;In June 2026, Zihin published the numbers of a procurement and quoting operation in agribusiness. The agents work connected to the eBarn ERP and to TOTVS Protheus, used by Grupo Conceito and eBarn. The connection to Protheus goes through the MCP Bridge, in production — the moment when, in our timeline, the "legacy ERP became an AI tool".&lt;/p&gt;

&lt;p&gt;What the case records:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Process:&lt;/strong&gt; procurement and quoting.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Systems:&lt;/strong&gt; TOTVS Protheus and the eBarn ERP.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Connection:&lt;/strong&gt; MCP Bridge, in production.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We don't publish volume, success rate, financial savings or time-reduction figures for this case. Numbers only come back with a measurement period, a success definition, a source and the customer's authorization.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Everything we state about the case is in this section: industry, supported processes (procurement and quoting), connected systems (eBarn and Protheus via MCP Bridge) and the fact that it runs in production. The following sections describe the typical architecture pattern for this kind of operation — not the customer's internal details.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why procurement and quoting are AI's entry point in agribusiness
&lt;/h2&gt;

&lt;p&gt;Not every process is a good candidate for an agent. Procurement and quoting have three characteristics that help:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Repetitive questions about data that already exists.&lt;/strong&gt; "What's the balance of this input?", "how much did we pay on the last purchase?", "which orders are open with this supplier?". The answer is in the ERP; the cost is fetching it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decisions with clear rules, but frequent exceptions.&lt;/strong&gt; There are approval limits, approved suppliers, reference prices. An agent can prepare the comparison; the final decision stays with a person.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Volume that grows during the harvest.&lt;/strong&gt; The team doesn't double when demand doubles. An agent absorbs the mechanical part of the peak.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The obstacle is usually the same one the market reports: integration with the systems. A pilot chats well in the demo and gets stuck when it touches the real ERP. That's exactly where the case above stands out — the agents operate connected to the operation's systems, not to a data sample.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the typical architecture for procurement agents looks like
&lt;/h2&gt;

&lt;p&gt;What follows is the pattern we apply to procurement operations tied to ERPs like Protheus. Use it as a design reference, not as a description of Grupo Conceito's or eBarn's flow.&lt;/p&gt;

&lt;h3&gt;
  
  
  Reading the ERP with no credential in the agent
&lt;/h3&gt;

&lt;p&gt;The agent doesn't get access to the ERP database. &lt;a href="https://www.zihin.ai/en/integrations" rel="noopener noreferrer"&gt;Zihin Replay&lt;/a&gt; keeps a read-only copy of the agreed tables in a Postgres database inside the customer's network; on top of that copy, the MCP Bridge publishes business queries with defined contracts — stock by item, open orders, purchase history by supplier. The connection between the customer's network and the platform goes through Zihin Tunnel: outbound only, over port 443, with no inbound port and no VPN. Credentials stay in the customer's network.&lt;/p&gt;

&lt;h3&gt;
  
  
  Quoting as a process, not a loose message
&lt;/h3&gt;

&lt;p&gt;A typical quote involves building the demand from the purchase request, checking price history, organizing the proposals received and presenting the comparison. In this pattern, the agent does the preparation work and delivers a comparable view — the buyer decides.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; The gain isn't in the agent "choosing the supplier". It's in the buyer opening the quote with history, balance and open orders already on the same screen, instead of assembling that across four systems. Automate the preparation; preserve the decision.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Human approval where money is involved
&lt;/h3&gt;

&lt;p&gt;Reading is just reading. Any action with an effect — approving a quote, creating an order, changing a supplier — goes through a human decision step configured in the process. The deployment defines which actions require approval and who approves; the person reviews the context and records the decision before the process continues. With &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;Zihin Chat&lt;/a&gt;, that approval happens right in the conversation, and one team member can approve what another triggered.&lt;/p&gt;

&lt;h3&gt;
  
  
  Policies the agent can't ignore
&lt;/h3&gt;

&lt;p&gt;Contextual policies (CSP) are enforced on every execution: the hours the agent operates, fields it can't expose, the origin it can be triggered from. They add to the platform's RBAC and the credential vault described at &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;/security&lt;/a&gt;. For procurement, the data policy tends to be the most relevant — negotiated prices and commercial terms are information not every channel should see.&lt;/p&gt;

&lt;h3&gt;
  
  
  Tracking the operation
&lt;/h3&gt;

&lt;p&gt;Every execution is recorded, with its tool calls and policy decisions. That count, not an estimate, is what backs any metric the operation decides to publish. Zihin Watch monitors the operation and produces reports according to its configuration.&lt;/p&gt;

&lt;h3&gt;
  
  
  What the operations director should ask before starting
&lt;/h3&gt;

&lt;p&gt;If your scenario is similar — consolidated ERP, procurement team under harvest pressure, scattered data — take four questions into the evaluation:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Which queries does the buyer run against the ERP every day?&lt;/strong&gt; They become the first MCP Bridge contracts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which actions require approval, and from whom?&lt;/strong&gt; That defines the process and the approval limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which data can't leave a given channel?&lt;/strong&gt; That defines the data policies.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Which ERP, and which access path?&lt;/strong&gt; The Bridge is documented in production for Protheus; SAP and Oracle EBS are planned. The availability and deployment scope of Replay, Bridge and Tunnel depend on the infrastructure and the data agreement — check the &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; and the sales team.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;AI agents in agribusiness work when they reach the data the operation already has, under rules the company already follows. The Grupo Conceito and eBarn case shows this in production — Protheus and eBarn connected via MCP Bridge — and the architecture pattern described here is the path to repeat the design: reads through a read-only copy, quoting as a process, human approval where there's an effect, policies enforced on every execution.&lt;/p&gt;

&lt;p&gt;Want to see what this looks like with your ERP and your procurement flow? &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Zihin.ai, home page — published agribusiness procurement and quoting case (June 2026; measurement period not disclosed): &lt;a href="https://www.zihin.ai/en" rel="noopener noreferrer"&gt;/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, About — timeline, MCP Bridge in production with TOTVS Protheus at Grupo Conceito and eBarn: &lt;a href="https://www.zihin.ai/en/about" rel="noopener noreferrer"&gt;/about&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, Integrations — Replay, MCP Bridge and Tunnel: &lt;a href="https://www.zihin.ai/en/integrations" rel="noopener noreferrer"&gt;/integrations&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, Security — contextual policies, RBAC and credential vault: &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;/security&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/agentes-ia-compras-cotacao-agronegocio-caso" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>erp</category>
      <category>mcp</category>
      <category>casestudy</category>
    </item>
    <item>
      <title>Connecting existing systems to AI agents with MCP: 3 strategies we run in production</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Thu, 12 Nov 2026 10:54:32 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/connecting-existing-systems-to-ai-agents-with-mcp-3-strategies-we-run-in-production-20k8</link>
      <guid>https://dev.to/oliveiraronan/connecting-existing-systems-to-ai-agents-with-mcp-3-strategies-we-run-in-production-20k8</guid>
      <description>&lt;p&gt;&lt;em&gt;By **Isabele Santos&lt;/em&gt;&lt;em&gt;, co-written with **Fernando Junior&lt;/em&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Today we use three possible paths, which let us make good use of what MCP offers. MCP (Model Context Protocol) is an open protocol created by Anthropic and now adopted by the main players in the market. In practice, that has made it the "USB-C" of enterprise AI: instead of building a handcrafted connector for every model–system pair, you build an MCP server once and any compatible client can connect to it.&lt;/p&gt;

&lt;p&gt;The protocol exposes three primitives: &lt;strong&gt;Resources&lt;/strong&gt; (data the model can read for context), &lt;strong&gt;Prompts&lt;/strong&gt; (reusable templates for standardized flows) and &lt;strong&gt;Tools&lt;/strong&gt; (functions the model can invoke to take real actions — fetching a record, firing an event, changing a status).&lt;/p&gt;

&lt;p&gt;We've implemented three strategies in production over the last year, and that has been cutting costs and headaches. Which raises the question: what does it cost, today, &lt;em&gt;not&lt;/em&gt; to implement this protocol? The MIT study (Project NANDA) showed that about 95% of enterprise generative AI pilots deliver no measurable P&amp;amp;L impact — pointing to enterprise integration failures as the core problem, not model quality. That's against an estimated US$30–40 billion invested in GenAI, with 95% of organizations getting zero return. In most cases, the bottleneck is the difficulty of maintaining many separate integrations, which cost time and money besides being inefficient. It becomes clear that one of today's bottlenecks in enterprise AI is integrating models with systems, not the quality of the models themselves. (&lt;a href="https://fortune.com/2025/08/18/mit-report-95-percent-generative-ai-pilots-at-companies-failing-cfo/" rel="noopener noreferrer"&gt;Source: "The GenAI Divide: State of AI in Business 2025", MIT Project NANDA, via Fortune&lt;/a&gt;)&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The study attributes the failure to the "learning gap" and to integration with real workflows.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So how did our team choose to get around this problem? Precisely by applying three strategies, which vary in isolation and effort, presented by &lt;strong&gt;Fernando Junior, our Development Lead&lt;/strong&gt;, based on what we run in production.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;— Isabele Santos&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Strategy 1 — Proxy + Swagger
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Data flow:&lt;/strong&gt; LLM → MCP Server (acting as a proxy) → existing HTTP REST API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automation:&lt;/strong&gt; the server reads Swagger/OpenAPI files natively and generates the LLM "tools" 100% automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zero cost on the legacy side:&lt;/strong&gt; no change needed in the original backend code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Ideal scenario:&lt;/strong&gt; perfect for fast prototyping, integrating external APIs or plugging in legacy systems where code changes are complex.&lt;/p&gt;

&lt;p&gt;The limit of this approach: the quality of the generated tools is the quality of your OpenAPI documentation. Poorly described APIs produce tools the model uses poorly. It's the right strategy to get started in days — not to be a product's final destination.&lt;/p&gt;

&lt;h2&gt;
  
  
  Strategy 2 — Simple Project (Read-Only)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Lean micro-server:&lt;/strong&gt; we build simplified projects in which the MCP Server skips the deep, complex layers of a typical web application. It focuses exclusively on exposing Tools with strict, predefined SQL scripts, eliminating the complexity of HTTP routing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Safe execution (read):&lt;/strong&gt; every instruction made available to the AI is guaranteed to be limited to read-only operations on the database. This approach creates a fast, efficient foundation for reporting, context validation and conversational BI with no structural risk.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;— Fernando Junior&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;This is the structural answer to the question every manager asks: "what if the AI deletes my database?". Here the guarantee isn't an instruction in the prompt asking the AI to behave — it's architecture. The model only has access to predefined, read-only queries, and nothing else exists for it. Security by construction, not by trust.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;— Isabele Santos&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Strategy 3 — Integrated via Clean Architecture
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Multiple entry points:&lt;/strong&gt; our modern architecture lets the same business rule be triggered both through a traditional HTTP Controller and through the new MCP channel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP adapter:&lt;/strong&gt; the MCP Tool Handler is written as just a new adapter in the interface layer of our Clean Architecture, encapsulating the protocol's complexity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Unchanged rules:&lt;/strong&gt; the motto is "New door, same house". Our Use Cases and Core Domain stay completely unchanged, safe and reused with no duplicated logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP doesn't break what already exists:&lt;/strong&gt; MCP acts as just one more side entrance, running in parallel with the existing controllers. We keep the Separation of Concerns principle intact, isolating human clients from AI agents. Clean Architecture lets us guarantee that the business rule (Use Cases) can't tell the difference between a conventional HTTP call and an execution generated by the LLM.&lt;/p&gt;

&lt;h2&gt;
  
  
  After implementation: what we learned running MCP in production
&lt;/h2&gt;

&lt;p&gt;Putting an MCP server online is the easy part. What sustains operations comes afterwards — and three fronts deserve attention because they're exactly what separates those who have operated it from those who have only read the docs:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Security starts at the connection, not in the prompt.&lt;/strong&gt; In our implementation, strict client identification happens when the connection to the server is initialized, via an API Key sent in an HTTP header. And authorization is dynamic: the data exposed — and even which Tools are listed — is filtered according to the permissions of the connected agent. A BI agent doesn't see the same tools as an operations agent; it doesn't even know they exist. The natural roadmap for this layer is full adoption of OAuth 2.0 and JWTs, the market standard.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Validate the server in isolation before plugging in the LLM.&lt;/strong&gt; The best workflow practice we've adopted: test Tools and Resources locally with the &lt;strong&gt;MCP Inspector&lt;/strong&gt; (the official debugging UI, which starts with a single npm command) before attaching the server to any LLM client. The Inspector lets you run each Tool with a click, fill in the input payload, analyze the output array and — crucially — inspect the raw JSON-RPC traffic in the History tab. Debugging the protocol together with model behavior means adding up two uncertainties; separating them saves hours.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Errors are part of the contract.&lt;/strong&gt; MCP's return format includes the &lt;code&gt;isError: true&lt;/code&gt; flag for recoverable failures — and that changes the game: the model interprets the failure and can fix its own arguments and try again, with no human intervention. Designing good error messages stopped being cosmetic; it became part of the interface with the agent.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;— Fernando Junior&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;The most valuable side effect of all this is portability. An MCP server built today works tomorrow in any ecosystem that adopts the protocol, from Claude Desktop to IDEs like Cursor and VS Code, and even our own applications. Integration investment is no longer thrown away every time you switch model vendors.&lt;/p&gt;

&lt;p&gt;The MIT diagnosis doesn't say generative AI failed. It says &lt;em&gt;integration&lt;/em&gt; failed. And integration is an engineering problem with a known solution: a single standard instead of dozens of handcrafted connectors. The three strategies we've presented aren't theory; they're the three steps we use in production, from a prototype in days (Proxy + Swagger) to safe data access (Read-Only) to the long-term product (Clean Architecture). The decision rule is simple: the more mature and critical the system, the more structural the integration should be.&lt;/p&gt;

&lt;p&gt;Whoever builds this foundation now isn't betting on a vendor — they're building the door through which any AI agent will enter their operation. That's exactly the foundation we brought into &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;Zihin&lt;/a&gt;: the platform speaks MCP from day one, with a remote server ready to connect your systems to agents without a handcrafted integration project — with &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;governance and security&lt;/a&gt; from the connection onward. If your team is stuck in the pilot phase, the problem probably isn't the model, it's the bridge. &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt; and see in practice how to plug your data and actions into governed AI agents.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;— Isabele Santos&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Q&amp;amp;A
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; &lt;strong&gt;Where do I start implementing MCP in my company?&lt;/strong&gt;&lt;br&gt;
With the lowest-risk strategy: an MCP proxy over an existing, well-documented API (Swagger/OpenAPI), or a read-only micro-server over a reporting database. Both deliver value in days, without touching legacy code, and serve as a learning step before structural integrations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;strong&gt;Does MCP only work with Claude?&lt;/strong&gt;&lt;br&gt;
No. MCP was born at Anthropic, but it's an open protocol adopted by the main AI ecosystems in the market. An MCP server built today works with any compatible client — models, IDEs and your own applications.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; &lt;strong&gt;Is it safe to give an AI access to the database?&lt;/strong&gt;&lt;br&gt;
It depends on how the access is built. With a read-only MCP server exposing only predefined queries, the AI structurally can't change anything — the limitation lives in the architecture, not in behavioral instructions. For writes, the path is to expose specific Use Cases with per-agent authorization, never direct database access.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; &lt;strong&gt;Do I need to rewrite my systems to use MCP?&lt;/strong&gt;&lt;br&gt;
No. The three strategies in this article exist precisely to avoid that: a proxy over existing APIs (zero change), a parallel micro-server (zero change) or a new adapter in the interface layer (minimal, isolated change). The business rule stays intact.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://fortune.com/2025/08/18/mit-report-95-percent-generative-ai-pilots-at-companies-failing-cfo/" rel="noopener noreferrer"&gt;The GenAI Divide: State of AI in Business 2025 — MIT Project NANDA (Fortune coverage)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/estrategias-conectar-sistemas-agentes-ia-mcp" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>architecture</category>
      <category>security</category>
    </item>
    <item>
      <title>From policy PDF to runtime: enforcing AI governance on every agent call</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Mon, 09 Nov 2026 21:04:18 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/from-policy-pdf-to-runtime-enforcing-ai-governance-on-every-agent-call-31dl</link>
      <guid>https://dev.to/oliveiraronan/from-policy-pdf-to-runtime-enforcing-ai-governance-on-every-agent-call-31dl</guid>
      <description>&lt;p&gt;There's a gap between &lt;em&gt;having&lt;/em&gt; an AI usage policy and &lt;em&gt;enforcing&lt;/em&gt; it. The document says "the support agent doesn't access financial data". But who guarantees that on call #4,385, at 2 a.m., when nobody is watching?&lt;/p&gt;

&lt;p&gt;Governance that lives in a PDF is intent. Governance that lives in the &lt;strong&gt;runtime&lt;/strong&gt; is operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a contextual policy (CSP) is
&lt;/h2&gt;

&lt;p&gt;A Contextual Security Policy ties a permission decision to the &lt;em&gt;context&lt;/em&gt; of the execution, not just to the identity of the caller. Five axes cover most real-world needs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Origin&lt;/strong&gt; — which channel or application the request came from.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schedule&lt;/strong&gt; — time windows in which certain actions are allowed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data&lt;/strong&gt; — which fields the agent can read or write.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Behavior&lt;/strong&gt; — limits on volume, frequency and escalation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom&lt;/strong&gt; — rules specific to your domain.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; The policy isn't a front-end filter or a reminder in the prompt. It's a check executed in the runtime, before the tool runs — the agent simply can't cross the line.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Scope inheritance: tenant → agent → user
&lt;/h2&gt;

&lt;p&gt;What makes this workable at scale is &lt;strong&gt;inheritance&lt;/strong&gt;. You define the most restrictive policy at the top (tenant), and each level below can tighten — never loosen — what it inherited:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tenant   → the organization's compliance baseline
  agent  → what this agent can do
   user  → what this user can trigger on the agent
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So a data-protection rule (LGPD, Brazil's privacy law) defined once on the tenant applies to every agent and user, with no need to paste it into each configuration. Less surface for human error — and human error is what causes most &lt;em&gt;over-access&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Without evidence, there was no governance
&lt;/h2&gt;

&lt;p&gt;Enforcing the rule is half the job. The other half is &lt;strong&gt;proving&lt;/strong&gt; it was enforced. Every policy decision is recorded and can be reconstructed in the session replay: who asked, what the policy decided, and why.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; An audit shouldn't be a weeks-long project. With full replay, answering "has the agent ever accessed this data?" is a query, not an excavation.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Governing is the second pillar — the inseparable partner of &lt;strong&gt;Reach&lt;/strong&gt;. It's no use for the agent to reach everything if it doesn't respect limits wherever it lands. Put the two together and AI stops being a compliance risk and becomes an auditable asset. &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Talk to us&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/politicas-contextuais-runtime" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>security</category>
      <category>governance</category>
      <category>compliance</category>
    </item>
    <item>
      <title>MCP Bridge: turning legacy systems into tools an AI agent can use</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Fri, 06 Nov 2026 19:50:49 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/mcp-bridge-turning-legacy-systems-into-tools-an-ai-agent-can-use-3op</link>
      <guid>https://dev.to/oliveiraronan/mcp-bridge-turning-legacy-systems-into-tools-an-ai-agent-can-use-3op</guid>
      <description>&lt;p&gt;The question that separates an AI demo from an agent in production is simple: &lt;strong&gt;does it reach the systems where the work actually happens?&lt;/strong&gt; An assistant that only chats is a toy. An agent that reads the order in the ERP, checks stock in the database and replies in the customer's channel is operations.&lt;/p&gt;

&lt;p&gt;The problem is that those systems were almost never built for an AI to talk to them. That's where the &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; comes in — and the way Zihin puts it into production with the &lt;strong&gt;MCP Bridge&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP solves
&lt;/h2&gt;

&lt;p&gt;MCP is an open standard for exposing &lt;em&gt;tools&lt;/em&gt; to a language model in a structured way: each capability becomes a function with a name, a description and typed parameters. The agent doesn't "guess" how to use your system — it gets a contract.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Think of MCP as the "USB-C" of agent tools: a standard connector between the model and any system, instead of a custom integration for every case.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  From legacy to MCP, without a rewrite
&lt;/h2&gt;

&lt;p&gt;The declarative MCP Bridge maps existing resources to MCP tools without requiring any change to the source system. In practice, three paths cover most cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;via API&lt;/strong&gt; — a REST/GraphQL endpoint becomes a tool with a schema derived from its contract.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;via Database&lt;/strong&gt; — parameterized queries become safe tools, with an allowlist of operations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;via native MCP&lt;/strong&gt; — MCP servers you already expose plug straight into the runtime.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mapping is declarative. You describe &lt;em&gt;what&lt;/em&gt; to expose; the Bridge takes care of &lt;em&gt;how&lt;/em&gt; to present it to the agent:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;tool&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;consultar_pedido&lt;/span&gt;
&lt;span class="na"&gt;source&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;erp.orders&lt;/span&gt;
&lt;span class="na"&gt;input&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pedido_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;string&lt;/span&gt;
&lt;span class="na"&gt;returns&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The part that usually gets stuck: on-premise
&lt;/h2&gt;

&lt;p&gt;Much of the critical data isn't in the public cloud — it's behind the firewall. The &lt;strong&gt;Tunnel&lt;/strong&gt; establishes outbound connectivity from your environment to the runtime, without opening inbound ports or setting up a VPN. The agent reaches the on-premise legacy system; your network stays closed to the world.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Warning:&lt;/strong&gt; Reach without control is risk. Every tool exposed through the Bridge follows the policies of its scope (tenant → agent → user) — the topic of the next post in this series.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Connecting is the first pillar: &lt;strong&gt;Reach&lt;/strong&gt;. It's what takes AI off the slide and puts it where the work is actually done. Want to see it in your own setup? &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/mcp-bridge-conectividade" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>integration</category>
      <category>onpremise</category>
    </item>
    <item>
      <title>Why we stopped letting AI agents connect directly to the database</title>
      <dc:creator>Ronan Oliveira</dc:creator>
      <pubDate>Thu, 05 Nov 2026 22:58:11 +0000</pubDate>
      <link>https://dev.to/oliveiraronan/why-we-stopped-letting-ai-agents-connect-directly-to-the-database-4279</link>
      <guid>https://dev.to/oliveiraronan/why-we-stopped-letting-ai-agents-connect-directly-to-the-database-4279</guid>
      <description>&lt;p&gt;The request usually sounds like this: "the agent needs to query the ERP". And the first reaction from whoever runs IT is the right one: nobody wants to hand a production database username and password to software that decides on its own which query to run. The risk isn't theoretical — it's a malformed query at peak time, a sensitive field exposed in a reply, a credential leaking into a log.&lt;/p&gt;

&lt;p&gt;This guide is for the IT director who needs to say "yes" to the agent without saying "yes" to direct access. It explains why Zihin removed direct database connections and which path data takes instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we took direct database access away from the agent
&lt;/h2&gt;

&lt;p&gt;On October 4, 2026, version 2.2.2 of Zihin's MCP package shipped alongside the removal of the direct database connection tools — the &lt;code&gt;db_config&lt;/code&gt; type and the &lt;code&gt;db_event&lt;/code&gt; trigger. Since then, data integrations go through API tools or MCP servers, such as the MCP Bridge. The change is recorded in the &lt;a href="https://www.zihin.ai/en/changelog" rel="noopener noreferrer"&gt;product changelog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The decision starts from a simple observation: giving an agent a connection string to the production database creates three problems that no prompt layer can solve.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The credential leaves your network.&lt;/strong&gt; Even in an encrypted vault, it exists outside the perimeter and has to be protected by one more party.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The agent decides the query.&lt;/strong&gt; A generic SQL tool trusts the model to write the right query, on the right table, with the right filter. In production, that's a bet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Load on the system of record.&lt;/strong&gt; Exploratory queries compete with the ERP for the same database that closes payroll and issues invoices.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Removing a feature is an expensive decision for a product. We did it because direct database access was the point where the customer's security architecture stopped applying. The path that replaces it isn't more limited — it's more predictable.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  How an AI agent accesses ERP data safely: three pieces
&lt;/h2&gt;

&lt;p&gt;The current design separates who holds the data, who queries it and who carries the answer. There are three components, each with a clear job.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Zihin Replay: a read-only copy, inside your network
&lt;/h3&gt;

&lt;p&gt;Replay keeps a read-only copy of the agreed tables in a Postgres database inside your network. You decide which tables go in. Oracle and SQL Server are copied via change data capture; systems like Sienge, via API. The production database never receives a query from the agent — ever.&lt;/p&gt;

&lt;p&gt;The practical result: the ERP keeps serving operations, and the copy serves the AI's questions. If a query is heavy, it's the replica that feels it, not billing.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. MCP Bridge: contract-based queries, not free-form SQL
&lt;/h3&gt;

&lt;p&gt;On top of that copy, the MCP Bridge publishes read-only queries with contracts specific to the business domain: "open orders by supplier", "stock balance by item", "bills coming due". The agent gets a list of tools with a defined name, description and parameters. It chooses which one to call and with which arguments — it doesn't write the query.&lt;/p&gt;

&lt;p&gt;That changes the security conversation. Instead of asking "what can the agent do in the database?", the answer is the list of contracts you approved. Nothing outside it exists for the agent. For Protheus, the Bridge is documented in production; SAP and Oracle EBS are planned. See the details at &lt;a href="https://www.zihin.ai/en/integrations" rel="noopener noreferrer"&gt;/integrations&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Zihin Tunnel: outbound-only connection, over port 443
&lt;/h3&gt;

&lt;p&gt;That leaves transport. The Tunnel opens an outbound connection from your network to the platform over port 443 — the same one your browser uses. No inbound ports, no VPN, no firewall changes. Credentials for internal systems are resolved inside your network and never leave it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERP / production database
   └─ Replay  → read-only copy (Postgres, inside your network)
        └─ MCP Bridge → contract-based queries, read-only
             └─ Tunnel → outbound connection, 443, no open port
                  └─ the agent gets the answer, never the credential
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What the IT director gets from this design
&lt;/h2&gt;

&lt;p&gt;Whoever evaluates the architecture usually asks four questions. In this model, the answers are short.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Where does the database credential live?&lt;/strong&gt; In your network. The agent never receives it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Can the agent write to the ERP through this path?&lt;/strong&gt; No. Replay and MCP Bridge are read-only. Writes are never automatic in any integration: they require a dedicated tool, with permissions and policies, and can require human approval before running.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do I need to open a port on the firewall?&lt;/strong&gt; No. The connection is outbound, over 443.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;How do I know what was queried?&lt;/strong&gt; Every execution is recorded, with its tool calls and policy decisions, and can be reviewed by the team. &lt;a href="https://www.zihin.ai/en/product" rel="noopener noreferrer"&gt;Zihin Watch&lt;/a&gt; monitors operations and produces reports according to its configuration.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Tip:&lt;/strong&gt; Start with an inventory of questions, not an inventory of tables. List the five queries your team runs against the ERP every day and turn each one into a Bridge contract. That's less surface than replicating the whole database — and it already covers most real usage.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Governance over what gets read
&lt;/h3&gt;

&lt;p&gt;Read-only solves data integrity, but on its own it doesn't solve confidentiality. That's where contextual security policies (CSP) come in: rules enforced on every execution, not suggested to the model. A data policy restricts sensitive fields and entities; a schedule policy defines when the agent can operate; an origin policy limits where it can be triggered from. They inherit from the broadest scope to the most specific — define them once for the company and refine them per team, agent or user.&lt;/p&gt;

&lt;p&gt;Combined with the platform's RBAC (what people and API keys can do) and the credential vault encrypted with AES-256-GCM, the whole set is described in plain language at &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;/security&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A note of honesty: the availability and deployment scope of Replay, MCP Bridge and Tunnel depend on your infrastructure, your data agreement and your access requirements. Check with the sales team what applies to your case — the answer is in the &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;deployment FAQ&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary to take to the meeting
&lt;/h2&gt;

&lt;p&gt;Letting an AI agent access a database safely doesn't mean giving it a well-configured database user. It means not giving it database access at all — but a read-only copy, through queries you approved, over a connection your network initiates. Zihin removed the direct connection because it was the weakest link in the design. What remains is a path where the credential never leaves your network, the ERP doesn't feel the load, and every read is on record.&lt;/p&gt;

&lt;p&gt;If your IT team is holding back AI adoption at exactly this point, it's worth mapping the flow with real data from your ERP. &lt;a href="https://www.zihin.ai/en/contact?topico=diagnostico" rel="noopener noreferrer"&gt;Book a diagnostic&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Zihin.ai, product changelog — MCP 2.2.2 and removal of &lt;code&gt;db_config&lt;/code&gt; / &lt;code&gt;db_event&lt;/code&gt; (Oct 4, 2026): &lt;a href="https://www.zihin.ai/en/changelog" rel="noopener noreferrer"&gt;/changelog&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, Integrations — Replay and MCP Bridge for ERPs: &lt;a href="https://www.zihin.ai/en/integrations" rel="noopener noreferrer"&gt;/integrations&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, Security — Tunnel, vault and contextual policies: &lt;a href="https://www.zihin.ai/en/security" rel="noopener noreferrer"&gt;/security&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Zihin.ai, FAQ — Deployment and data: &lt;a href="https://www.zihin.ai/en/faq" rel="noopener noreferrer"&gt;/faq&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Portuguese on the &lt;a href="https://www.zihin.ai/blog/dados-para-agentes-sem-acesso-direto-ao-banco" rel="noopener noreferrer"&gt;Zihin blog&lt;/a&gt;. I work at Zihin, which connects AI agents to a company's systems and processes, with permissions, human approvals and cost tracking.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>security</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
