Build an AI tennis scout that shows where every fact came from
Description and use
An AI scout that transparently cites sources for each fact about a tennis match.
Problem
Readers need a tennis scout that can transparently cite matches supporting each statement, rather than opaque prose.
Outcome
The system produces a scout card for Sinner vs Zverev at Wimbledon 2026, showing pre‑match ratings, four prior Sinner matches, no Zverev prior matches, and explicit missing‑data panels.
Workflow
- 1. Install apify-client and set APIFY_TOKEN. 2. Call flashscore‑tennis actor to retrieve target match data. 3. For each player, call tennis‑match‑history actor to fetch recent finished matches. 4. Build an evidence ledger by filtering matches that ended before the target start. 5. Pass the ledger to a language model to select the most useful entries. 6. Render the scout card deterministically, including source links and missing‑data panels.
Evidence
The source export contains five Sinner matches. One is the target final, so it cannot count as prior form. Four earlier completed matches remain. It contains no eligible prior Zverev matches.
A useful tennis scout should be able to answer a follow‑up: “Which matches support that statement?”
- Record date: 2026-10-23T12:11:17.544Z