Snippet

The Snippet functionality allows users to create, manage, and utilize reusable pieces of text or templates, streamlining workflows and ensuring consistency across prompts.

Snippet UI


Overview

Snippets are pre-defined text blocks that can be quickly inserted into the Prompt Editor. They are ideal for repetitive tasks, maintaining uniformity, and reducing typing effort.


Features

Snippet Creation

To create a snippet:

  1. Navigate to the Snippet Page.
  2. Click on the + Add Snippet button.
  3. Provide the following details:
    • Shortcut: A unique keyword to trigger the snippet.
    • Content: The reusable text or template.
  4. Save the snippet for future use.

Snippet Management

On the Snippet Page, you can:

Using Snippets

In the Prompt Editor, snippets are automatically suggested as you type. When the typed word matches a snippet’s shortcut:


Benefits


Example Workflow

  1. Create a Snippet: Define a snippet with the shortcut greeting and content Hello, how can I assist you today?.
  2. Use the Snippet: In the Prompt Editor, type greeting. The snippet suggestion appears, allowing you to insert the predefined text instantly.

Return to Prompt Editor to learn about integrating snippets into your prompts.