Skill instructions
get-account-ready-to-buy4.1 KB
View saved version →
---
name: get-account-ready-to-buy
description: Prepare an Interchange buyer account to transact. Use when a user asks to set up, onboard, activate or unblock the buyer account, connect a provider account, accept terms, establish billing authority, or find what must be completed before buying media.
---
# Get an Account Ready to Buy
Use the attached Interchange V3 buyer tools. Treat `get_status` as the authority on the active account, readiness, blockers, and next actions.
## Workflow
1. Call `get_status` before changing anything.
2. Confirm the account is the buyer account the user intends to configure. If it is not, present the reachable accounts and ask the user which one they mean. Send that account's `accountId` on every call, as `get_status` returns it; do not call `switch_account`.
3. Work through the returned blockers and `nextActions` in priority order. Do not invent missing requirements or treat a readable public seller page as authorization.
4. For an operator-identity action:
- Read `operatorIdentity` from `get_status` first.
- If `locked` is true or `canManage` is false, stop and follow the returned administrator or support action.
- If `usableForBuying` is true, reuse its returned domain; otherwise ask for the buyer's real business domain.
- Never invent a domain, unit identifier, or the value `default`.
- Call `save_buyer_operator` only after the user confirms the exact identity.
- Buyer readiness treats this check as complete when the account has a usable operator domain and the organization has proved control of it. It does not require a separate identity-scope confirmation.
5. For terms or billing actions:
- If Terms or full plan review is required, open or direct the user to the Plan & Billing Page and stop that step. The model-visible tools do not expose the complete Terms text and exact version needed for safe acceptance.
- For payment terms, call `save_billing` with `{ paymentTerms }` only after the user chooses the terms.
- For payment authority, ask for confirmation before requesting it. Then follow this flow exactly: `request_payment_authority` returns a single-use confirmation token, `confirm_payment_authority` spends that token to issue the hosted card-capture link, and `get({ kind: 'billing', accountId })` reports the status afterwards. Send the chosen `accountId` on every call in this flow.
- Give the hosted link only to the organization cardholder. Never request or transmit card data in chat or MCP calls.
6. For seller connections:
- Use `search` and `get` to find the exact seller, connection, provider account, and advertiser mapping.
- Use `open_media_partners_page` when the host supports its UI; otherwise use `save_connection`.
- Send authorization through the returned browser URL. Never ask for provider credentials in chat.
- Use one `save_connection` intent per call. Authorize only when the current connection state requires it, poll with `search` or `get`, then make separate confirmed calls to select a returned provider account and map it to the exact advertiser when required. Re-read after each step.
7. Call `get_status` again. Report what is complete, what still requires the user or an administrator, and whether the account is ready to transact.
If the user asks to create a new campaign, request proposals, or stage a buy, hand off to the campaign-setup skill after readiness is proven. If the user asks to launch, pause, change, or troubleshoot an existing campaign, hand off to the campaign-management skill.
## Safety rules
- Obtain confirmation before every durable identity, terms, billing, connection, selection, or mapping change.
- Copy account, seller, connection, advertiser, version, and confirmation identifiers only from tool responses or explicit user input.
- Do not claim readiness until the final `get_status` result has `canBuyAnywhere: true` and at least one `destinations.readyDestinations` entry. Report `platformReady` separately; it Preview of the first 4,000 characters. Read full instructions →
manage-a-campaign4.6 KB
View saved version →
---
name: manage-a-campaign
description: Review and manage an existing Interchange buyer campaign. Use when a user asks about campaign status, delivery, spend, pacing, an existing campaign's creatives, blockers, launch, pause, archive, budget or flight changes, troubleshooting, or what needs attention.
---
# Manage a Campaign
Ground every recommendation and change in the current campaign, delivery, and creative records from the attached Interchange V3 buyer server.
## Workflow
1. Call `get_status` and confirm the active buyer account.
2. Use `search` to find the intended campaign and `get` with `include: ["mediaBuys", "creatives"]` to read its current revision, phase, flight, budget, media buys, creatives, and blockers. Ask the user to choose if more than one campaign matches.
3. For live delivery questions, call `get_delivery` with `report: "live_campaign_delivery"`, the exact campaign ID, and an explicit inclusive UTC `range` no longer than 90 days. Do not pass metrics, dimensions, other filters, or a cursor. The response preserves the validated live provider payload. Use `campaign_delivery` only when the user asks for stored aggregate rows.
4. Report the provider reporting period, currency, totals, warnings, and missing values. A live provider response does not establish reporting-pipeline finality or billing eligibility. Distinguish observed facts from recommendations; do not turn missing measurement into zero performance.
5. Inspect related creatives or creative collections with `search` and `get` when readiness or delivery indicates a creative issue. Do not claim approval, attachment, or provider propagation unless returned evidence proves it.
- For a local JPEG, PNG, or eligible MP4, call `upload_creative_asset` with the exact buyer-owned `advertiserId`. When the upload is intended for a campaign, also pass `campaign_composition` with its exact `campaign_id` and matching `advertiser_id`; that context does not itself associate the upload. The Task app, not the model, handles the file bytes.
- After the Task finalizes a JPEG or PNG and returns its private source reference, use `save_creative` with that exact `sourceAssetRef` and either the intended `campaignId` or, for an advertiser-scoped Creative, `advertiserId` after confirmation. A finalized MP4 is upload-only on V3: do not call `save_creative`, claim a Creative or campaign attachment exists, claim delivery, or silently substitute a V2 write.
- A supplied URL or other external asset is not accepted by this Task. State that boundary and stop. Treat an already-existing provider-scoped V2 source as a separate Legacy request: stop and hand off to its matching V2 connection; never reinterpret V3 output as provider-bound.
6. Explain what needs attention and propose the smallest supported change. Before any write, show the exact target, current revision, requested fields, expected effect, and material risk.
7. After confirmation:
- Use `save_campaign` for supported campaign changes with the current `expectedRevision` and a stable idempotency key. Reuse that key only when retrying the exact same intent.
- To launch, first call `save_campaign` with `desiredPhase: "active"` and without `confirmLaunch`. Show the returned preview, obtain confirmation, then call it again with `confirmLaunch: true`, the preview's revision as `expectedRevision`, and the required idempotency key.
- Use `save_creative` or `save_creative_collection` for confirmed creative changes with exact IDs.
- Treat campaign or creative archival and financial changes as destructive; require explicit confirmation immediately before the call.
8. Read the updated campaign and relevant delivery evidence again. Report the observed result, warnings, partial writes, downstream errors, and unresolved actions.
## Safety rules
- Never invent IDs, revisions, metrics, statuses, prices, or causal explanations.
- Do not silently retry a non-idempotent mutation. Re-read state before deciding whether a r
Preview of the first 4,000 characters. Read full instructions →
set-up-a-campaign10.5 KB
View saved version →
---
name: set-up-a-campaign
description: Set up a new Interchange buyer campaign from a brief. Use when a user asks to create a draft campaign, prepare conversion tracking or creatives, find ready sellers, request proposals, compare returned products or proposals, or stage a selected media buy.
---
# Set Up a Campaign
Build a grounded draft campaign from the user's brief and, when requested, stage the user's selected media buy. Keep preparation, proposal requests, staging, and launch as separate visible decision points.
## Workflow
1. Call `get_status`. Stop on readiness blockers and use the account-readiness workflow before creating campaign state.
2. Gather only missing brief facts needed for a useful draft: advertiser, objective, audience or geography, flight dates, total budget and currency, formats, constraints, and success criteria.
- When the brief names an outcome without a measurable goal ("get them to my store"), ask how the buyer will know it worked, then who can count that result: the seller's ad server, the buyer's own analytics or pixel, or a measurement vendor. Before explaining goal kinds, who counts each, or what a seller can promise, retrieve [Goal-seeking campaigns](/v2/concepts/goal-seeking-campaigns) with `search` and `get` and present what it says.
3. Use `search` and `get` before creating anything. Reuse matching advertiser, campaign, seller, creative, collection, and event-source records; never infer identifiers from names. Products are not top-level searchable objects and must come from proposal results.
4. Present the proposed advertiser and campaign summary. After confirmation:
- Before creating an advertiser, confirm its name, brand, primary currency, and whether its immutable environment is sandbox or live. Use `save_advertiser` only if creation or an update is necessary.
- Propose a goal statement in one line and let the buyer confirm or change it: goal, target, counted by, and commitment wanted, for example "clicks, at €3 or less, counted by the seller's ad server, guaranteed". Save only what the buyer confirms. The goal goes in `optimizationGoals`. A cost or return target ("at €3 or less", "4 back for every 1 spent") goes in `bidding`, never on a goal: `{ kind: 'cost_per', cost_per: { amount, strength } }` with a strength of `cap` or `target`, or `{ kind: 'roas', roas: { value, strength } }` with a strength of `floor` or `target`. Ask which strength the buyer means, using [Stating a cost or return target](/v2/concepts/goal-seeking-campaigns#stating-a-cost-or-return-target). A minimum rate stays on the goal as its `target`. Counted by follows from the goal kind; commitment wanted is the buyer's preference for how sellers answer and is not a campaign field. A metric word in a campaign name or brief is still a question, never a goal to set.
- Counted by the seller's ad server (for example site visits with no tracker): use a `metric` goal such as `clicks`. When the advertiser has no event source, offer campaign click-URL parameters through `save_campaign` `tracking.macroAdditions` so the buyer's own analytics can attribute the visits; follow [Click-URL parameters](/v2/object-guides/advertiser#click-url-parameters).
- Counted by the buyer's analytics or pixel: use the event-source setup workflow before saving that goal. Reuse or register an advertiser event source, then put its exact `eventSourceId` in an `event` goal in `optimizationGoals`. A new source may not have received any events yet. If the buyer explicitly proceeds without conversion tracking, omit the conversion goal and say so.
- Counted by a measurement vendor (for example store visits measured by a footfall vendor): follow what [Who counts the result](/v2/concepts/goal-seeking-campaigns#who-counts-the-result) says about vendor-measured goals. Put the outcome and the vendor in the campaign brief, do not invent a vendor goal kind, and tell the buyer what the page says the platform does and does not do with it.
- IfPreview of the first 4,000 characters. Read full instructions →
set-up-an-event-source5.07 KB
View saved version →
---
name: set-up-an-event-source
description: Set up or reuse advertiser conversion tracking when a buyer needs a social-platform source, website or app events, a server feed, CRM data, or a measurement partner.
---
# Set Up an Event Source
Use this workflow when a buyer wants to measure a conversion, attach conversion tracking to a campaign, or connect event data from a social platform or measurement partner.
## Establish the measurement job
1. Identify the advertiser and the conversion outcome the buyer wants to observe. Do not create a source until the advertiser is explicit.
2. Call `search` with `kind: "event_source"` and `filter.advertiserId`. Use the buyer's provider or outcome words as `query` when useful.
3. Reuse a source only when its name, `eventSourceId`, event types, and `actionSource` or `surface` match the buyer's intent. Health is evidence, not an eligibility gate: a new source can be used before any event arrives, but say that no event has arrived yet.
## Choose the source path
### Native social-platform source
Use an ID returned by the connected platform, product, or account flow. Never invent a pixel, form, channel, profile, or dataset ID. If no authorized native source is returned, stop and ask the buyer to connect or select the provider account that owns it.
Do not register a native platform source as if Interchange hosted it. Some products expose a built-in event-source sentinel in their execution template; copy that exact value only when the product declares it.
### Buyer or measurement-partner feed
Call `save_event_source` with the `advertiserId`, a fresh `idempotencyKey`, and one entry in `eventSources` per source. Each entry is keyed by a stable buyer-assigned `eventSourceId`; a new ID creates the source, and an existing ID updates it.
- A new source needs a clear `name` and the exact supported `eventTypes`. Omit `eventTypes` only when the source should accept every event type.
- When the buyer will report monetary values, set `valueCurrencies` to the currencies the sender uses. Without it the source cannot support canonical ROAS.
- Set `actionSource` (or `surface` when a flat category is too coarse) to where the conversion happens.
- The sender owns its field mapping, a stable event ID, and its deduplication rule. Agree those with the buyer before sending production data; V3 does not store them on the source.
Each entry in the response reports its own `action`: `created`, `updated`, `unchanged`, `archived`, or `failed` with `errors`. A failed entry does not undo the others; fix and resend only that entry. Retry an interrupted save with the same `idempotencyKey` and the same entries; a response with `replayed: true` means the earlier save already completed. Use a new key for a different change.
Each saved entry's `setup` object is the installation handoff. Registration saves configuration; it does not install a tag, authorize a provider account, send historical data, or prove that events are flowing.
Billy Grace and other measurement partners follow this server-feed path unless connection discovery explicitly returns a native connector and its authorized source IDs. Do not claim a native connector from the provider name alone.
## Verify before claiming success
1. Read the exact source with `get`, passing `kind: "event_source"`, the source's `eventSourceId` as `id`, and `advertiserId`.
2. Report `health` plainly. `health.status` is the AdCP grade (`insufficient`, `minimum`, `good`, or `excellent`), and `health.issues` names what needs attention:
- An `error` issue means the latest event was rejected; give the buyer its message.
- A `warning` that no events have been received means the source is configured but nothing has arrived yet.
- A `warning` that nothing arrived in 7 days means the source went quiet after receiving events.
3. Do not treat a new source with no events as a failure or wait to create the campaign. Give the buyer the setup instructions and a concrete verifica
Preview of the first 4,000 characters. Read full instructions →