> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langdock.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Library

> Save, organize, and share your best prompts with the prompt library. Use variables for flexible templates and collaborate with your team.

# Prompt Library

The prompt library lets you save prompts you want to reuse, organize them in folders, and share them with your team. All saved prompts can be used in any chat or with agents.

## Adding Prompts

### From a chat

Hover over any message you've written and click the **+** icon to save it to your library. You'll choose a folder and give it a name.

<img src="https://mintcdn.com/langdock-34/xbzAyg08zXujRLuD/images/prompt-library-1.png?fit=max&auto=format&n=xbzAyg08zXujRLuD&q=85&s=5990f7333352635d24e8c7d99be9ff78" alt="Save the prompt to the prompt library by pressing the little plus icon" width="1369" height="623" data-path="images/prompt-library-1.png" />

### From the library

Go to the prompt library and click **Add Prompt** in the upper right corner. Enter the prompt's name, the text, and choose where to save it.

<img src="https://mintcdn.com/langdock-34/xbzAyg08zXujRLuD/images/prompt-library-2.png?fit=max&auto=format&n=xbzAyg08zXujRLuD&q=85&s=b3f298c18f0fb48b08700ed078533d19" alt="Manually Add prompt in the library through the &#x22;Add Prompt&#x22; button" width="1423" height="957" data-path="images/prompt-library-2.png" />

## Using Variables

Add variables to make prompts flexible using `{{ }}` with your variable name between the brackets. When you or someone else uses the prompt, they'll be asked to fill in values for each variable.

Example: `Write a {{ tone }} email to {{ recipient }} about {{ topic }}`

You can also click the variable button in the bottom left corner when editing a prompt.

## Using Prompts in Chat

**Click to start**: Click any prompt in the library to open a new chat with it loaded in the input field.

**Use @ in chat**: Type `@` in any chat to open the context menu. Select the "Prompts" category or start typing to filter and find your prompt.

<img src="https://mintcdn.com/langdock-34/xbzAyg08zXujRLuD/images/prompt-library-3.png?fit=max&auto=format&n=xbzAyg08zXujRLuD&q=85&s=5746bbc2c4ff81c8c080c318e1e95341" alt="Filling out variables in chat" width="1800" height="1583" data-path="images/prompt-library-3.png" />

<img src="https://mintcdn.com/langdock-34/xbzAyg08zXujRLuD/images/prompt-library-4.png?fit=max&auto=format&n=xbzAyg08zXujRLuD&q=85&s=02369eb6e30b91b4c9a4b5e8c6a4dc7a" alt="Select a saved prompt via the &#x22;@&#x22; in the chat" width="1788" height="784" data-path="images/prompt-library-4.png" />

## Organizing with Folders

Folders help you organize prompts by project, team, or topic.

### Creating folders

1. Go to the prompt library
2. Click **New Folder**
3. Name the folder and set sharing options

### Folder sharing options

When creating or editing a folder, you can:

* **Keep it private** - Only you can see the folder and its prompts
* **Share with workspace** - Everyone in your workspace can access the folder
* **Share with a group** - Only members of a specific group can access the folder

## Sharing Individual Prompts

You can also share individual prompts with your entire workspace without putting them in a shared folder. When saving or editing a prompt, toggle the workspace sharing option to make it visible to everyone.

<Tip>
  You can combine agents with prompts from the library. If you have an agent that follows a series of steps, save those steps as prompts in the library and execute them one by one in the agent chat.
</Tip>
