CourseAgentic AI for Business
ModuleProduction and strategy
Duration10 min
Progress0/12
Course material0/12 · 0%
  1. 1How a language model actually works10 min
  2. 2Prompting: turning intent into reliable instructions11 min
  3. 3Choosing your model9 min
  4. 4From chatbot to agent: the reasoning-action loop9 min
  5. 5Tools and function calling11 min
  6. 6Agent design patterns: beyond a single loop11 min
  7. 7Memory and knowledge: grounding agents with RAG11 min
  8. 8Building a knowledge base that retrieves well12 min
  9. 9Connecting to your systems: APIs, webhooks, and MCP10 min
  10. 10Guardrails, evaluation, and cost10 min
  11. 11Deploying an agent on a real workflow10 min
  12. 12Choosing what to automate: an ROI framework10 min

Lesson 11 / 12 · 10 min

Deploying an agent on a real workflow

The architecture of a production agent, and a sober path from prototype to something you can trust.

You now have the pieces: a model, a loop, tools, grounding, and guardrails. Deployment is wiring them to a real channel and a real system, then hardening it. Here is the shape of a working agent in production.

The architecture

CustomerWhatsApp / web
Webhookmessage in
Agent runtimethe loop
Tools
Your systemsCRM, DB, catalog
Knowledge (RAG) feeds the runtimeLogs and metrics flow out to you
A message arrives via a webhook, the agent loop runs with tools and knowledge, and every step is logged for you to review.

Sessions and state

Each customer needs a session: a thread that holds their recent messages so the agent has continuity, keyed by their phone number or a chat id. Decide how much history to keep in context (recent turns plus a short summary of older ones is a good default) and where to store the rest. This is the practical side of the memory lesson.

Webhooks: how messages get in

A channel like WhatsApp (via a provider) calls a URL on your server every time a customer sends a message. That webhook is the entry point: it receives the message, loads the session, runs the agent loop, sends the reply back through the provider, and records what happened. Everything the agent does starts from one inbound webhook.

Prototype to production

  • Log every step: the prompt, the tool calls, the result. When something goes wrong you will need the trace.
  • Start with a human in the loop: the agent drafts, a person approves, until the eval scores earn your trust.
  • Ship to a narrow slice first: one channel, one use case, real but limited volume.
  • Watch the metrics: resolution rate, handoff rate, cost per conversation, and the failures.
  • Have an off switch and a rollback. You will change the prompt; be able to undo it.

Build the smallest version that touches one real workflow, keep a human approving at first, measure it, and widen only once the numbers hold. That discipline, not a clever prompt, is what separates an agent that survives contact with real customers from a demo that does not.

What you take away

  • Production shape: channel webhook to agent runtime to tools to your systems, all logged
  • Sessions give continuity, keyed per customer; manage how much history stays in context
  • An inbound webhook is the entry point for every message
  • Go live narrow, human-in-the-loop, measured, with logs and a rollback

Curated sources

Hand-picked references for going deeper, reviewed by our team.

Related Etzal serviceAutopilot: AI that runs your operationsPrefer it done for you? See how we help.
Deploying an agent on a real workflow - Agentic AI for Business | Etzal Academy | Etzal Group