# Extract Baserow PDF Fields with Dynamic Prompts

Source: https://openflow.run/en/templates/extract-baserow-pdf-fields-with-dynamic-prompts/
Content language: en
Template revision: 6a810ce0d6451572951d8ffad4656467a01774f0

Productivity

Extract Baserow field values from row PDFs using field descriptions as prompts.

[Use in Open Flow](https://console.openflow.run/flows?importUrl=https%3A%2F%2Fraw.githubusercontent.com%2Foomol-lab%2Fawesome-workflow-templates%2F6a810ce0d6451572951d8ffad4656467a01774f0%2Fworkflows%2Fextract-baserow-pdf-fields-with-dynamic-prompts%2Ftemplates%2Fextract-baserow-pdf-fields-with-dynamic-prompts.openflow.json)

*   [Open Flow JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/6a810ce0d6451572951d8ffad4656467a01774f0/workflows/extract-baserow-pdf-fields-with-dynamic-prompts/templates/extract-baserow-pdf-fields-with-dynamic-prompts.openflow.json)
*   [n8n JSON](https://github.com/oomol-lab/awesome-workflow-templates/blob/6a810ce0d6451572951d8ffad4656467a01774f0/workflows/extract-baserow-pdf-fields-with-dynamic-prompts/templates/extract-baserow-pdf-fields-with-dynamic-prompts.n8n.json)

![Extract Baserow PDF Fields with Dynamic Prompts workflow in Open Flow](https://openflow.run/template-previews/extract-baserow-pdf-fields-with-dynamic-prompts/light.webp)

Extract Baserow field values from row PDFs using field descriptions as prompts.

## Setup

Configure Baserow Header Auth with a token allowed to read schema and rows and update the target table. Create a Baserow webhook for rows.updated (only the File field), field.created and field.updated, using field names. The table needs a File column containing PDFs and described fields containing extraction prompts. Protect the incoming webhook and restrict access to trusted senders.

## Behavior

For a row update, read each affected row and extract each described field whose current value is falsy. For a described field creation or change, extract that field for each row with a PDF. This branch reads at most three pages of 20 rows, as configured in the source. Only the first PDF in File is used. The field-event row query includes File so it can fetch the PDF.

An uncertain row update may have succeeded. Inspect that row and reconcile it before retrying. Open Flow stores a pending key baserow-pdf:TABLE\_ID:ROW\_ID. Remove a pending record only after confirming the update did not occur. PDF contents and prompts are sent to the selected model provider.

In n8n

Import the n8n workflow and configure Baserow Header Auth with a token allowed to read schema and rows and update the target table. configure the OpenAI model and Data Table with item\_key and status columns.

Inspiration & credits

Adapted from [AI Data Extraction with Dynamic Prompts and Baserow](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/OpenAI_and_LLMs/AI%20Data%20Extraction%20with%20Dynamic%20Prompts%20and%20Baserow.json) in [enescingoz/awesome-n8n-templates](https://github.com/enescingoz/awesome-n8n-templates).

Source collection notice: © 2024–2026 Enes Cingoz, [CC BY 4.0](https://github.com/enescingoz/awesome-n8n-templates/blob/827110332c21cbe000ab13f6d292d5adb1f1f8db/LICENSE). The source export does not identify a separate template author or license. See [repository licensing](https://github.com/oomol-lab/awesome-workflow-templates/blob/6a810ce0d6451572951d8ffad4656467a01774f0/README.md#licensing) for the scope of OOMOL contributions and third-party material.

## What you’ll need

*   Baserow API token and webhook
*   AI model and persistent State

*   baserow
*   pdf
*   ai
*   data extraction

[View on GitHub](https://github.com/oomol-lab/awesome-workflow-templates/blob/6a810ce0d6451572951d8ffad4656467a01774f0/workflows/extract-baserow-pdf-fields-with-dynamic-prompts/README.md)
