> For the complete documentation index, see [llms.txt](https://agpt.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agpt.co/docs/platform/using-the-platform/templates.md).

# Templates

## Overview

Templates save a completed task's inputs and selected credential references so you can start another task with the same configuration.

## Creating a Template

Templates are created from previously completed tasks:

1. Go to your [Agent Library](/docs/platform/using-the-platform/agent-library.md) and open the agent
2. Find a completed task in the left-hand pane whose inputs you want to reuse
3. Click the **three dots** (⋯) on the task
4. Select **Save as Template**
5. Give the template a **name** and **description**
6. Click **Save**

The template stores the task's input values, selected credential references, graph ID, and graph version. It does not copy credential secrets.

## Using a Template

To run an agent using a saved template:

1. Open the agent from your library
2. Switch to the **Templates** tab on the left-hand side
3. Click the template you want to use
4. Review or edit its saved inputs and credential selections
5. Select **Start task from template**

## Managing Templates

Templates are listed under the **Templates** tab on your agent's detail page. The tab shows the count of available templates (e.g., `Templates 3`).

## When to Use Templates

Templates are particularly useful for:

* **Recurring tasks**: When you run an agent regularly with the same inputs (e.g., a daily SEO report for the same keyword)
* **Standard configurations**: When you've found input settings that work well and want to reuse them
* **Quick re-runs**: When you want to repeat a successful task without re-entering all the inputs

{% hint style="info" %}
A template is pinned to the agent graph version from which it was created. Later agent edits do not automatically update the template to a newer graph version.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://agpt.co/docs/platform/using-the-platform/templates.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
