01Chapter 1: The marketing research and reporting workflowAn AI agent is useful only when you know which job it is doing. This chapter describes the manual workflow that marketing teams already run, breaks it into stages, and decides which stages an agent can take on. Later chapters build the pieces: tools, the agent loop, grounding, verification and revie6 min read
02Chapter 2: What an AI agent is and how it differs from a chatbotThis chapter assumes you know basic marketing metrics (impressions, clicks, conversions, spend), can read short Python programs, and have a general idea of what a large language model (LLM) is. It also assumes you are comfortable with JSON. The chapter defines an agent, compares it with a chatbot, a6 min read
03Chapter 3: Where language models go wrongThis chapter assumes you have used a large language model (LLM) through a chat window or an API. It also assumes you know basic marketing metrics and can read short Python snippets. The aim is to name the specific ways a model fails on marketing research and reporting work, so that later chapters (t6 min read
04Chapter 4: Data sources: ad platforms, analytics, CRM and the webThis chapter assumes you know basic marketing metrics (impressions, clicks, conversions, spend), can read short Python, and are comfortable with JSON and simple APIs. It covers the four kinds of data an agent reads, how each one goes wrong, and how to put them in a shape the agent's tools can use. L6 min read
05Chapter 5: Giving the agent toolsThis chapter assumes you can read basic Python, know what JSON is, and have used a language model through a prompt. It also assumes you know marketing metrics such as impressions, clicks, conversions and spend. By the end you will know what a tool is, how to describe one to a model, how to write too5 min read
06Chapter 6: The agent loop: plan, act, observe, stopThis chapter assumes you have read the earlier chapters on tool use and structured outputs. You should be able to read Python and JSON, and know that a model can request a tool call that your code then runs. Here you will see how those pieces form a loop, how the loop ends, and what goes wrong when 5 min read
07Chapter 7: Prompts and structured outputs for research tasksThis chapter assumes you can read basic Python, know what JSON is, and have prompted a language model before. It also assumes you know the earlier chapters' idea of an agent that calls tools. Here the focus is the prompt and the shape of the model's output. Those two choices decide whether a report 6 min read
08Chapter 8: Grounding findings in retrieved sourcesThis chapter assumes you have read the earlier chapters on language model limits and marketing data sources. It also assumes you can read basic Python and JSON. Grounding means the agent writes each finding from material it retrieved in the current run, instead of from what the model remembers. You 5 min read
09Chapter 9: Calculating metrics with code, not with the modelThis chapter assumes you can read basic Python, know the marketing metrics click-through rate (CTR), cost per click (CPC) and cost per acquisition (CPA), and have seen the agent loop from earlier chapters. You will build a deterministic metrics tool, learn the errors that most often corrupt marketin4 min read
10Chapter 10: Turning findings into a reportThis chapter assumes you have read the earlier chapters on tool use, structured outputs, grounding and metric calculation. You should be comfortable reading Python and JSON. By the end you will know how to turn a set of verified findings into a report that a person can read and check.5 min read
11Chapter 11: Checking numbers and claims before publishingThis chapter assumes you can read basic Python and regular expressions, and that you know the tool-calling and report-generation material from earlier chapters. You should also know why language models sometimes state wrong numbers with confidence.6 min read
12Chapter 12: Where a person stays in the loopThis chapter covers where an agent workflow should stop and wait for a person, and how to build that stop so it works under time pressure. It assumes you have read the chapter on checking numbers and claims, so you know how the unsupported_numbers check flags figures that no tool result supports. 6 min read
13Chapter 13: Privacy, compliance and access controlAn agent that pulls ad, CRM and web data can expose personal data in a prompt, a log or a report. This chapter covers how to prevent that. It assumes you have read the chapters on tools and the agent loop. It also assumes you know basic Python and the usual marketing data sources. It is a technical 6 min read
14Chapter 14: Splitting work across several agentsThis chapter assumes you have read the earlier chapters on tool use and the agent loop. You should be comfortable reading Python and JSON, and you should know that a single agent is a model, a set of tools and a stop condition. Here you will learn when one agent should become several, how to divide 5 min read
15Chapter 15: Scheduling, logging and cost controlA report agent that only runs when someone remembers to start it saves little effort. This chapter covers three things that let an agent run unattended: a schedule that triggers it safely, logs that show what it did, and cost limits that stop a bad run from becoming an expensive one.5 min read
16Chapter 16: Evaluating quality and return on effortThis chapter assumes you have read the chapters on verification and on scheduling and cost control. You should be comfortable reading short Python functions and thinking about marketing metrics such as CTR, CPC and CPA. The question here is whether the agent is good enough, and whether it saves more6 min read