Skip to main content

Prompts

Manage a product’s tracked prompts, the topics that group them, generated prompt suggestions, and plugin discovery prompts, and read factual accuracy results. Pass --scope <org-slug>/<product-slug> to select the product.

Tracked prompts

A tracked prompt runs on each of its answer engines on a schedule, and its answers count toward share of voice.

List and get prompts

list prints each prompt’s ID, message, category, and creation date, 20 per page by default (--page-size up to 100). Archived prompts are not listed. Filter with these flags: get prints one prompt’s message, category, keywords, topic ID, the engines it runs on (ENGINES), its paused engines (PAUSED ENGINES), and its dates. With --format json, get, list, create, and update return the engines as answerEngines and pausedAnswerEngines.

Create a prompt

The prompt is tracked right away: TPC creates one conversation query per answer engine, so the prompt appears in share of voice.

Update a prompt

Only the flags you pass change. --message cannot be empty, --category "" clears the category, --keyword replaces the whole keyword list, and --topic-id "" unlinks the topic. To change engines, see Add and remove answer engines and Pause and resume answer engines.

Assign a prompt to a topic

--topic-id is required. Find topic IDs with tpc prompts topics list and prompt IDs with tpc prompts list.

Add and remove answer engines

Adding an engine starts tracking the prompt on it. An engine the prompt already runs on is kept, and adding a paused engine resumes it with its history. Removing an engine stops tracking the prompt on it and archives that engine’s conversation query. A prompt must keep at least one engine. Both flags are repeatable.

Pause and resume answer engines

Pausing an engine stops scheduled runs on it for that prompt and hides it from every dashboard (share of voice, citations, answers) as if you had removed it. Nothing is deleted. Resuming brings the engine back with its full history and schedules it again. The prompt must run on each engine you name. Both flags are repeatable. An engine can appear in only one of --add-engine, --remove-engine, --pause-engine and --resume-engine.

Archive a prompt

prompts delete archives a prompt: it disappears from lists, its history is kept, and the archive can be undone. Prompts with active runs need --force, and their runs stop while archived. The CLI cannot permanently delete prompts.

Deactivate and reactivate prompts in bulk

prompts deactivate stops scheduled runs for the prompts you name and keeps their history in share-of-voice and citation charts; unlike delete, the prompts stay in the list. prompts reactivate schedules them again. Name prompts with repeated --id, repeated --message (an exact, case-sensitive match after trimming spaces), or --file with a CSV. The CSV needs an id (or prompt_id) column or a prompt (or message) column; a row with an ID uses the ID, so the CSV from the Prompts page export works as is. --engine limits the change to those engines. An answer_engine or engine column in the CSV does the same per row, with values such as chatgpt, gemini; a row with an empty cell uses --engine, and a cell of only separators is an error. A row whose field count differs from the header (usually an unquoted comma) fails the command with its line number. The export’s model column is ignored. Rows are sent in one request per engine set, with at most 2000 prompts per request. The output lists how many prompts matched, how many conversation queries changed, and each ID or message that matched no prompt. --format json returns updated, matchedPromptIds, and unmatched.

Topics

Topics group related prompts for share of voice and analysis.
list prints each topic’s ID, name, prompt count, and creation date. get lists the prompts assigned to a topic with their engines. Both page with --page and --page-size (default 20, maximum 100). create and update take a required --name, and a product cannot have two topics with the same name. delete fails while prompts are still assigned to the topic: move them with tpc prompts assign or archive them first.

Topic competitive status

--status switches prompts topics list from a plain list to each topic’s competitive standing, the same data as the Industry Rankings card.
Each row shows the leader, the leader’s share of voice, your rank, and your share of voice. The API filters and pages the topics, so --page and --page-size (max 100) page through the matching topics only. The header counts always cover every topic. Status covers a trailing 30-day window ending today (UTC). --as-of <YYYY-MM-DD> ends the window on an earlier date and cannot be in the future. The window is printed with the results and included in --json output. --view (a view ID or exact view name), --model, --region, --as-of, and --json work only with --status. --status reads analytics data, so an API key needs the analytics:read scope as well as prompts:read.

Suggestions

Suggestions are generated candidates. Approving one creates a tracked prompt and starts conversation queries against the selected answer engines.

List suggestions

Text output shows each suggestion’s ID, message, topic, engines, and persona. Omitting --view returns the unscoped product library.

Generate suggestions

Each run adds a new batch for the selected product or topic and keeps the suggestions already waiting. Without --count, a run adds a small batch per topic. With --count, it adds that many, split evenly across the product’s topics, or all into --topic-id. Each suggestion is assigned one of the product’s personas. The product must have context available. The most --count allows in one run depends on your plan: A count above your plan’s limit is refused with the limit in the error. For more suggestions than one run allows, run the command again: each run adds to the suggestions already waiting. Generation runs as a background job on the server. The default batch takes one to three minutes; a large --count takes longer (about eight minutes for 110). The command waits for the job, then prints how many suggestions were added. --no-wait prints the job id and returns at once; --timeout (default 20m) and --interval (default 3s, minimum 1s) control the wait. When --timeout runs out, the command fails but the job keeps running on the server. Only one generation runs per product at a time, so starting another while one runs waits for that one. New suggestions are checked for duplicates against tracked prompts, the suggestions already waiting, and suggestions rejected in the last 30 days.

