A Slack paid media agent that reports weekly and proposes ad changes
Every Monday an agent joins ad platform spend with pipeline from the warehouse and posts a report per channel in Slack. People ask follow-up questions in the thread, and any campaign change it proposes waits for an authorized reviewer.
Curated by Andrew Donato, Editor. Reviewed .
Get one setup like this every Thursday, by email.
Written for sales leaders running leaner teams.
Free. One email a week. Unsubscribe anytime.
Paste this into ChatGPT, Claude or your agent tool. See the prompt
- RevOps Reporting
- advanced
- Founder
- RevOps
- Sales leader
- Category
- RevOps Reporting
- Difficulty
- Advanced
- Est. cost
- Free open-source repo (Apache license); model, hosting and Pipeboard costs not stated by source
What problem does this solve?
Once a small team runs ads on several channels, each platform reports in its own schema and none of them knows which clicks became sales inquiries or pipeline. Pulling it together by hand each week is slow, and an agency report often answers the wrong question.
How is the agent set up?
Amal Irgashev, Danny Lambert and Jan Gomez of LangChain describe the Paid Media Agent their team built as paid ads grew to five channels, and the company has open-sourced it under Apache 2.0. It lives in Slack. A Monday schedule combines ad platform data (through Pipeboard's MCP for Google, Meta, LinkedIn and others) with leads, Salesforce opportunities and pipeline from a BigQuery warehouse, then posts a summary and a PDF per platform on what changed, why, and what to do next. People tag it in the thread for follow-ups, and it can propose new keywords, targeting changes, ad copy or a new search campaign. Python does the math (date windows, totals, comparisons, account matching and hard rules, such as never cutting a top pipeline driver after one bad week), and the model only interprets results and recommends. Each metric has one trusted source: ad platforms for spend and clicks, the warehouse for what a conversion became. A short system prompt points to six skills (how to do the work) and a nineteen-page wiki (company-specific campaign goals and past decisions). Proposed changes appear as a Slack approval card showing current and proposed values; only named team members can approve, the server checks their Slack IDs, and code applies the change and then checks the platform to confirm it. In the authors' words: "Use models for judgment and code for consistency." The prompt below is our starter version of the weekly review step.
What prompt does it use?
Starter prompt by The GTM Agent Weekly, written from the setup described on this page. It is not the source's own prompt; see the source link below for their write-up.
# ROLE
You are the paid media analyst for {{COMPANY}}. You explain what changed in our ad accounts and recommend next steps. You never change a campaign yourself.
# INPUTS
- {{AD_PLATFORM_TABLE}}: spend, impressions, clicks and platform conversions per campaign for this week and last week, already calculated.
- {{PIPELINE_TABLE}}: leads, qualified leads, opportunities and pipeline per campaign from our CRM or warehouse, already calculated.
- {{CAMPAIGN_GOALS}}: what each campaign is for (awareness, demo requests, signups) and decisions the team already made.
- {{GUARDRAILS}}: rules we never break, for example do not pause a top pipeline campaign after one weak week.
- {{DATA_GAPS}}: campaigns or spend that could not be matched between the two tables.
# TASK
1. Use spend and clicks only from {{AD_PLATFORM_TABLE}}, and leads and pipeline only from {{PIPELINE_TABLE}}. Do not recalculate totals.
2. For each platform, name the two or three biggest changes and the most likely reason, judged against each campaign's goal in {{CAMPAIGN_GOALS}}.
3. Say plainly what {{DATA_GAPS}} means for your conclusions instead of filling the gap.
4. Propose at most {{MAX_PROPOSALS}} changes, each with the current value, the proposed value, the reason, and how we will check the result next week.
# OUTPUT FORMAT
- "Summary": three to five sentences for the team.
- "By platform": changes, likely reasons, and the source and date window behind each number.
- "Proposed changes": a table with campaign, current, proposed, reason, check.
- "Questions for the team".
# GUARDRAILS
- Never break a rule in {{GUARDRAILS}}, even if the numbers seem to argue for it.
- Every proposed change needs approval from {{APPROVER}} before anyone applies it.
- Never invent numbers, campaigns or results that are not in the inputs. Replace every {{PLACEHOLDER}} before running. Works with any capable LLM and runner.
Get 5 setups like this every week, free.
Real agent setups with prompts, sources and failure modes, in one short weekly email.
Free. One email a week. Unsubscribe anytime.
What tools does it use?
How do you set it up?
- Fork the open-source repo and run its offline demo, which uses synthetic accounts and never touches live campaigns.
- Connect your ad accounts read-only and point it at the table that links campaigns to leads and pipeline.
- Write down which system is trusted for each metric, and remove tools that would let the agent query the wrong one.
- Put campaign goals and past decisions in a wiki, keep reusable methods in skills, and keep the system prompt to a short map of where things live.
- Move calculations and hard rules into code, so the model only interprets the results and recommends.
- Schedule the Monday report, let people ask follow-ups in the same Slack thread, and only enable live changes once a write policy and named approvers are set.
What results are reported?
LangChain reports that paid media went from none to about 20% of its marketing pipeline in six months, that cost per qualified lead fell 30% from June to August while spend rose about 60%, and that bringing reporting in-house saved about $5K a month. Moving math into code made an early report about 40x cheaper and cut its run from 18 minutes to 85 seconds. These are the vendor's own figures about its own agent.
What goes wrong
Where does this break?
- The first version loaded every row into the model and asked it to do the math: about 3.9 million input tokens and 18 minutes per report, and the numbers were harder to trust.
- About 10% of Google spend never reached the warehouse because video campaigns have no keywords to join on, so the agent reports such gaps instead of filling them.
- Two platform subagents shared one report location and completion flag, so one could think it was done and stop without a report; each now has its own.
- Separate graphs for the Monday report and Slack questions lasted five weeks before every feature had to be built twice; it is now one runtime with different tool sets per entry point.
- Slack approval cards get unwieldy for bulk edits or plans that need several rounds of revision, so the team is moving those to a dedicated interface.
- Live ad account changes are off by default in the repo; enabling them requires a write policy, release checks and an authorized reviewer.
- Campaign results come from the vendor describing its own agent during a period when it was also scaling spend; judge it on your own accounts. (editor note)
This is where most teams get stuck. Want us to handle the setup?
Source and credit
Amal Irgashev, Danny Lambert and Jan Gomez, LangChain blog (open-source repo: github.com/langchain-ai/paid-media-agent) · vendor
Source dated 2026-09-14 · last reviewed 2026-10-29. Summarized in our own words; see the source for details.