Add a tracked prompt
add_promptTrack a new prompt on a site. Returns the tracked prompt's queryId and stored text (the id archive_prompt and generate_brief take); a prompt that is already tracked returns that prompt's queryId with alreadyTracked: true, and no second row. Subject to the plan's account-wide tracked-prompt quota — refusals name the reason. When this month's room for automatic checks is used, the prompt is still tracked and automaticChecksFrom says the day its automatic checks start (it can be checked on demand before then). A reworded question is a different measurement, so a prompt is never edited: with replacesQueryId (a tracked prompt's queryId on the same site) the new prompt REPLACES it — in one transaction the new one is tracked under the same quota rules and the old one is archived (its history stays) and linked, and the result carries replacesQueryId. Replacing frees the old prompt's quota slot in the same transaction, so it is accepted at a full quota; but the old prompt keeps its active slot for the rest of the period, so at a full active pool the replacement's automatic checks start next period and the result's automaticChecksFrom says so (it can be checked on demand before then). A replacement is refused, changing nothing, with unknown-query (not a tracked prompt of this site), same-question (the new text is the old prompt's), already-tracked (the new text is already tracked; its queryId is returned) or a quota reason.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The prompt to track (≤300 chars). | |
| siteId | No | Optional on a connected app: the site chosen with select_site is used. If given, it must be that site. With an API key it is required: a site id from list_sites. | |
| replacesQueryId | No | Optional: the queryId of the tracked prompt this one replaces (it is archived, its history kept). |