# Create a snippet

Snippets are essentially "shortcuts" for text or code. They are small pieces of reusable content that you can quickly insert into a document, chat, or code editor using a brief trigger word or a keyboard shortcut.

Think of a snippet as a digital stamp: instead of writing the same thing over and over, you press a button and the full text appears instantly.

### Where Snippets are Used:

* Programming: Developers use snippets for common blocks of code (like a loop or a database connection) so they don't have to type every character manually.
* Customer Support: Teams use them to send "Canned Responses" (standardized answers to frequently asked questions).
* Email & Productivity: You can create snippets for your professional signature, meeting links, or standard introduction paragraphs.
* SEO (Search Snippets): In Google search results, a "snippet" is the short description of a website that tells you what the page is about before you click.

### How do I edit a Snippet?

The page and editing mode are exactly the same as the prompt; if you haven't checked it yet, please go back a few steps.

{% hint style="info" %}
Start by creating a snippet for your email address or your Zoom link. It’s a small change that saves hours of typing over a year.
{% endhint %}

Now that you know about snippet, we can move on to document.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.snackprompt.com/how-to/snippet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
