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

# Populate

> Fill a document template from the documents in a project. Every value is traced to its source, verified, and shown to you before it is applied.

**Populate** takes a template with blanks in it, such as a purchase deed, a power of attorney or an engagement letter, and fills the blanks from the documents already in the project. For each value it shows you where the value came from, whether the source supports it, and whether other sources disagree. Nothing is written until you have reviewed the values.

## Prepare a template

A template is a Word document (`.docx`) or an [editor](/documents/editor) document that marks its blanks in any of these ways:

| Style           | Example                                  |
| :-------------- | :--------------------------------------- |
| Double braces   | `{{buyer_full_name}}`                    |
| Square brackets | `[NOMBRE DEL COMPRADOR]`                 |
| Underscores     | `D./Dña. ____________, con NIE ________` |

You can mix styles in the same document. Placeholders are found in body text, tables, headers and footers, and they are still recognised when Word has split one across differently formatted runs of text. Numbered citation markers like `[1]` are ignored.

<Tip>
  Descriptive placeholders give better results than bare underscores. `[NIE del vendedor]` tells the agent what belongs there; `________` makes it work that out from the surrounding sentence.

  Do you have a finished document rather than a template? [Anonymize](/workflows/anonymize) turns one into the other.
</Tip>

## Run it

<Steps>
  <Step title="Put the sources in the project">
    Populate reads the documents in the project: files in the project's vault, editor documents, and documents filed from email. A run uses up to 200 sources.
  </Step>

  <Step title="Start Populate">
    Choose **Workflows → Populate** in the composer, or the **Populate** quick action on a matter, and name the template to fill.
  </Step>

  <Step title="Watch the stages">
    The workflow card shows *Populating {name}* and moves through its stages.
  </Step>
</Steps>

| Stage                   | What is happening                                                                                                                   |
| :---------------------- | :---------------------------------------------------------------------------------------------------------------------------------- |
| **Preparing sources**   | The project's documents are gathered and checked                                                                                    |
| **Waiting for sources** | Documents not yet [indexed for search](/documents/search) are being indexed                                                         |
| **Scanning template**   | Placeholders are located and the template is divided into sections                                                                  |
| **Identifying fields**  | Placeholders that mean the same thing are grouped into one field, so the buyer's name is resolved once even if it appears ten times |
| **Resolving values**    | Each field is looked up in the sources                                                                                              |
| **Verifying**           | Each value is checked against the passage it came from                                                                              |
| **Needs your input**    | The run pauses for your review                                                                                                      |
| **Applying**            | Your approved values are written into the document                                                                                  |
| **Done**                | The filled document is ready to open                                                                                                |

## Review the values

At **Needs your input** the card shows a running count, for example *"18 of 24 filled · 2 conflicts · 4 unresolved"*, and a table with a row per field: **Field**, **Value**, **Source**, **Verification** and **Status**.

### Status

| Status         | Meaning                                                           | What to do                                    |
| :------------- | :---------------------------------------------------------------- | :-------------------------------------------- |
| **Filled**     | A value was found and verified                                    | Check it against the source shown             |
| **Conflict**   | Sources disagree. The alternatives are listed with their sources. | Pick the right one, or type the correct value |
| **Unresolved** | No source contained the value                                     | Type it in, or leave it blank in the document |
| **Answered**   | You supplied the value                                            | Nothing further                               |

### Verification

Verification is a second, independent check of each value against the passage it was taken from. Difficult cases are escalated to a stronger model.

| Result           | Meaning                                                                                              |
| :--------------- | :--------------------------------------------------------------------------------------------------- |
| **Entailed**     | The source passage supports the value                                                                |
| **Contradicted** | The source passage says something different. Treat the value as wrong until you have checked it.     |
| **Insufficient** | The passage does not contain enough to confirm the value                                             |
| **Format**       | The value is supported but needed reformatting, for example a date or an amount, to fit the template |
| **Skipped**      | Verification did not apply to this field                                                             |

Each source shows its document and, where known, the page, so you can open it and check. You can answer up to 100 fields in one go. When you are satisfied, choose **Populate** to apply, or **Cancel** to stop without writing anything.

## What you get

* **From a Word template:** a new `.docx` in the project's vault. The template itself is never modified. Each filled value carries a Word comment citing its source, and the filled document is saved as a second [version](/documents/vault#versions) on top of a copy of the template, so the version history shows exactly what Populate changed.
* **From an editor template:** the values are written into the editor document, where each carries a reference to its source.

Open the result from the card with **Open document** or **Open file**.

## Populate from email

A verified member of your organization can also ask for a populate by emailing the agent. Because nobody is watching the run, it behaves differently:

* It does not pause for review. If the values are clean, it applies them and the agent replies with the result.
* It stops rather than guesses. If more than a handful of fields conflict, or too much of the source material has not been indexed yet, the run is **Blocked** and the agent asks a member to continue from the dashboard.
* Only verified members can start one. External senders are never given this ability. See [Sender rules](/inbox/sender-rules).

## Troubleshooting

<AccordionGroup>
  <Accordion title="The run sits at Waiting for sources">
    New uploads are parsed and indexed before they can be searched. Large scans take longest. The run continues by itself when indexing finishes. If a document cannot be indexed, upload it again or remove it from the project and start a new run.
  </Accordion>

  <Accordion title="Many fields are Unresolved">
    The value is probably not in the project. Check that the relevant documents are in this project's vault rather than in your private vault or another project. Scanned documents of poor quality are a common cause.
  </Accordion>

  <Accordion title="The populate could not be applied. The run is blocked">
    The template changed after it was scanned, or the run met a condition it would not guess through. Start a new run.
  </Accordion>

  <Accordion title="Who can see a run?">
    The person who started it and organization admins, and only if they still have access to the project. Run details are kept for seven days.
  </Accordion>
</AccordionGroup>