Import Radar prompts

Adds the suggested prompts from the product’s Radar topics to the library, skipping prompts that are already tracked or suggested. Importing creates suggestions only; approve them to start tracking. See Radar to list the topics first.

Update a suggestion

At least one of --message, --engine, or --persona-id is required. --engine replaces the suggestion’s engines, and --persona-id "" clears its persona. These values are used when the suggestion is approved.

Approve suggestions

Approval creates tracked prompts and conversation queries immediately. --engine and --persona-id override the values stored on every suggestion you approve. Adding prompts may change future Share of Voice results. Product-level Share of Voice weights a prompt by how many engines it runs on. Confirm with --yes (-y), or type yes at the prompt.

Reject suggestions

Rejected suggestions are removed from the library. --feedback records why.

Plugin discovery prompts

Manage the prompts in a product’s plugin discovery lane. These prompts measure which plugins ChatGPT, Muse and Grok suggest and are separate from the product’s tracked prompts. The lane needs an Enterprise plan.
list shows one page of prompts with each prompt’s ID, type, message, runs, suggested runs, and last run, then Page X of Y (N prompts). It takes --page (default 1), --page-size (default 25, maximum 200), --search (case-insensitive text in the message), --filter (all, suggested, not_suggested or not_run), --sort (created_desc, suggested_desc or suggested_asc) and --engine (chatgpt, muse or grok; default chatgpt). Every prompt is listed whichever engine you choose; the runs, suggested runs and last run are that assistant’s, and a prompt it has not run shows 0 runs and - for the last run. Runs counts the measured runs since you opted in: runs where TPC saved what the assistant suggested. Last run is the most recent run of any status, so a prompt can show 0 runs with a last run. For ChatGPT a suggested run is one where it recommended your plugin, for Muse one where it showed your connector’s card, and for Grok one where it offered your plugin in its picker or showed its Connect card. The server searches, filters and sorts all of the product’s prompts before it pages them, and prompts with no runs sort last in both Suggested orders. The TYPE column is own_data, job, advice or names_product for prompts loaded from the starter kit, and blank for prompts without a type. --format json returns the API data, including canEdit, total (the prompts matching the search and filter), page, pageSize and a summary of all the product’s prompts, and each prompt carries a type field that is one of those values or null. create and update take --message (up to 500 characters); creating a message that is already in the lane returns the existing prompt. create also takes an optional --type (own_data, job, advice or names_product). Any member can list. starter, create, create-bulk, update, and delete need an owner or admin role and otherwise fail with an owner or admin role is required to change plugin discovery prompts. Sign in with tpc auth login; API keys cannot use these commands. starter drafts a typed starter list for the product and saves nothing. The text output groups the drafts by type with counts and ends by saying nothing was saved. With --format json it prints {"prompts":[{"message":"Which plugin helps me track AI search visibility?","type":"advice"}]}. Generation calls a language model, so it can take up to a minute, and it is limited to 5 calls a minute. Edit the JSON to keep only the prompts you want, then save them with create-bulk --file <path> (or --file - to read standard input). create-bulk reads that object or a bare array of the same items, checks locally that every message is non-empty and up to 500 characters and every type is one of the four types, accepts at most 50 prompts, and saves them with their types. It prints how many were created and how many were skipped because the message was already in the lane; --format json returns the API response with the saved prompts.

ChatGPT plugin discovery

tpc plugin reads how often ChatGPT, Muse, and Grok suggest the product’s plugin when they answer the plugin discovery prompts above, and sets which plugin the product tracks. See Plugin discovery.

Factual accuracy

Read the factual accuracy dashboard for an organization with an active or trialing Enterprise plan. Sign in with tpc auth login; API keys and OAuth access tokens cannot use these commands.
All three commands accept --from, --to, --models, --topic (topic ID), and --view (view ID). Dates use UTC days with an inclusive end; the default is the last 30 days and the dashboard limits a range to 366 days. claims also supports --verdicts, --accuracy, --search, --sort-by, --sort-order, --page (default 1), --page-size (default 50, at most 100), and a selected --group-by plus --group-id. breakdown accepts --group-by prompt|topic|claim (default prompt) and returns at most 40 decided groups, with truncated indicating additional groups. The output is JSON in both text and JSON formats; text mode indents it, and --format csv is rejected. summary prints only the summary object. The accuracy percentage is accurate occurrences divided by accurate plus inaccurate occurrences. Undetermined and pending occurrences are counted separately and excluded from that denominator; null means there are no decided occurrences. The claims response includes the dashboard summary, claims, and pagination; claim-list filters do not change the summary, while date, model, topic, view, and selected group do. These commands read existing results and do not start verification.