# Smart Aggregation

## Guide to set Smart Aggregation <a href="#docs-internal-guid-c8d0497d-7fff-ecd1-8753-312a83baed96" id="docs-internal-guid-c8d0497d-7fff-ecd1-8753-312a83baed96"></a>

### Step 1: Go to settings and select Smart Aggregation under local settings

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FWhW2imDaYYT6tRwOYMNn%2FScreenshot%202022-11-22%20at%2012.30.39%20PM.png?alt=media&#x26;token=9e3873f3-703e-4a25-bc84-ad57936f2439" alt=""><figcaption></figcaption></figure>

### Step 2: Set Smart Aggregation source

Click on Edit and for a field to be auto-populated choose from the options available from the dropdown

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FyRBODUTZD4eFCIqUEML2%2FScreenshot%202022-11-22%20at%2012.30.48%20PM.png?alt=media&#x26;token=bf9741a6-60f6-4739-b08e-dc2df1dd4286" alt=""><figcaption></figcaption></figure>

### Step 3: Once you have made the desired changes click on Save Changes

(Please Note: The updated Smart Aggregation settings in step 2 will only apply to invoices which are ingesting in Capture after the new settings were saved.)

### Step 4: Start ingesting invoices in Capture and wait for digitisation to complete

### Step 5: Click on View for an invoice that you want to review and go to Extraction issues

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FTWsEGx0KA0qqKxOL2Pl2%2FScreenshot%202022-11-22%20at%2012.32.19%20PM.png?alt=media&#x26;token=d2601504-c370-4c06-8c34-93eee472047d" alt=""><figcaption></figcaption></figure>

### Step 6: Review the fields that have been extracted

<figure><img src="https://1228935104-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZESjKfghy4dwB5DEJ1%2Fuploads%2FyZV72B7088TrXyV5713p%2FScreenshot%202022-11-22%20at%2012.32.53%20PM.png?alt=media&#x26;token=4e0d7950-61f1-446d-b17a-d4369ec4aa56" alt=""><figcaption></figcaption></figure>

### Please note:

1\) If the field has been successfully populated then you will see a green icon with the source name

![](https://lh5.googleusercontent.com/xlCpaDO7Gjghk9692Ai643JROY_yoTRovDc6WY8wpQm-IOy8b6PgriisMpH2VHqbzqu9kRmikLsl94dfukHDtxoe5QkNI-2QEvElxwGKztHH4wkBzDNvmHups5rnxGDti0Z5Hj86gFEGEzcLp8WB2Jn7f_-ovUZBVeRxtaChMZ63YUSkMQG5qt9hmx2myg)

2\) If the field has not been successfully populated then you will see a red icon with the source name

3\) In case of where GSTR 2A and EWB have nor been fetched for a document you will see a loading sign

&#x20;![](https://lh3.googleusercontent.com/nXRHvM4J1oR4UHOzdO06mQgbEmgUWnrEDKHo52Br3FfaGyp1rZroB-Ypp8tbQsquVlDNgcejBL-hu4rTfsCL9wNHtI1-kXnj6xuxo4xef8Hj61bQ-gxsA7_FFUWHxut_5Gct0xhwvOB_uPHg9LOi-I4ogvHwTNJbo0f4hANgWHKyNzEGHwGT-ntYkE309Q)

4\) Smart aggregation for a field will not happen in case if it was manually edited and saved by you in the invoice review screen before the auto-population could happen using GSTR 2A, EWB and Field data

5\) Derived field option in case of Buyer/Vendor state code and name will allow you to auto-populate the respective fields using the first 2 digits of OCR extracted buyer and supplier GSTIN
