A solution for an AI agent

Meta Ads audience research: an AI agent analyses the account and builds the report

Researching the audience of one ad account by hand used to take me about a working day: export the breakdowns, merge the tables, work out shares and cost per event, look for patterns. Now an AI agent does it with a ready set of prompts, and I spend my time checking the conclusions and making budget decisions.

This is a solution that runs inside an AI agent. You need Claude (or another agent) with Meta Ads MCP connected to the ad account, with read-only access. The agent requests the statistics, calculates the metrics and writes the conclusions itself.

What the agent analyses

  • Demographics. Age and gender: where budget outweighs results and which segments only look cheap.
  • Geo. Countries and regions: where to scale and where cheap traffic never converts.
  • Placements. Reels, feeds, Stories, Audience Network: what to exclude and what to strengthen.
  • Devices and OS. iOS versus Android, adjusted for incomplete attribution.
  • Time of day. Hours and weekdays when conversion is above average.
  • Creatives. Formats, top and bottom ads, what the best ones share.
  • Frequency. When creatives burn out and when to widen the audience.

At the end the agent builds the best audience profile, top 5 insights and a prioritised test plan, then packs everything into an A4 report you can save as PDF.

Sample report

This is what the result looks like on fictional data: a workout app, three regions, one month of spend. Six pages: a cover with key metrics, four breakdown sections and a final page with the test plan.

Cover of the sample report: key metrics and three main findings Report page with the audience broken down by age and gender

Open the sample PDF6 pages · fictional data

How it works

  1. Context. The first prompt gives the agent the product, key event, target cost, attribution window and calculation rules. The main rule: judge cost per key event, not per click or install.
  2. Data check. The agent checks for campaigns with other goals and whether there are enough events for breakdowns.
  3. Breakdowns. Eight prompts in turn: each requests its breakdown via MCP and ends with conclusions and hypotheses.
  4. Synthesis and report. The agent turns the conclusions into a test plan and builds the document.

A full run takes 20–30 minutes, and the agent does most of the work on its own. The prompts are below, copy them one by one.

Before you start

  1. Connect the official Meta Ads MCP to Claude using this guide. Read-only access is enough.
  2. Create a separate project in Claude for the analysis and paste prompt 0 into the project instructions. The context and rules then apply to every chat in that project.
  3. Run prompts 1–8 one by one in the same chat. Each step ends with short conclusions that the next steps build on.
  4. Prompt 9 turns everything into insights and a test plan, prompt 10 packs it into a document or PDF.

Replace anything in square brackets [ ] with your own values. A finished example is above: a PDF built on fictional data.

A quick note

If your Claude or another AI agent already knows your work and has plenty of context, one light prompt is enough: “Do a thorough analysis of the Meta Ads account for October and give me summary results and insights as an HTML file”. If you like the design of the report from this page, attach it as a reference.

If your agent has no such context, I recommend running all the prompts below in order. They give it the context it needs and help you get a more complete picture within one session.

Prompt 0. Context and rules

You are a performance marketing analyst. You work with a Meta ad account through the connected Meta Ads MCP. Read-only mode: do not create, change or pause anything.

Project context:
- Ad account: [name or ID]
- Product: [what we sell and to whom]
- Analysis period: [last 30 days]; comparison period: [previous 30 days]
- Key event: [purchase / trial / sign-up / lead]; target cost: [$]
- Attribution window: [7-day click, 1-day view]
- Markets: [countries]
- Report currency: [USD]

Analysis rules:
1. Use only data from the ad account. If data is missing or thin, say so.
2. Flag any segment with fewer than [30] key events as unreliable and avoid strong conclusions on it.
3. For every segment calculate: spend and share of spend, impressions, CPM, clicks, CTR, key events and their share, cost per event, click-to-event conversion rate.
4. The main metric is cost per key event. A cheap click or install without conversions is not a win.
5. Build every conclusion as: observation → number → what it means → what to test.
6. Sort tables by spend, round currency and percentages to one decimal.

Confirm the context and list the campaigns included in the analysis.

Prompt 1. Data check

Before the analysis, check data quality for the period:
- which campaigns and ad sets were active and which optimisation goal each uses;
- whether the key event is the same in all campaigns; list separately any campaigns with other goals that would distort the comparison;
- days with no spend, or sharp jumps in spend or events;
- the total number of key events and whether it is enough for segment breakdowns.

Give a short table of campaigns and a list of limitations to keep in mind.

Prompt 2. Demographics

Get statistics for the period broken down by age and gender (breakdowns: age, gender).

1. A table of every age × gender combination with the metrics from the rules.
2. Compare share of spend with share of key events: which segments get more budget than results, and the reverse.
3. Find "false winners": cheap clicks or installs but low conversion to the key event.
4. Compare with the comparison period: which segments are getting more or less expensive.

