Skip to main content
Import up to 50 prompts at once from Manage Prompts. Paste content into the import box, drag a file onto it, or choose a file from your computer. OpenLens structures the input and shows an editable review before anything is saved.

Import prompts

  1. Open a project and go to Prompts.
  2. Open Manage Prompts.
  3. Click Import Prompts.
  4. Paste prompts into the import box, drop a file onto it, or click Choose file.
  5. Click Review prompts.
  6. Check the wording, then choose the topic that should receive all imported prompts.
  7. Click Import prompts.
JSON, JSONL, and CSV that match the formats below are parsed directly. Markdown, TXT, and other pasted content are structured before the review step. Prompt wording remains editable in the review.
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 a prompts 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

Use prompt as the required column. topic, language, and attributes are optional. Separate multiple attributes with semicolons inside the attributes cell.
Quote a CSV cell when it contains a comma, line break, or quotation mark. Represent a quotation mark inside a quoted cell with two quotation marks.

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.