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

# Set up an Extraction Rules activity

> Add an Extraction Rules activity to a flow, select fields, configure search elements, and run match-and-test cycles in Advanced Designer.

<Steps>
  <Step title="Add the activity">
    On the **Activities** tab, add an Extraction Rules activity to the document processing flow.
  </Step>

  <Step title="Select fields">
    On the **Activity Properties** pane, select the fields that should be extracted by the activity.

    All fields are selected for a new Extraction Rules activity by default.
  </Step>

  <Step title="Open Activity Editor">
    Click **Activity Editor** to open the Activity Editor.
  </Step>

  <Step title="Configure the activity">
    1. Turn on the display of pre-recognized objects on the document images.

       If desired, you can also create a separate document set for the activity and/or upload additional documents.
    2. Create and configure search elements to locate auxiliary objects and field values.
    3. Go through Extraction Rules activity debugging until you successfully extract all desired data.

       This includes compiling and matching the activity, reviewing hypotheses formulated by the activity, and adjusting the search element properties.

    <Note>
      You can also import an Extraction Rules activity as a JSON file.
    </Note>
  </Step>

  <Step title="Test the activity">
    Once the activity has been configured, click **Test Activity**.
  </Step>

  <Step title="Analyze results">
    After testing has completed, analyze the field extraction results for your activity. If required, adjust the activity and test it again.
  </Step>
</Steps>
