> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/getting-started/defining-a-model.md).

# Defining a Model

## From a Model Template

Chances are, there is already a model template that at least partly fits your needs.

Click on Catalog to check the model templates, and when clicking on one of them, you'll create a new model based on the template.

You now have your own model, you can start testing it immediately.

If you need to make adjustments, use the "Data Schema" tab as explained in more detail in: [Models Overview](/models/models-overview.md#modifying-your-data-schema).

For instance, here is a demo of how to create a model from the Invoice model template:

{% @supademo/embed url="<https://app.supademo.com/demo/cmieehzyjar67b7b4lf5tgvrb>" demoId="cmieehzyjar67b7b4lf5tgvrb" %}

## From Scratch

If you don't find something that matches your needs in the catalog, you also have the possibility to click on **Create Custom Model.**\
\
You'll have two possibilities :

* upload a sample document
* write the document type

Our AI Agent will then create a custom model for you.\
\
You now have a model with a **custom** schema that you can modify, using the "Data Schema" tab as explained in more detail in: [Models Overview](/models/models-overview.md#modifying-your-data-schema).\
\
Here is a tutorial that shows how to create a custom model by filling in the document type and by uploading a sample doc.

{% @supademo/embed url="<https://app.supademo.com/demo/cmiem2hsob2x5b7b4ye1il6a8>" demoId="cmiem2hsob2x5b7b4ye1il6a8" %}


---

# 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://docs.mindee.com/getting-started/defining-a-model.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.
