# SmartExtract

SmartExtract platform by clik.ai provides a tools to extract data from documents uploaded by your users. You can signup for SmartExtract at <https://app.clik.ai/smart-extract> to start using the SmartExtract today.

This guide documents how SmartExtract works and how you can integrate it within your web application.

The SmartExtract platform  provides two ways to integrate document data extraction in your platform:

1. [**SmartExtract Widget**](https://clik-ai.gitbook.io/smart-extract-documentation/smart-extract.js) - You can integrate this widget in your web application to extract data from your financial documents. The widget also provides a spread sheet view to allow your users seamlessly edit/validate the extracted data. The validated data is then provided to your web application.
2. [**SmartExtract JSON API**](https://clik-ai.gitbook.io/smart-extract-documentation/api-reference/data-extraction-api/smartextract-json-api) - This is a more suitable solution if you are just looking to extract data in JSON format and then use your own UI to allow users to edit/validate data.

## Which Solution To Use?

That totally depends on how you want to integrate with SmartExtract

1. If you are looking just for an API that can take your financial documents and provide you with extracted data in JSON format, the [SmartExtract JSON API](https://clik-ai.gitbook.io/smart-extract-documentation/api-reference/data-extraction-api/smartextract-json-api) is what you need to use. This also means that you need to build the user interface to allow your users to validate or update this extracted data.
2. SmartExtract widget uses the SmartExtract API behind the scenes. It then presents the data extracted from the document in a spreadsheet view. The spreadsheet view is loaded in an iframe which can be placed anywhere in your application even on a popup dialog. The [smart-extract.js](https://clik-ai.gitbook.io/smart-extract-documentation/smart-extract.js) library takes care of most of the part and provides you with a simple Promise and Event based API to integrate the widget in your web application.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clik-ai.gitbook.io/smart-extract-documentation/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
