submit_structured_records
Submit structured contest records, validate required fields, and upsert into Contests collection with deduplication by source and title.
Instructions
Submit structured contest records (following the contest-structuring-v4.0.txt schema) produced by a chatbot. Validates required fields and upserts into the Contests collection.
Deduplication key: source.name + title (same as process_raw_data). Plus an optional duplicate-title GATE (on by default): any record whose title matches an existing LIVE contest — same normalized title from a different source, or a reworded title from the same source — is SKIPPED and reported under "duplicates". The same-source exact-title match is the intended update path and still updates in place.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dedupe_gate | No | If True (default), block records that duplicate an existing live contest by normalized title. Set False to force-insert (e.g. intentional re-ingest). | |
| records_json | Yes | JSON string — either a single object or an array of structured contest objects following the v4.0 schema |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||