# Getting started

## Step 1. Create a template

The template consists of a form, which may be filled out by the end user, and text content. The content contains placeholders that are filled with the data of the form. More advanced functions can be used, like expressions and formatting.

{% content-ref url="templates" %}
[templates](https://docs.fillthedoc.com/templates)
{% endcontent-ref %}

## Step 2. Create a document

Use the API to create a new document based on a template. Send some initial data and allow the end user to fill out the rest. You may specify a callback URL to let your system know that the user is done.

{% content-ref url="api/document-api" %}
[document-api](https://docs.fillthedoc.com/api/document-api)
{% endcontent-ref %}

## Step 3. Download the document and user data

Once the user has filled out the form, use the API to generate a PDF and fetch the data so it can be processed.


---

# 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.fillthedoc.com/master.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.
