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

# Generate - Document Generation

> Automatically create a document from a template, populated with flow data

## Overview

The Generate step creates a document from a template, using data collected earlier in the flow.

## Use When

* You need the flow to produce a document automatically (a contract, an agreement) rather than have someone draft it manually

## Configuration

* **Select template** — choose a template and, optionally, a specific **Template version**; click **Add template** to generate from more than one template in the same step
* **Split documents** — toggle; generates a separate document for each selected template instead of combining them
* **Results** — **Result Type** (e.g. Word) and **Document name** (supports inserting flow variables)

<Tip>
  The exact template-authoring syntax (how a template's placeholders reference flow data) wasn't independently confirmed in this pass — treat the old doc's `{{fieldName}}`-style examples as unverified rather than a confirmed spec. What is confirmed is the step's own configuration: template selection, split-documents, and the result type/name.
</Tip>

## Related Components

<CardGroup cols={2}>
  <Card title="Intake" icon="inbox-in" href="/features/flows/intake">
    Use collected data in generated documents
  </Card>

  <Card title="Agent" icon="robot" href="/features/flows/agent-step">
    Use agent output in generated documents
  </Card>

  <Card title="Sign" icon="signature" href="/features/flows/sign">
    Send the generated document for signature
  </Card>

  <Card title="Negotiate" icon="handshake" href="/features/flows/negotiate-step">
    Review the generated document
  </Card>
</CardGroup>
