> For the complete documentation index, see [llms.txt](https://clik-ai.gitbook.io/smart-extract-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clik-ai.gitbook.io/smart-extract-documentation/master.md).

# 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**](/smart-extract-documentation/smart-extract.js.md) - 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**](/smart-extract-documentation/api-reference/data-extraction-api/smartextract-json-api.md) - 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](/smart-extract-documentation/api-reference/data-extraction-api/smartextract-json-api.md) 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](/smart-extract-documentation/smart-extract.js.md) 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
