> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aifano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cookbooks

> Step-by-step guides for common document processing workflows with Aifano.

## Overview

Cookbooks are practical, end-to-end examples that show how to solve real-world document processing tasks with the Aifano API. Each cookbook includes complete code samples you can copy and adapt.

## Available Cookbooks

<CardGroup cols={2}>
  <Card title="Invoice Processing" icon="file-invoice-dollar" href="/cookbooks/invoice-processing">
    Extract line items, totals, vendor details, and payment terms from invoices. Includes batch processing for multiple invoices.
  </Card>

  <Card title="Contract Analysis" icon="file-contract" href="/cookbooks/contract-analysis">
    Parse contracts, extract key clauses, dates, and parties. Split multi-section agreements into individual components.
  </Card>

  <Card title="Multi-Document Pipelines" icon="diagram-project" href="/cookbooks/multi-document-pipelines">
    Build end-to-end pipelines that split, parse, and extract data from bundled document packages.
  </Card>
</CardGroup>

## What You'll Learn

Each cookbook covers:

* **Problem definition** — What document processing challenge we're solving
* **API setup** — Authentication and configuration
* **Step-by-step implementation** — Complete code in Python, JavaScript, and cURL
* **Output handling** — How to process and use the structured results
* **Production tips** — Error handling, async processing, and optimization

## Prerequisites

Before starting any cookbook, make sure you have:

1. An Aifano API key ([get one here](/documentation/authentication))
2. A basic understanding of the [Parse](/documentation/parse) and [Extract](/documentation/extract) endpoints
3. Python 3.8+ or Node.js 18+ installed

## Suggest a Cookbook

Have a use case you'd like to see covered? Email us at [support@aifano.com](mailto:support@aifano.com) with your suggestion.
