Prompts

Learn how to create, edit, and manage prompt templates in FetchPrompt.

Prompts

A prompt is a named text template stored in FetchPrompt. Each prompt has a unique slug, supports {{variable}} placeholders, and maintains a full version history. Prompts are scoped to an organization and environment.

Creating a prompt

  1. Navigate to the Prompts page from the sidebar.
  2. Click Create Prompt.
  3. Enter a name (up to 100 characters).
  4. Select the target environment (Stage or Production).
  5. Click Create.

Slugs

When you create a prompt, a slug is automatically generated from the name. The slug is a URL-friendly identifier used in API calls.

NameGenerated Slug
Customer Support Botcustomer-support-bot
Email Subject Line Generatoremail-subject-line-generator
Code Review Promptcode-review-prompt

Slugs follow these rules:

  • Lowercase letters, numbers, and hyphens only
  • No leading or trailing hyphens
  • Maximum 80 characters
  • Must match the pattern ^[a-z0-9]+(-[a-z0-9]+)*$

Slugs are unique per organization per environment. You can have a customer-support-bot prompt in both Stage and Production — they are independent prompts with separate content and version histories.

Editing a prompt

Click on any prompt from the list to open the prompt editor. The editor provides:

  • A plain-text textarea with a monospace font for writing prompt content (up to 100,000 characters).
  • Variable detection — any {{variable_name}} patterns are automatically detected and displayed as badges below the editor.
  • Token count — a live estimate of the token count using the GPT-4o tokenizer.
  • Version badge — shows the current version number (e.g., v3).
  • Slug display — shows the prompt's slug for easy reference when building API calls.

Saving

Click Save to persist your changes. Every save:

  1. Increments the version number.
  2. Creates an immutable snapshot of the content.
  3. Computes a SHA-256 hash of the content for integrity verification.
  4. Writes an entry to the audit log.

The save button is disabled when there are no unsaved changes.

Prompt list

The Prompts page displays all prompts for the current organization and environment. For each prompt, you'll see:

  • Name and slug
  • Current version number
  • API calls (7 days) — aggregated usage from the last 7 days
  • Last updated timestamp

Use the environment switcher at the top to toggle between Stage and Production prompts.

Copying the API endpoint

From the prompt editor, click the Copy API Endpoint button to copy the full fetch URL to your clipboard:

https://www.fetchprompt.com/api/v1/prompts/customer-support-bot

Deleting a prompt

  1. Open the prompt in the editor.
  2. Click the delete action.
  3. Confirm the deletion.

Deleting a prompt permanently removes it along with all its snapshots and version history. This action cannot be undone. The deletion is recorded in the audit log.

Limits

LimitValue
Maximum prompt name length100 characters
Maximum prompt content length100,000 characters
Maximum slug length80 characters
Prompts per organizationUnlimited (free tier)