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

# For Each Document activity

> Use the For Each Document activity to run inner activities against one transaction document at a time.

The For Each Document activity is a container that runs its inner activities against one transaction document at a time. You can place any of the following inside it:

* [Extract activity](/vantage/documentation/skill-designer/process/extract-activity)
* [Classify activity](/vantage/documentation/skill-designer/process/classify-activity)
* [OCR activity](/vantage/documentation/skill-designer/process/ocr-activity)
* [Custom activity](/vantage/documentation/skill-designer/process/custom-activity/custom-activity)
* [Condition activity](/vantage/documentation/skill-designer/process/condition-activity/condition-activity)

<Note>
  Other activity types can't be placed inside a For Each Document activity, and For Each Document activities can't be nested.
</Note>

<Frame caption="For Each Document activity containing a Condition activity and downstream Extract and Custom activities">
  <img src="https://mintcdn.com/abbyy/vsKEkGDuRLNqo_T3/images/vantage/skill-designer/screen_procskill_activity_foreach.png?fit=max&auto=format&n=vsKEkGDuRLNqo_T3&q=85&s=e94f3eee2901fd5dea4e354cdca3f952" alt="For Each Document activity in the Process skill editor" width="953" height="254" data-path="images/vantage/skill-designer/screen_procskill_activity_foreach.png" />
</Frame>

In the usual Process skill workflow, each transaction has a single collection of documents. Inside a For Each Document activity, that collection is split into one collection per document, and the container processes each in turn. In the example above, each transaction document is evaluated by the Condition activity individually and then routed to either the Extract activity or the Custom activity.

## Related topics

<CardGroup cols={3}>
  <Card title="Extract activity" icon="database" href="/vantage/documentation/skill-designer/process/extract-activity">
    Extract field values from documents using a Document skill.
  </Card>

  <Card title="Classify activity" icon="tags" href="/vantage/documentation/skill-designer/process/classify-activity">
    Identify document types and route each document to the correct downstream process.
  </Card>

  <Card title="OCR activity" icon="magnifying-glass-text" href="/vantage/documentation/skill-designer/process/ocr-activity">
    Specify pre-recognition options and run full-text recognition on documents.
  </Card>

  <Card title="Custom activity" icon="code" href="/vantage/documentation/skill-designer/process/custom-activity/custom-activity">
    Run custom JavaScript against documents during processing.
  </Card>

  <Card title="Condition activity" icon="circle-check" href="/vantage/documentation/skill-designer/process/condition-activity/condition-activity">
    Branch the workflow based on extracted values and processing state.
  </Card>

  <Card title="Set up a Process skill" icon="screwdriver-wrench" href="/vantage/documentation/skill-designer/process/set-up">
    Build a Process skill from a preset workflow or from scratch and configure each activity.
  </Card>
</CardGroup>
