demo_report_datapack
Computes a weekly inbound demo report datapack by fetching and enriching deals with attribution signals, enabling LLM to focus on classification and narrative generation.
Instructions
Complete, deterministic data pack for the weekly inbound demo report (READ-ONLY).
Does in Python everything the demo skill used to hand-orchestrate: computes
the Mon–Sun target week, runs the exhaustive "Inbound - Organic" unclassified
sweep (paginated to the end), fetches in-period demo-outcome deals, and fully
enriches every deal (associations, company, contacts, notes, meetings, activity
timeline, form submissions) with pre-computed attribution signals. The LLM's
only remaining job is classification judgment + narrative.
Returns one JSON object: target/prev weeks, in_period_deals[], stale_unclassified[],
converting_urls[], plus complete and warnings so partial pulls are explicit
instead of silently improvised.
Args: week_ending: Anchor date YYYY-MM-DD; the target week is the most recent completed Mon–Sun on/before it (default: today). weeks_back: Completed weeks back to target (default: 1 = last week). max_contacts_per_deal: Cap on contacts enriched per deal (default: 3).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weeks_back | No | ||
| week_ending | No | ||
| max_contacts_per_deal | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |