Import prompts
- Open a project and go to Prompts.
- Open Manage Prompts.
- Click Import Prompts.
- Paste prompts into the import box, drop a file onto it, or click Choose file.
- Click Review prompts.
- Check the wording, then choose the topic that should receive all imported prompts.
- Click Import prompts.
An import includes the first 50 prompts in source order. If the source contains more, OpenLens shows a notice and leaves the remaining prompts out of that import.
JSON
Use an object with aprompts array. Each array item must contain prompt. The other fields are optional.
JSONL
Use one JSON object per line. Do not wrap the objects in an array and do not add commas between lines.CSV
Useprompt as the required column. topic, language, and attributes are optional. Separate multiple attributes with semicolons inside the attributes cell.
Field reference
Topic matching ignores capitalization and surrounding spaces. OpenLens does not create new topics during import. An import targets one topic: when you start from a selected topic, OpenLens applies it automatically; otherwise, choose one topic above the preview to apply it to every imported prompt. If a file contains multiple topic names, the topic selected in the preview takes precedence.
Only attributes already available in the project are kept. You can manage the available values before importing from Manage attributes. See Prompt attributes.
Other content
You can also paste unstructured content or upload.txt and .md files. OpenLens identifies the prompt records, separates them from surrounding presentation or metadata, and presents the result for review.
Always check the preview before importing. Rows that already exist under the same topic are marked Already exists and left unselected.