> ## 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.

# File Templates

> Upload documents and presentations as reusable templates. Anyone in your workspace can then use them to generate new files in the same format and style.

File templates let you save existing documents or slide decks and reuse them as the starting point for new AI-generated files. When you start a new document or presentation in chat, you can pick a template. Langdock will generate the new file matching its format and style.

## Supported formats

Templates can be uploaded in the following formats:

| File type     | Extensions               |
| ------------- | ------------------------ |
| Presentations | `.pptx`, `.ppt`, `.potx` |
| Documents     | `.docx`, `.dotx`         |
| PDFs          | `.pdf`                   |

Maximum file size: **100 MB**

## Browsing and using templates

### Opening the template gallery

From the [Library](/en/using-langdock/library/introduction), click **All templates** in the Create New section to open the template gallery. You can also access templates directly when starting a new file in chat. Each mode (Document, Slides) shows a **Use a Template** section.

<img src="https://mintcdn.com/langdock-34/mFNF0swESRPOR6a7/images/library/template-overview-en.png?fit=max&auto=format&n=mFNF0swESRPOR6a7&q=85&s=cc395d43e2fac44cff755c9c354574f8" alt="The template gallery showing a grid of templates with filter and sort options" style={{borderRadius: '6px'}} width="1508" height="710" data-path="images/library/template-overview-en.png" />

### Filtering and sorting

The gallery lets you narrow down templates by:

* **Type**: All types, Presentation, or Document
* **Ownership**: All templates, only yours, or shared with you
* **Sort**: Newest, A–Z, or most used

### Previewing a template

Click any template card to open a full-screen preview with a carousel of all pages. From the preview you can see the layout and content before committing to it.

<img src="https://mintcdn.com/langdock-34/mFNF0swESRPOR6a7/images/library/template-preview-en.png?fit=max&auto=format&n=mFNF0swESRPOR6a7&q=85&s=d03deb006c0650f9b6b283353a57f7de" alt="Full-screen template preview showing a slide carousel" style={{borderRadius: '6px'}} width="2320" height="1694" data-path="images/library/template-preview-en.png" />

### Using a template

Click **Use Template** in the preview to open a new chat with the template already attached. Langdock will use the template's format and style when generating your file.

<img src="https://mintcdn.com/langdock-34/mFNF0swESRPOR6a7/images/library/use-template-en.png?fit=max&auto=format&n=mFNF0swESRPOR6a7&q=85&s=4b5ef9905bb8e18a386c24a82a61cbe1" alt="Chat mode with a template selected, showing the template name attached" style={{borderRadius: '6px'}} width="1496" height="1194" data-path="images/library/use-template-en.png" />

## Uploading a template

<Steps>
  <Step title="Open the template gallery">
    In the Library, click **All templates** to open the gallery, then click the **+** button (Add template). You can also drag and drop a file directly onto the gallery dialog.
  </Step>

  <Step title="Upload your file">
    You have two ways to provide the file:

    * **From your computer**: select a file directly. Supported formats: `.pptx`, `.ppt`, `.potx`, `.docx`, `.dotx`, `.pdf` (max 100 MB).
    * **From a connected integration**: import from Google Drive, OneDrive, or another connected source using the integration picker in the upload dialog.
  </Step>

  <Step title="Wait for analysis">
    Langdock analyzes the file to extract a suggested name and description. This takes a moment. You'll see a progress indicator while it runs.
  </Step>

  <Step title="Review and save">
    Check the extracted name and instructions, edit them if needed, and click **Save**. The template is now available in the gallery for you and anyone you share it with.
  </Step>
</Steps>

<img src="https://mintcdn.com/langdock-34/mFNF0swESRPOR6a7/images/library/upload-template-en.png?fit=max&auto=format&n=mFNF0swESRPOR6a7&q=85&s=eb3c7bd3e7ad2dbb5865b850f81817d7" alt="The upload review step showing extracted template name and instructions fields" style={{borderRadius: '6px'}} width="1344" height="1072" data-path="images/library/upload-template-en.png" />

## Managing templates

Each template card has a context menu with the following actions:

| Action   | What it does                              |
| -------- | ----------------------------------------- |
| Edit     | Change the template name and instructions |
| Share    | Share with specific users or groups       |
| Download | Download the original file                |
| Delete   | Remove the template permanently           |

## Sharing templates

You can share a template with individual users or groups in your workspace. Open the share dialog from the template card's context menu, search for users or groups, and confirm.

<div style={{display: 'flex', justifyContent: 'center'}}>
  <img src="https://mintcdn.com/langdock-34/mFNF0swESRPOR6a7/images/library/share-template-en.png?fit=max&auto=format&n=mFNF0swESRPOR6a7&q=85&s=f360ddc2ccfbb2bfd75161d992d9bc6e" alt="Template share dialog showing user and group search" style={{borderRadius: '6px', width: '60%'}} width="1296" height="1014" data-path="images/library/share-template-en.png" />
</div>

Template sharing follows the same permission model as Skills. There are two permissions in workspace roles that control what users can do:

* **Share with users and groups**: Enabled for everyone by default. Any user can share a template with specific people or groups.
* **Promote to workspace**: Admin-only by default. Only admins can make a template available to the entire workspace.

You can adjust these defaults in [User Management → Roles](https://app.langdock.com/settings/workspace/user-management/roles).

## Admin: enabling templates

Templates are built on top of Skills and require Skills to be enabled in your workspace. When Skills are disabled, templates will not appear in the Library or in chat.

By default, any user can share a template with specific users or groups, but only admins can promote a template to the entire workspace. You can adjust both defaults under [User Management → Roles](https://app.langdock.com/settings/workspace/user-management/roles).

<Info>
  Go to **Settings → Workspace** to manage Skills availability for your workspace.
</Info>
