# Antifraud Check

The Antifraud Check module compares the current Session against prior Sessions and known identities to detect signs of fraud.

For an overview of this module and how it works, see [Antifraud Check](https://developer.incode.com/docs/antifraud-check).

## Supported with:

:white_check_mark: Workflows | :white_check_mark: Flows

## Add Antifraud Check to Workflows

1. In Dashboard, find **Build & Verify** in the left menu. Select **Flow Builder** > **Workflows**.
2. Click **New&#x20;**&#x6F;r select an existing Workflow.
3. From the **Processes&#x20;**&#x6C;ist, drag and drop the **Antifraud Check** module into the builder. It must come after a module from the Modules list.
4. You can click the three dots > **Edit** on the module node to open the [Configuration Options](#configuration-options) panel and adjust settings as needed.

## Add Antifraud Check to Flows

1. In Dashboard, find **Build & Verify** in the left menu. Select **Flow Builder** > **Flows**.
2. Click **New** or select an existing Flow.
3. On the **Select Modules** tab, find the **Antifraud Check** module and click **Add**.
4. You can click **Details & Configurations** to open the [Configuration Options](#configuration-options) panel and adjust settings as needed.

## Configuration Options

After making changes, click **Save Configurations** to apply them.

<Accordion title="View image of Workflow configuration panel">
  ![Image of Antifraud Check module configuration panel in Workflows. Has one configuration option.](https://files.readme.io/6437ba29bb7096d05f3f4c9bb89f5e35a5893ca4bfd47b7613cbac3af429cb0d-image.png)
</Accordion>

<Accordion title="View image of Flow configuration panel">
  ![Image of Antifraud Check module configuration panel in Flows. Has six configuration options.](https://files.readme.io/703b9641ce996a621ee380d0ac545d8f4d7093e96d52373a874a91a9feb5e67a-image.png)
</Accordion>

| Setting                                                                                                                 | Description                                                                                                                                                                                                                                                                      |
| ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **_Auto execute_**<br />_Flows only_                                                                                    | When enabled, the module runs automatically after biometric and document data are collected.                                                                                                                                                                                     |
| **_Exclude sessions with the same external customer id_**                                                               | When enabled, Sessions that share the same external customer ID are excluded from the fraud comparison.                                                                                                                                                                          |
| **_Send to manual review if the number of sessions in which the total score failed is greater than_**<br />_Flows only_ | When enabled, sends the Session to manual review if the count of Sessions where the total fraud score failed exceeds the specified threshold. Default: _3_. {/* TODO: Confirm with PM — exact behavior of "total score failed" and whether the default value of 3 is correct */} |
| **_Antifraud fails if the number of sessions in which total score failed is greater than_**<br />_Flows only_           | When enabled, causes the Antifraud Check to fail if the count of Sessions where the total fraud score failed exceeds the specified threshold. Default: _4_. {/* TODO: Confirm with PM — confirm default value of 4 and relationship to the manual review threshold above */}     |
| **_Antifraud fails if the number of attempts is greater than_**<br />_Flows only_                                       | When enabled, causes the Antifraud Check to fail if the total number of attempts exceeds the specified threshold. Default: _4_. {/* TODO: Confirm with PM — confirm default value of 4 and clarify what constitutes an "attempt" in this context */}                             |
| **_Send to manual review if the number of attempts is greater than_**<br />_Flows only_                                 | When enabled, sends the Session to manual review if the total number of attempts exceeds the specified threshold. Default: _3_. {/* TODO: Confirm with PM — confirm default value of 3 and relationship to the "fails" threshold above */}                                       |

<br />
