What you’ll build
An agent that, on everyMappingJobFinishedEvent:
- Pulls the job’s unmatched results.
- Calls
search_golden_dataset(by name) andsearch_golden_dataset_by_geo(by coordinates) per row. - Files a
MATCH_PROPOSALpending item with the top 3 candidates.
Prerequisites
- Pro Max workspace.
- At least one historical mapping job with unmatched rows.
Steps
Create the agent
Agents → New Agent. Pick the starter template “Triage unmatched rows”. It pre-fills the goal and rules.
Goal
Watch every mapping job. For each unmatched row, search the golden dataset by name and by geo, and propose the top 3 candidates as pending items.
Equivalent API call
POST /agents/{id}/rule-sets with the JSON above and POST /agents/{id}/activate.
Reviewing pending items
Each MATCH_PROPOSAL item shows:
- The unmatched partner row (name + address).
- 3 candidate reference hotels with
referenceHotelId, name, distance, and the agent’s 1-sentence reasoning. - Accept (links the result) / Reject (dismisses) buttons.
Related
- Agents overview — broader context.
- Rules and decisions — full rule schema.
- Triage mismatches to pending — the sibling recipe for mismatches.