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

# Cookbooks

- [Discovering document types](https://docs.uptiq.ai/document-ai/cookbooks/discovering-document-types.md): Read the registry at build time instead of hardcoding type names.
- [Extract asynchronously and poll](https://docs.uptiq.ai/document-ai/cookbooks/async-extraction-and-polling.md): Submit without holding a connection open, then collect the result.
- [Extract many documents at once](https://docs.uptiq.ai/document-ai/cookbooks/bulk-extraction.md): Submit a batch and retrieve it as a group.
- [Build an event-driven pipeline](https://docs.uptiq.ai/document-ai/cookbooks/event-driven-pipeline.md): Be told when work finishes instead of asking.
- [Choosing a model](https://docs.uptiq.ai/document-ai/cookbooks/choosing-a-model.md): Pick between the five models, and know when it matters.
- [Classify, then extract](https://docs.uptiq.ai/document-ai/cookbooks/classify-then-extract.md): Handle documents that arrive without a reliable label.
- [Reading fraud and control checks](https://docs.uptiq.ai/document-ai/cookbooks/fraud-and-control-checks.md): Gate downstream work on the document's integrity signals.
- [Process a loan application packet](https://docs.uptiq.ai/document-ai/cookbooks/loan-application-intake.md): Split a mixed packet into typed, extracted records.
- [Spread a set of financials](https://docs.uptiq.ai/document-ai/cookbooks/financial-spreading.md): Map extracted line items onto your chart of accounts.
- [Verify an identity document](https://docs.uptiq.ai/document-ai/cookbooks/identity-verification.md): Extract ID documents and act on what comes back.
- [Generate a document](https://docs.uptiq.ai/document-ai/cookbooks/generate-a-document.md): Produce a finished document from structured input.
- [Document AI](https://docs.uptiq.ai/document-ai/cookbooks/readme.md): Document AI supports 155 document types across lending, wealth, investment, and tax workflows.


---

# 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.uptiq.ai/document-ai/cookbooks.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.
