liveBook · Manning

Chapter 11: Tips for building agentic systems

What you will learn in chapter 11 of AI Agents in Action, Second Edition

Introduces the chapter’s production-informed tips and previews guidance for customer support, RAG, and deep research agents.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Introduces the chapter’s production-informed tips and previews guidance for customer support, RAG, and deep research agents.

11.1 Field-tested tips organized by the five agentic layers

This section introduces the five agentic layers as the framework for the practical tips that follow.

11.1.1 The core layer: Persona

This section gives four practical guidelines for designing an agent persona that shapes behavior throughout the agent.

Key terms: persona, API contract, prompt instructions, role, boundaries, I don’t know off-ramp, single-responsibility agents, structured output, JSON, schema

11.1.2 Tools and agent actions

This section gives practical guidelines for choosing, designing, controlling, and maintaining agent tools without burdening the agent with unnecessary tools.

Key terms: single-responsibility tools, docstrings, typed params, function tools, schemas, tool bloat, tool sets, MCP servers, tokens, context

11.1.3 Reasoning and planning

This section gives practical ways to guide an agent’s reasoning for complex tasks, bound its work, and avoid unnecessary reasoning for simple tasks.

Key terms: reasoning, one-shot tasks, ReAct, chain-of-thought, plan-then-execute, sequential thinking servers, iterations, runaway loops, self-review, reflexive pass

11.1.4 Knowledge and memory

This section gives retrieval-first practices for making agent knowledge and memory useful, grounded, scalable, and appropriately accessible.

Key terms: retrieval, RAG, knowledge base, metadata filters, session threads, long-term memory, vector/DB store, prune, ANN indexes, shard by domain

11.1.5 Evaluation and feedback

This section gives practical ways to measure, evaluate, safeguard, and improve agents after deployment.

Key terms: tracing, observability stack, AIOps, curated test sets, LLM-as-judge, human-in-the-loop (HITL), guardrails, moderation, schema validation, eval and safety gate

11.2 Tips for building a customer support agent

This section applies the five agent layers to customer support, gives practical safeguards, and traces how specialized agents handle a support request.

Key terms: five agent layers, persona, tools/action, reasoning/planning, knowledge/memory, eval/feedback, narrow the charter, bounded set of intents, RAG, grounding agents

11.3 Tips for building a RAG agent system

The section gives practical guidance for keeping RAG agent systems focused, improving retrieval, grounding answers, evaluating failures, and retrying inadequate searches.

Key terms: one-shot RAG call, orchestrator, triage (router), retriever, answerer, critic, ANN indexes, metadata filters, domain-tuned embeddings, reranking

11.4 Tips for building a deep research agent system

This section gives practical guidance for deciding when to build an internal deep research agent and for organizing its research, fact-checking, reporting, and operational controls.

Key terms: deep research agents, internal version, two-tier orchestration, research planner, stateless workers, tools, agents that use tools, tool policy controls, retrieval and web tools, references

11.5 Summary

Summarizes how to assemble production-ready agentic systems from five design layers, then applies those principles to customer support, RAG, and deep research.

Concepts explained in this chapter

← Chapter 10: Exploring the cognitive agent that thinks, monitors, and adapts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.