The Template action column provides different actions to manage the created template.
Smart Bot extracts data from the uploaded document with its default competencies. The extracted data may require some formatting or corrections on default extracted values. In such cases, you need an adapter to update the extracted value.
Adapter helps to write custom logic for value correction. Adapter is template specific, so you can have a separate adapter for each template and after data extraction an adapter can be called.
For checking the data extraction accuracy, see the Extracting Data from Templates section.
You can download an adapter of a template, make changes to it, and upload it to the template again. Adapters can be used in scenarios such as formatting the value, correcting the value, and calculating the value based on other extracted values.
Downloading the Default Adapter
After you detect an error in data extraction, you can download the skeleton or format of an adapter, for a specific template and update it to map the corrected values.
To download an adapter:
icon. You are prompted for confirmation.
The adapter skeleton looks like a default structure with all the arguments such as result_json, template_json. roi_df, and ml_predict_json.
You can write the code to extract correct information, or you can change the entry which comes under the result_json argument by putting correction logic. You can not change the default adapter skeleton.
You can update the adapter code for the result_json argument and upload the adapter. See Uploading an Adapter.
If the selected fields and values are not properly extracted, you can create an adapter to correct the wrong entries.
Creating an adapter requires Python programming knowledge.
To update an adapter:
Data is extracted from both the Form and Table fields. While creating an adapter, you can mention these parameters in the code, so it becomes easy to understand and helps to extract the data accurately.
In this example, let us see the adapter creation for correcting the Delivery Location field value.

The value for Delivery Location is in three lines. But from the Maker Checker screen, only one line is displayed for this field.
The extracted data can be checked through the maker checker screen after uploading the template through the Template extraction action. See the Extracting Data from Templates section.


After an adapter is updated, upload the adapter from the Templates section. An adapter is template-specific and should be uploaded to a specific template only.
To upload an adapter:

The latest adapter is uploaded and applied for the template.
Removing an Adapter from a Template
To remove an existing adapter:
. A pop-up window is displayed prompting for confirmation.The adapter is removed for a template.
To delete an existing template:
. A pop-up window is displayed prompting for confirmation.The template is deleted from the Templates section.
Edit Template action helps to make changes related to selected fields from the created template.
To Edit an existing template:
The CV Template Details page is displayed.

Clone template action helps to create a replica of an existing template. When you need to apply the same post processing logic to another template you can clone an existing template. All the field related mapping, configuration is cloned as per the existing template.
To Clone an existing template:
Clone Template pop up window is displayed.
The clone is created in the template section and the CV Template Details page is displayed.
