> ## 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

* [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)
* [Set up a Process skill](/vantage/documentation/skill-designer/process/set-up)
