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
- Navigate to the Prompts page from the sidebar.
- Click Create Prompt.
- Enter a name (up to 100 characters).
- Select the target environment (Stage or Production).
- 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.
| Name | Generated Slug |
|---|---|
| Customer Support Bot | customer-support-bot |
| Email Subject Line Generator | email-subject-line-generator |
| Code Review Prompt | code-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:
- Increments the version number.
- Creates an immutable snapshot of the content.
- Computes a SHA-256 hash of the content for integrity verification.
- 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-botDeleting a prompt
- Open the prompt in the editor.
- Click the delete action.
- 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
| Limit | Value |
|---|---|
| Maximum prompt name length | 100 characters |
| Maximum prompt content length | 100,000 characters |
| Maximum slug length | 80 characters |
| Prompts per organization | Unlimited (free tier) |