Result: 3 main observations and 2–3 hypotheses to test.

Prompt 3. Geo

Get statistics broken down by country (breakdown: country). For the 2–3 countries with the highest spend, add a breakdown by region (breakdown: region).

1. A table by country with the metrics from the rules, marked above or below the target cost.
2. Flag countries where CPM or CPC is low but cost per key event is above average.
3. By region: where conversions concentrate, and which regions to exclude or move into a separate ad set.
4. Compare with the comparison period.

Result: where to scale, where to cut budget and what to test.

Prompt 4. Placements

Get statistics broken down by platform and placement (breakdowns: publisher_platform, platform_position).

1. A table by placement with the metrics from the rules.
2. Show placements where share of spend is well above share of key events.
3. Assess Audience Network and Messenger separately: do they bring real conversions?
4. Remember that with Advantage+ placements Meta allocates budget itself. Say where a manual exclusion is justified by the data and where automation should stay.

Result: placements to exclude, to strengthen and to give dedicated creatives.

Prompt 5. Devices and OS

Get statistics broken down by device and platform (breakdowns: impression_device, device_platform).

1. Compare iOS and Android, smartphones and desktop, on the metrics from the rules.
2. For apps, account for incomplete iOS attribution (SKAdNetwork, AEM) and flag where a gap may be a measurement artefact.
3. If MMP data (Adjust, AppsFlyer) is needed to cross-check, tell me which export to prepare.

Result: whether to split campaigns by OS and how to divide the budget.

Prompt 6. Time of day

Get statistics broken down by hour in the audience time zone (breakdown: hourly_stats_aggregated_by_audience_time_zone), plus by day of week (daily data, time_increment: 1).

1. Group the hours into slots: 0–6, 6–10, 10–14, 14–18, 18–21, 21–24.
2. Compare share of spend with share of key events by slot and by day of week.
3. Find windows where conversion is 20% or more above average, and windows where it is clearly below.

Result: whether ad scheduling or budget shifts make sense, and for which campaigns.

Prompt 7. Creatives and formats

Get statistics by ad for the period together with the creative format. For video, add 25/50/75/100% view-through and hook rate (3-second views divided by impressions).

1. Group ads by format (video, static, carousel) and by style (UGC, motion, product shot and so on) where the name, copy or preview shows it.
2. Top 10 and bottom 10 ads by cost per key event, only those with at least [20] events.
3. What the best ads have in common: hook, offer, length, format, copy.

Result: which creatives to scale, which to switch off, and a brief for 3 new tests.

Prompt 8. Frequency and fatigue

Get weekly statistics (time_increment: 7) at campaign and ad set level: frequency, reach, CTR, CPM, cost per key event.

1. Show how CTR and cost per event change as frequency grows.
2. Find ad sets and ads with weekly frequency above [3] and falling CTR.
3. Estimate remaining audience: reach versus the potential audience size of each ad set.

Result: where creatives need rotating or audiences need widening, and how often.

Prompt 9. Insights and test plan

Bring the conclusions of all previous steps into one picture:

1. Best audience profile: who, where, on which device, in which placement, at what time and with which format converts most cheaply.
2. Top 5 insights sorted by impact on cost per key event. For each: number, conclusion, action.
3. A test plan as a table: hypothesis, what we change, success metric, expected effect, priority (high / medium / low), duration.
4. Risks and data limitations.

Do not repeat full tables, use only the numbers needed for the conclusions.

Prompt 10. Pack into a document or PDF

Build a report from all the steps as one A4 HTML document, ready to print to PDF:
- cover: project, period, 4 key metrics and 3 main findings;
- sections: demographics, geo and devices, placements and time, creatives and frequency;
- each section has 1 table or horizontal bar chart in plain HTML and CSS, with 2–3 conclusions beside it;
- final page: best audience profile and the test plan as a table;
- calm business style: white background, one accent colour, no emoji, large numbers;
- each section starts on a new page (page-break-before), 15 mm margins.

Give me the finished file. I will open it in a browser and save it with "Print → Save as PDF".

If you need a text document for the team rather than a PDF, replace the last paragraph with “Format the report as a document with headings and tables”. Claude will build it in the chat and you can download it in the format you need.

Tips from practice

  • Don’t mix goals. Reach and conversion campaigns in one analysis lead to false conclusions. That is what prompt 1 is for.
  • 30 days is the minimum for small budgets. If events are few, extend the period or move one step up the funnel.
  • Spot-check the numbers. Compare 2–3 figures with Ads Manager before making budget decisions.
  • Repeat monthly. Save the report and next time add to prompt 9: “compare with the previous report and show what changed”.
  • Client ad accounts only on a corporate plan and with read-only access.