Skip to main content

Views

A view is a named subset of a product’s prompts. Analytics commands take --view to report on that subset. Pass --scope <org-slug>/<product-slug> to select the product. The CLI does not save an active view.
get, add-prompts, and remove-prompts take a view ID or the exact view name (case-insensitive). If two views share a name, the CLI lists their IDs and asks you to pick one.

Create a view

Add and remove prompts

--prompt-id is required and can be repeated or comma-separated. Find prompt IDs with tpc prompts list. A prompt runs once per answer engine and persona. The dashboard calls each run a conversation query, and views hold those runs. Adding a prompt adds all of its runs. Removing a prompt removes all of its runs from the view but does not delete the prompt. create and add-prompts fail before changing anything if a prompt ID isn’t in the product in --scope or has no runs. When adding prompts, runs already in the view are skipped. remove-prompts also removes runs of archived prompts that are still in the view.

JSON output

Pass --format json for machine-readable output. create prints the new view. add-prompts and remove-prompts print: