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

# PEX Auto Tagger

> Create dynamic rules that auto tag transactions with PEX tags. Creating rules reduces reconciliation time and enhances reporting.

***Watch a step-by-step demonstration [here](https://pex.navattic.com/3mo0z2j)!***

<Note>
  **Note:**

  To use this app, tags must be enabled and set up on your PEX account. If your account does not include tags, please contact [adminsupport@pexcard.com](mailto:adminsupport@pexcard.com).
</Note>

## Install

To use the app:

* Log in to [http://dashboard.pexcard.com/](http://dashboard.pexcard.com/?utm_source=support)
* Navigate to [Apps > Available](https://dashboard.pexcard.com/apps/available?utm_source=support)
* Locate **Auto Tagger**.
* Click **More info** > **Install** > **Launch**.

<Note>
  **Note:**

  To install the app, you need to enable the following permissions: *Edit business settings & apps*, *View card transactions*. You can enable them in [My Profile -> Permissions](https://dashboard.pexcard.com/account/permissions?utm_source=support).
</Note>

## Create Rules

To start, click **Create Rule** on the top right.

<Frame>
  <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-252.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=5b60c900913737acddf9b4c02b65b1fe" alt="" width="1533" height="358" data-path="images/administrator-guide/image-252.avif" />
</Frame>

<Steps>
  <Step>
    Set a **name** for the rule (e.g., Fuel, see sample below).
  </Step>

  <Step>
    Select the **category** from the dropdown including Cardholder First Name, Cardholder Last Name, Cardholder Group, Merchant Category, Merchant MCC Code, Merchant Name, Transaction Any Note, Transaction Approval Status, Transaction Description, or Transaction Type.

    * Merchant categories usually include more than one merchant category code. You can add custom merchant categories under [Business Settings -> Merchant categories](https://dashboard.pexcard.com/business-settings/merchant-categories?utm_source=support).
  </Step>

  <Step>
    Specify the condition (e.g., Contains, Does Not Contain) and the value for the rule. The contents will populate based on the information in your profile. *Note: If "Ignore Capitalization" is selected, this criteria will be omitted from the rule selection.*
  </Step>

  <Step>
    Indicate the **PEX tag** and associated value that you would like to use for this rule. Note: Only active PEX tags will be populated. Tags are managed within Business settings > Tag manager.
  </Step>

  <Step>
    Select **Create**.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-253.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=353be107ac139b01e79c946ecfda2f5d" alt="" width="545" height="617" data-path="images/administrator-guide/image-253.avif" />
</Frame>

Once the rule has been created, you will be able to view the ***Priority*** or order to which the rules are applied, ***Name*** that you gave your rule, ***Description*** of what the rule does, ***Enabled*** shows the status of the rule (active/inactive), and ***Updated By*** shows the admin who last updated the rule.

<Frame>
  <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-254.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=e0e822b4dd93a53aea1356cb0d1972c3" alt="" width="1103" height="175" data-path="images/administrator-guide/image-254.avif" />
</Frame>

## Add multiple conditions and tags

<Steps>
  <Step>
    Select **Advanced Mode**\*.\*

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-255.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=fe5f2eb771c025b97b3e18a27fcf71c1" alt="" width="624" height="211" data-path="images/administrator-guide/image-255.avif" />
    </Frame>
  </Step>

  <Step>
    Select **Create Rule**\*.\*

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-256.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=e8495ab986b41da5c9a73c86f339b402" alt="" width="935" height="370" data-path="images/administrator-guide/image-256.avif" />
    </Frame>
  </Step>

  <Step>
    Add a name and description.

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-257.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=096764d854090e72869d6d8d830c07c1" alt="" width="1516" height="255" data-path="images/administrator-guide/image-257.avif" />
    </Frame>

    You can autogenerate a description after you add at least one specification and one tag value. Until then the "Generate" button will be disabled.
  </Step>

  <Step>
    Add specifications. To enter more than one specification, select **+ Add Specification**.

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-258.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=a981251c8807c16507c62e2788521ae6" alt="" width="1440" height="268" data-path="images/administrator-guide/image-258.avif" />
    </Frame>

    Note that the "**Condition**" field might have "**Regex Matches**" option for some properties. Example: Property - Merchant Name, Condition - Regex Matches, Value - (\[Ww]almart|\[Tt]arget). If you are interested in regular expressions, you can use [this tool](https://regexr.com/7kmgm).
  </Step>

  <Step>
    Add tags. To enter more than one tag, select ***+ A*****dd Tag Value**\*.\*

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-259.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=484de063bfdece0127695e77e71d8a9e" alt="" width="1375" height="285" data-path="images/administrator-guide/image-259.avif" />
    </Frame>
  </Step>

  <Step>
    Select **Create**\*.\*

    <Frame>
      <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-260.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=b07a4e63270c1d73a3e483f96c87fc54" alt="" width="320" height="78" data-path="images/administrator-guide/image-260.avif" />
    </Frame>
  </Step>
</Steps>

## Update rules

At any time Admins can edit rules previously created including change the priority of rules to be applied, delete rules, or edit the categories.

<Steps>
  <Step>
    Click on the edit icon to the right of the rule.
  </Step>

  <Step>
    From here you can update the rule name, category & tag values and the priority of the rule.
  </Step>

  <Step>
    Click **Update**.
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-261.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=5908f3e6b76e9e6a146fca2d92789407" alt="" width="557" height="567" data-path="images/administrator-guide/image-261.avif" />
</Frame>

## Run Rules

Admins can:

* View the time of last sync.
* Disable all rules from processing:
  * Click on the Manage tab, you'll be able to view if the Auto Tagger is enabled or disabled and the last time of sync.
  * If you would like to disable all active rules from processing, click "DISABLE AUTO TAGGING".
* Admin can also run ad-hoc auto tagging. You don't need to enable auto tagging to run ad-hoc auto tagging.

<Frame>
  <img src="https://mintcdn.com/pextest/1V_7FmbkFmoW14LH/images/administrator-guide/image-262.avif?fit=max&auto=format&n=1V_7FmbkFmoW14LH&q=85&s=54edb678e999d556b29ff98252740b25" alt="" width="514" height="372" data-path="images/administrator-guide/image-262.avif" />
</Frame>

## Auto Tagger Custom Options

You can set custom options when running ad-hoc auto tagging:

* Click **Run now**.
* Click **Custom options**.
  * Select a start date. Transactions after this date will be processed.
    * Start date must be less than 1 year ago.
    * Leave empty to default to 2 weeks ago.
  * Select an end date. Transactions after this date will not be processed.
    * Leave empty to default to today.
  * Decide if to process closed cardholders.
    * By default, Auto Tagger skips closed cardholder accounts.
  * Decide if to reprocess transactions.
    * By default, Auto Tagger skips transactions it has already tagged.
* Click **Run**.

## FAQ

<AccordionGroup>
  <Accordion title="What transactions does Auto Tagger run my rules against?">
    Auto Tagger runs your rules only against:

    * Active cards' transactions.
    * Settled transactions.
    * Transactions in the "Not Reviewed" and "Rejected" statuses.
      * If a transaction in the "Rejected" status is tagged, its status reverts to "Not Reviewed".
    * Purchase transactions.
    * Transactions up to 2 weeks in the past and on a go forward basis.
  </Accordion>

  <Accordion title="When are the rules applied to transactions?">
    For first time rule set-up, Auto Tagger will be applied to transactions up to 2 weeks in the past. Once a rule is active, Auto Tagger will update transactions every 60 minutes. To view past tags, click on a transaction and look at the details.
  </Accordion>

  <Accordion title="Can I add more than one condition or tag?">
    Yes. Please visit the adding multiple conditions and tags above.
  </Accordion>

  <Accordion title="Are split tags supported?">
    At this time, split tags are not supported.
  </Accordion>

  <Accordion title="Can I auto tag transactions older than two weeks?">
    Yes, but only manually. To perform this action, follow these steps:

    <Steps>
      <Step>
        Click on "Manage"
      </Step>

      <Step>
        Select "Run Now"
      </Step>

      <Step>
        Choose "Custom Options"
      </Step>

      <Step>
        In the Custom Options section, specify the desired start date. Please note that the start date cannot be more than one year in the past.
      </Step>

      <Step>
        Adjust any other options as necessary.
      </Step>

      <Step>
        Finally, click on "Run" to initiate the process.
      </Step>
    </Steps>
  </Accordion>

  <Accordion title="Why doesn't Auto Tagger retag my transactions?">
    Auto Tagger tag transactions only once. Auto Tagger adds a transaction note when it tags a transaction. To reprocess and retag transactions, follow these steps:

    <Steps>
      <Step>
        Click on "Manage"
      </Step>

      <Step>
        Select "Run Now"
      </Step>

      <Step>
        Choose "Custom Options"
      </Step>

      <Step>
        In the Custom Options section, specify the desired start date. Please note that the start date cannot be more than one year in the past.
      </Step>

      <Step>
        Adjust any other options as necessary.
      </Step>

      <Step>
        Finally, click on "Run" to initiate the process.
      </Step>
    </Steps>
  </Accordion>
</AccordionGroup>
