Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Nanonets

Scalekit connector
Open markdown

The Nanonets connector lets your AI agent act in each user's Nanonets account. Each user connects their own Nanonets API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 28 tools.

Tools
28
What they doRead · write · destructive
11 · 15 · 211 read15 write2 destructive
Users sign in with

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Nanonets connection

    In AgentKit > Connections, create a Nanonets connection. The name you give it is the connection_name your code passes. See Configure connections.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • nanonets_classification_model_listList the image classification models in the Nanonets account using the v2 API.Read-only

    List Image Classification Models

    List the image classification models in the Nanonets account using the v2 API. Returns each model's model_id, model_type, state and categories with counts. Use nanonets_classification_model_list to find classification models. Use nanonets_workflow_list for OCR and extraction workflows.

    Inputs

    This tool takes no inputs.

  • nanonets_document_getGet the processing status and extracted data of one document in a Nanonets workflow.Read-only

    Get Document

    Get the processing status and extracted data of one document in a Nanonets workflow. Returns status, metadata and verification status, and for each page its page_id with extracted fields (field_data_id, value, confidence, bbox) and tables (table_id, cells). Use nanonets_document_get to read results, including after an async upload. Use nanonets_document_page_get for a single page of a long document.

    Inputs

    document_idstringrequired
    ID of the document in the workflow. Returned as document_id by nanonets_document_upload and nanonets_document_list. Example: db237bf3-f3c1-4441-905e-a6b7538db269.
    workflow_idstringrequired
    ID of the Nanonets workflow. Get it from nanonets_workflow_list or nanonets_workflow_create. Example: 550e8400-e29b-41d4-a716-446655440000.
  • nanonets_document_listList the documents processed by a Nanonets workflow, newest first, one page at a time.Read-only

    List Documents

    List the documents processed by a Nanonets workflow, newest first, one page at a time. Returns document_id, status, uploaded_at, metadata, original_document_name, verification status and page ids, plus total_count. Use nanonets_document_list to browse or poll uploads. Use nanonets_document_get for the extracted fields and tables of one document.

    Inputs

    workflow_idstringrequired
    ID of the Nanonets workflow. Get it from nanonets_workflow_list or nanonets_workflow_create. Example: 550e8400-e29b-41d4-a716-446655440000.
    limitinteger
    Number of documents per page, from 1 to 100. Defaults to 10. Example: 50.default 10
    pageinteger
    Page number of the results, starting at 1. Defaults to 1. Example: 2.default 1
  • nanonets_document_page_getGet the extracted data of one page of a document in a Nanonets workflow.Read-only

    Get Document Page

    Get the extracted data of one page of a document in a Nanonets workflow. Returns the page_id, page_number, image_url and the page's extracted fields and tables with their ids. Use nanonets_document_page_get for page-level review of a long document. Use nanonets_document_get for all pages.

    Inputs

    document_idstringrequired
    ID of the document in the workflow. Returned as document_id by nanonets_document_upload and nanonets_document_list. Example: db237bf3-f3c1-4441-905e-a6b7538db269.
    page_idstringrequired
    ID of a page of the document. Returned as pages[].page_id by nanonets_document_get. Example: b94d9ca6-37b9-11f0-a23c-367dda7a627d.
    workflow_idstringrequired
    ID of the Nanonets workflow. Get it from nanonets_workflow_list or nanonets_workflow_create. Example: 550e8400-e29b-41d4-a716-446655440000.
  • nanonets_ocr_model_getGet one Nanonets OCR model by ID using the v2 API.Read-only

    Get OCR Model

    Get one Nanonets OCR model by ID using the v2 API. Returns model_id, model_type, state and the model's categories (field labels) with their counts. Use nanonets_ocr_model_get to check a v2 model's labels and training state. Use nanonets_workflow_get for the v4 workflow view.

    Inputs

    model_idstringrequired
    ID of the Nanonets OCR model (the v2 name for a workflow). Copy it from the model page in the Nanonets app, or use a workflow ID from nanonets_workflow_list. Example: 7c3a5e1f-2b4d-4f6a-8c9e-0a1b2c3d4e5f.
  • nanonets_ocr_prediction_file_getGet the prediction results for one file processed by a Nanonets OCR model, using the v2 API.Read-only

    Get OCR Prediction by File

    Get the prediction results for one file processed by a Nanonets OCR model, using the v2 API. Returns each page's predicted and moderated boxes (label, ocr_text, score, coordinates, table cells), status and request_metadata. Use nanonets_ocr_prediction_file_get to poll an async prediction or read a whole file. Use nanonets_ocr_prediction_page_get for one page.

    Inputs

    model_idstringrequired
    ID of the Nanonets OCR model (the v2 name for a workflow). Copy it from the model page in the Nanonets app, or use a workflow ID from nanonets_workflow_list. Example: 7c3a5e1f-2b4d-4f6a-8c9e-0a1b2c3d4e5f.
    request_file_idstringrequired
    ID of the processed file. Returned as request_file_id by nanonets_ocr_prediction_create or nanonets_ocr_prediction_async_create. Example: 9f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f.
  • nanonets_ocr_prediction_listList the files a Nanonets OCR model processed within a range of days, using the v2 API.Read-only

    List OCR Predictions

    List the files a Nanonets OCR model processed within a range of days, using the v2 API. Returns moderated_images and unmoderated_images with page id, file_url, predicted_boxes and day_since_epoch, plus their counts. Use nanonets_ocr_prediction_list to find recent results by date. Use nanonets_ocr_prediction_file_get when you have a request_file_id.

    Inputs

    current_batch_dayintegerrequired
    End of the period as the number of days since 1 January 1970 (UTC). For example 20772 is 15 November 2026.
    model_idstringrequired
    ID of the Nanonets OCR model (the v2 name for a workflow). Copy it from the model page in the Nanonets app, or use a workflow ID from nanonets_workflow_list. Example: 7c3a5e1f-2b4d-4f6a-8c9e-0a1b2c3d4e5f.
    start_day_intervalintegerrequired
    Start of the period as the number of days since 1 January 1970 (UTC). For example 20765 is 8 November 2026; compute it as floor(unix_seconds / 86400).
  • nanonets_ocr_prediction_page_getGet the prediction results for one page processed by a Nanonets OCR model, using the v2 API.Read-only

    Get OCR Prediction by Page

    Get the prediction results for one page processed by a Nanonets OCR model, using the v2 API. Returns the page's initial prediction, any moderated values and the final result, with labels, ocr_text, scores and table cells. Use nanonets_ocr_prediction_page_get for a single page. Use nanonets_ocr_prediction_file_get for every page of a file.

    Inputs

    model_idstringrequired
    ID of the Nanonets OCR model (the v2 name for a workflow). Copy it from the model page in the Nanonets app, or use a workflow ID from nanonets_workflow_list. Example: 7c3a5e1f-2b4d-4f6a-8c9e-0a1b2c3d4e5f.
    page_idstringrequired
    ID of the processed page. Returned as id in each result of nanonets_ocr_prediction_create, or in nanonets_ocr_prediction_list. Example: 75ff0d9d-066b-11f0-b31d-62e85b8f4aab.