# Content Library

### **Creating a Content Block**

1. Navigate to **Content Library** from the dashboard.
2. Click on **Create Content Block**.
3. Select your preferred content block type. You can upload a Word document or create an Online Builder template. These content blocks can include merge tokens in it.
4. Set a unique **Key Name**. This will be used to reference the content block in your templates.

{% hint style="warning" %}
The **Key Name** can only be set when creating the content block and cannot be changed later.
{% endhint %}

### **Refer the Content Block in Templates**

* In any template, use the following syntax to embed the content: **`{{content_block "your_key_name"}}`**&#x20;
* At the time of document generation, the content from the referenced content block will be included inline.

### Example Use Case

Let’s say you often include the same Terms and Conditions section in your Quotes and Proposals

* You can save that as a content block in the Content Library and set a unique Key Name (e.g., **tnc**) to reuse it across templates.

<figure><img src="https://191679573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDwD-wIOendMUiQ8uVr%2Fuploads%2FdG0yLLWCYwupEH4LbSIf%2Ftnc.png?alt=media&#x26;token=b6829b49-c726-412e-89cb-4fa9cb36ed08" alt="" width="563"><figcaption><p>Creating a Content Block</p></figcaption></figure>

* To include this content block in your templates, use the following syntax:

  &#x20;**`{{content_block "tnc"}}`**&#x20;

<figure><img src="https://191679573-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LDwD-wIOendMUiQ8uVr%2Fuploads%2FGgSmXUSTbltgtZF2w9VK%2Ftnc%20word.png?alt=media&#x26;token=ba82d8ec-acd0-44f9-a1e1-013c7331f5ea" alt="" width="563"><figcaption><p>Referring the content block in templates</p></figcaption></figure>

* Any updates to "Terms and conditions" in the Content Library will automatically reflect across all templates where it’s used—without having the need to edit each template individually.

### Supported Actions on Content Block

* **View linked templates:** Click the chevron (**>**) before to the content block name to view the list of linked templates.
* **Copy:** Duplicate a content block with a different Key Name.
* **Share:** Share access to a content block with Members in the same workspace.
* **Edit:** Allows to edit the Name and Description of the content block.
* **Delete:** Deletes the content block permanently.&#x20;

{% hint style="warning" %}
You can only delete a content block if it is not used in any templates.
{% endhint %}

### Supported Template Types

This feature is supported for:

* Online Builder Templates
* Word (DOCX) Templates

> Note: Content blocks can only be inserted in Templates. A Content block cannot be inserted in another Content block

### When to Use the Content Library

Content Library is useful when:

* There's recurring content across templates (e.g., legal disclaimers or product descriptions).
* You want to manage and update shared content in one place.


---

# 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://help.docupilot.app/content-library.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.
