Skip to main content

Deal record layout

We replay your recent advertising negotiations alongside your trader over six weeks (a shadow trial), with no live spend. Our AI agent negotiates for the side buying advertising (buyer agent) or the side selling it (seller agent). Export one record per negotiation in this layout, with the opening offer, every move in order, how it ended and your own price limit if you recorded it.

A worked example

In this invented negotiation, the buyer agreed to buy 300,000 ad impressions at £31.60 per thousand (CPM). The most the buyer would pay was £34.10 per thousand (their max CPM). The least a seller will accept per thousand is their floor. This record shows what the buyer knew at the time, so it contains only the buyer's own limit.

Moves in the worked example
MoveFromActionPrice per thousand
1sellerOpening offer£34.80
2buyerCounter£29.40
3sellerCounter£33.90
4buyerCounter£30.10
5sellerCounter£33.10
6buyerCounter£30.70
7sellerCounter£32.50
8buyerCounter£31.05
9sellerCounter£32.00
10buyerFinal offer£31.60
11sellerAccept£31.60

The agreed price was £2.50 per thousand below the buyer's limit. That is about £73,000 for every £1m the buyer was willing to pay.

The same negotiation as JSON

A JSON file can hold a single negotiation or a list of negotiations.

{
  "record_version": "agentsia-deal-record/0.1",
  "negotiation_id": "example-001",
  "side": "buyer",
  "currency": "GBP",
  "deal_type": "PG",
  "impressions": 300000,
  "flight_start": "2026-12-01",
  "flight_end": "2026-12-31",
  "max_cpm": 34.1,
  "counterparty_ref": "seller-01",
  "status": "accepted",
  "final_price": 31.6,
  "offers": [
    {
      "round_number": 1,
      "from": "seller",
      "action": "offer",
      "price": 34.8,
      "impressions": 300000,
      "note": "Invented example"
    },
    {
      "round_number": 2,
      "from": "buyer",
      "action": "counter",
      "price": 29.4
    },
    {
      "round_number": 3,
      "from": "seller",
      "action": "counter",
      "price": 33.9
    },
    {
      "round_number": 4,
      "from": "buyer",
      "action": "counter",
      "price": 30.1
    },
    {
      "round_number": 5,
      "from": "seller",
      "action": "counter",
      "price": 33.1
    },
    {
      "round_number": 6,
      "from": "buyer",
      "action": "counter",
      "price": 30.7
    },
    {
      "round_number": 7,
      "from": "seller",
      "action": "counter",
      "price": 32.5
    },
    {
      "round_number": 8,
      "from": "buyer",
      "action": "counter",
      "price": 31.05
    },
    {
      "round_number": 9,
      "from": "seller",
      "action": "counter",
      "price": 32
    },
    {
      "round_number": 10,
      "from": "buyer",
      "action": "final_offer",
      "price": 31.6
    },
    {
      "round_number": 11,
      "from": "seller",
      "action": "accept",
      "price": 31.6
    }
  ]
}

Record fields

This is version 0.1, the first published. The layout may change as trials show what records hold. Any change will be published on this page under a new version name, and every file states its version in record_version.

About the negotiation

FieldRequiredWhat it holds
record_versionYesagentsia-deal-record/0.1
negotiation_idYesYour own ID for the negotiation. Use text with at least one non-space character and keep it unique within the file.
sideYesYour side in the negotiation, buyer or seller.
currencyYesThree capital letters, such as GBP.
deal_typeNoPG (guaranteed), PD (preferred) or PA (private auction).
impressionsNoThe volume under discussion at the start.
flight_startflight_endNoWhen the ads were to run, as YYYY-MM-DD.
started_atcompleted_atNoWhen the negotiation began and ended, as a date and time with its time-zone offset.
max_cpmNoFor a buyer, your own limit, where you recorded it.
target_cpmNoThe price the buyer hoped for.
floor_priceNoFor a seller, your own floor, where you recorded it.
buyer_tierNoFor a seller's records, the buyer group the seller agent uses to set prices. Use public, seat, agency or advertiser.
counterparty_refNoA stand-in name for whoever was on the other side of the negotiation (your counterpart), such as seller-07. Leave out the real company name.
statusYesHow it ended. Use accepted, rejected (one side walked away and ended the negotiation without a deal) or expired.
walked_away_byIf rejectedThe side that walked away, buyer or seller. It must match the side on the last move.
final_priceIf acceptedThe agreed CPM. It must match the price of the last move.
final_impressionsNoThe agreed volume, if it changed.
offersYesAt least one move, in order. In CSV, each move has its own row.

Each move

FieldRequiredWhat it holds
round_numberYes1 for the opening move, then counting up without gaps.
fromYesbuyer or seller.
actionYesoffer (the opening move), counter, final_offer, accept or reject.
priceUnless the move is rejectThe CPM proposed or accepted.
impressionsNoThe volume, if this move changed it.
timestampNoWhen the move was made, as a date and time with its time-zone offset.
noteNoFree text. Leave it out if it may name people or companies.

CSV rules

Use one row per move. A file can hold several negotiations, grouped by negotiation_id. Repeat the negotiation fields on every row of that negotiation, with the same values each time.

Use the field names above as unique column names. Use offer_impressions and offer_timestamp for a move's volume and time. The rows replace the JSON offers list. Leave optional cells blank when you have no value.

What the checker tells you

Before a trial starts, the checker reads the file and describes each problem in a plain sentence, naming the negotiation and move where it can. It checks required fields, allowed values, positive prices, move order, whether the last move matches the outcome and whether repeated CSV values agree. If you supplied separate trial settings, the checker validates them and checks recorded move prices, closing prices and your limits against any agreed price ranges.

The checker counts negotiations with recorded decisions to compare with the agent's. It reports how many records contain enough detail to score prices past your limit or measure money kept against it. If your limit is missing, the checker warns you and accepts the omission. It also counts records with volumes for results by deal size and records with a negotiation or move date for results by month. Replay scores only what the record shows. Where the record cannot show what your counterpart would have done, replay leaves that decision unscored.

Where your records are processed

Your records are processed on a machine you control, or on one we send you. Only the report leaves it unless you choose otherwise.

Download the templates

Talk to us about a shadow trial