# AI Snip & Templates

> How to pull the same fields from many PDFs and scans into Google Sheets™ with AI Snip: templates, field types, list fields, steps, pages, and fixes for every message.

URL: https://sheetminer.com/docs/ai-snip-templates/
Last updated: 2026-11-19

AI Snip pulls a set of fields you define from every open document in one run. You describe each field in plain words, and AI finds the value in each document. It suits recurring documents, such as invoices from the same supplier or statements from the same bank. Each inserted cell keeps a link to its source in the document.

A set of fields is called a template. Your templates save automatically, so there is no save button.

## What do I need before using AI Snip?

- The Sheetminer add-on installed in Google Sheets™, with edit access to the spreadsheet.
- At least one document uploaded in the **Extract** tab of the sidebar and finished processing. A document that is still processing shows "1 document currently processing. Please wait for processing to complete." in the sidebar footer.
- Documents of 50 pages or fewer. A longer document is skipped with "Document has 60 pages, which exceeds the maximum of 50 pages for extraction".

## How do I extract the same fields from many documents into Google Sheets™?

1. Open the sidebar: click **Extensions → Sheetminer → Open**.
2. In the **Extract** tab, tick every document you want to extract from.
3. Click the **Extract** button at the bottom of the sidebar. The Snip extract window opens.
4. Click the **AI Snip** tab. AI Snip opens on step 1 of 3: **Choose**, **Edit fields**, **Confirm**.
5. Under **Choose a starting point**, pick one:
   - **Load last template**: the template you used last, as you left it. It shows only once you have a template.
   - **Empty template**: start with no fields.
   - A template under **Sheetminer templates**: **Invoice**, **Bank statement** or **Purchase order**.
   - A template under **My templates**: a template you made before.
6. In **Edit fields**, add or change fields. Give each field a name under **Field**, a description under **What should it contain?**, and a **Type**. To have AI build the fields, type a description under **Describe what you need** and click **Generate**, or click **Suggest fields**.
7. Click **Next: Confirm**.
8. Check the **Fields to extract** list and the line "Extracts from all 3 open documents." Then click **Run extraction**. The template is saved before the run starts.
9. Review the results under **Extracted values**. Use the arrows to move between documents. Click **Preview table** to see the rows as they will appear in the sheet.
10. To change where the rows go, use the **Destination** picker above **Preview table**, or click the **Preferences** button to the right of the mode tabs to open **AI Snip preferences** and set **Insert location**. **Current cell** inserts at the cell selected in the sheet. **Specific cell** inserts at an address such as `Sheet2!B5`.
11. Click **Insert into Sheet**.

1. Tick the documents, click **Extract** and choose the **AI Snip** tab. Start from a built-in template such as **Invoice**, or from scratch.

   ![Tick the documents, click Extract and choose the AI Snip tab. Start from a built-in template such as Invoice, or from scratch.](https://sheetminer.com/docs/screenshots/en/ai-snip-choose.jpg)

2. Edit the fields: a name, what each should contain, and a type. **Generate** or **Suggest fields** can build them with AI. Then click **Next: Confirm**.

   ![Edit the fields: a name, what each should contain, and a type. Generate or Suggest fields can build them with AI. Then click Next: Confirm.](https://sheetminer.com/docs/screenshots/en/ai-snip-fields.jpg)

3. Click **Run extraction**. AI Snip reads each document. Check the values, highlighted on the document, then click **Insert into Sheet**.

   ![Click Run extraction. AI Snip reads each document. Check the values, highlighted on the document, then click Insert into Sheet.](https://sheetminer.com/docs/screenshots/en/ai-snip-results.jpg)

4. The values go into the sheet, with the **Document** each row came from, and each cell links back to its source.

   ![The values go into the sheet, with the Document each row came from, and each cell links back to its source.](https://sheetminer.com/docs/screenshots/en/ai-snip-inserted.jpg)

## What should I see after running AI Snip?

- While it runs: "Extracting 3 documents…", then "1 of 3 documents extracted…".
- Under **Extracted values**, one card per row for the document shown, labeled "Row 1", "Row 2" and so on when a list returns several rows. The values AI matched are highlighted on the document page.
- A document that was not extracted shows **Failed** or **Skipped** with the reason.
- After **Insert into Sheet**, the message "Data inserted into sheet", and a table in your sheet:
  - A header row with your field names. A **Document** column comes first, with the document name linked to the file in Google Drive. Untick **Include document name column** to leave it out.
  - One row per document. A document with a **List** field gets one row per list item. Single-value fields fill the first row only, so totals in a column are not counted twice.
- Every inserted value linked to its source. Select a cell, open the **Inspect** tab at the top of the sidebar, and click **Inspect selected cells** to go to the place in the document it came from.

To add the rows to a table you already have, click a cell in that table before you insert. A preview shows the table with the new rows and lets you match its columns to your fields. See [How do I add rows to a table I already have?](https://sheetminer.com/docs/table-snip/#how-do-i-add-rows-to-a-table-i-already-have)

## What do the built-in templates contain?

| Template | Fields | List field |
| --- | --- | --- |
| **Invoice** | Supplier name, Supplier tax ID, Invoice number, Invoice date, Due date, PO number, Currency, Net amount, Tax amount, Total amount | **Line items**: Description, Quantity, Unit price, Tax rate, Line total |
| **Bank statement** | Bank name, Account holder, Account number (last 4 digits only), Period start, Period end, Currency, Opening balance, Closing balance, Total credits, Total debits | **Transactions**: Date, Description, Reference, Debit, Credit, Balance |
| **Purchase order** | PO number, PO date, Buyer name, Supplier name, Delivery date, Payment terms, Currency, Subtotal, Tax amount, Total amount | **Line items**: Item code, Description, Quantity, Unit price, Line total |

Built-in templates never change. When you pick one, Sheetminer makes your own copy, named for example "Invoice (copy)". Your edits save to the copy, which then appears under **My templates**.

## How do I generate fields with AI?

On the **Edit fields** step, use the **Describe what you need** box:

- Type what you want and click **Generate**. For example: "From each invoice I need the supplier, invoice number, date, VAT and total, plus every line item with description, quantity, unit price and line total." Sheetminer turns the description into fields, with names, descriptions, types and any **List** fields.
- Or click **Suggest fields**, with no description needed. Sheetminer reads the document open in the window and proposes the fields it contains. See [How does Suggest fields work?](#how-does-suggest-fields-work)

Afterwards you see, for example, "Added 6 suggested fields. Review and edit them. Changes save automatically." Generated fields are added next to your existing fields. A field with the same name as an existing one is skipped ("2 skipped because a field with that name already exists."). Click **Replace all my fields with these instead** to keep only the generated fields.

Generating and suggesting fields is free.

## How does Suggest fields work?

**Suggest fields** builds fields from the document you are looking at, so you don't have to know or type the field names. Use it when you have a new kind of document and want a starting template.

1. Open the document you want to base the fields on. If several documents are open, pick the right one in the file name dropdown at the top left of the window (next to "File 1 of 3"). **Suggest fields** uses only the document shown in the viewer.
2. Optional: type under **Describe what you need** to steer the result, for example "Only the dates and totals" or "Every transaction as a list". Your description and the document are sent together. The description says what you want, and the document shows which fields exist.
3. Click **Suggest fields**. It reads "Generating…" while it works.
4. Review the new fields, then edit, rename or remove any you don't need.

What Sheetminer reads from the document:

- The text read when the document was processed, up to the first 12,000 characters. On a long document, that is roughly the first few pages.
- The header row of every table in the document, from any page. Tables usually become **List** fields, with one property per column.

A field that only appears late in a long document can be missed. Add it with **+ Add field**, or name it in your description and click **Suggest fields** again.

The suggestions come from one document. Before you run AI Snip on many documents, check that the fields make sense for the others too, and that their descriptions under **What should it contain?** are not specific to the example, such as one supplier's name.

Field names and descriptions are written in the language of your request: your description's language, or the sidebar's language if you typed nothing.

**Suggest fields** only shows when the document in the viewer is processed. It does not change the document and it is free. The document's text is used only to propose fields: instructions written inside a document are ignored.

## How do I edit fields by hand?

- **+ Add field** adds a field. **Remove field** deletes one. **Move up** and **Move down** change the order, which is the column order in the sheet.
- **Field** is the column header, for example "Invoice number".
- **What should it contain?** tells AI what to look for, for example "The invoice number or reference". A specific description gives more reliable matches.
- **Type** is one of **Text**, **Number**, **Date**, **Currency**, **Yes / No** or **List**.

## How do I extract repeating rows, such as transactions or line items?

Set the field's **Type** to **List**. Under **List item properties**, add one property per column, each with a name, a description and a type. Use **+ Add property** to add one and **Remove property** to delete one.

AI returns one row per item. For example, a "Transactions" list with "Date", "Description", "Debit" and "Credit" properties returns the full transaction table in one run.

A list cannot contain another list. If a template has a list inside a list, you see "This template nests lists inside lists, which this editor doesn’t support — the inner lists were left out."

## How do templates save, rename and delete?

- Your template saves automatically after each change and before each run. The status next to the name shows **Saving…**, **Saved**, or **Not saved yet** (until every field has a name and a description).
- To rename the template, click its name next to **Template** on the **Edit fields** step and type.
- To switch templates, click **Change** to go back to **Choose a starting point**.
- To delete a template, click the **×** button ("Delete “Invoice (copy)”") next to it under **My templates**. Then click **Delete** under "Delete “Invoice (copy)”? This can’t be undone." Built-in templates are not listed there and cannot be deleted.

## Does AI Snip use pages?

No, for almost every document. AI Snip is included in the pages you used to process the document, and you can run it again on the same document without using more pages.

A very large run can use extra pages, based on the AI work it takes. For example, a long statement where AI Snip returns hundreds of detailed rows. Most documents never do. When a run uses extra pages, you see "This run used 2 extra pages." after it finishes.

Hover the info icon next to **Run extraction** to see how many pages you have left, for example "Included in your pages. A very large run can use extra pages, based on the AI work it takes. — 37 pages left".

Nothing else in AI Snip uses pages:

- Choosing a template, editing fields, **Generate** or **Suggest fields**.
- Documents that are **Failed** or **Skipped**.
- Inserting the results into the sheet.

See [Pages & Usage](https://sheetminer.com/docs/credits-pricing/) for how pages are counted and when they reset.

## How do I fix AI Snip error messages?

| Message | What it means | What to do |
| --- | --- | --- |
| Add at least one field | **Next: Confirm** is disabled because the template has no fields. | Click **+ Add field**, or use **Generate** or **Suggest fields**. |
| Every field needs a name | A field has no name under **Field**. | Name the field or remove it. |
| Describe what "Total" should contain | A field has no description. | Fill in **What should it contain?** for that field. |
| Duplicate field name "Total" | Two fields have the same name. | Rename one of them. |
| Add at least one property to the list "Transactions" | A **List** field has no properties. | Click **+ Add property**. |
| Every property of "Transactions" needs a name | A list property has no name. | Name the property or remove it. |
| Describe what "Date" in "Transactions" should contain | A list property has no description. | Fill in its description. |
| Duplicate property name "Date" in "Transactions" | Two properties in one list have the same name. | Rename one of them. |
| No processed documents to extract from | **Run extraction** is disabled because none of the open documents has finished processing. | Wait for processing to finish, or tick a processed document in the sidebar. |
| Document has not been processed yet | This document was skipped because it is still processing or failed to process. | Wait for processing to finish, then run again. |
| Document has 60 pages, which exceeds the maximum of 50 pages for extraction | AI Snip runs on documents of up to 50 pages. | Split the document into parts of 50 pages or fewer and upload them. |
| Couldn’t generate fields right now. Please try again. | **Generate** or **Suggest fields** failed. | Try again in a moment, or add fields by hand. |
| That description couldn’t be turned into fields. Try rewording it. Please try again. | AI could not use the description. | Reword the description. |
| That asks for too many fields at once. Try asking for fewer. Please try again. | The description asks for too many fields. | Ask for fewer fields, then generate again for the rest. |
| No fields could be generated from that. Try being more specific. Please try again. | AI found no fields in the description. | Name the values you want, as in the example in the box. |
| The open document couldn’t be used. Process it first or untick the option. Please try again. | **Suggest fields** could not read the open document. | Wait until the document is processed, or use **Generate** with a description. |
| Couldn’t save | The template did not save. | Check your internet connection. The template saves again on your next change and before every run. |
| Couldn’t load this run. Please try again. | A run under **Previous runs** did not open. | Try again in a moment. |
| Couldn’t delete this run. Please try again. | The run's results were not deleted. | Try again. |
| Could not delete the template. Please try again. | The delete did not go through. | Try again. |
| Nothing was extracted, so there is nothing to insert | **Insert into Sheet** is disabled because no document returned values. | Check the **Failed** and **Skipped** reasons, adjust the fields, and run again. |
| Enter a target cell, e.g. Sheet2!B5 | **Specific cell** is selected but has no address. | Enter an address, or choose **Current cell**. |
| Error inserting table: Google Sheets was busy, so the table wasn't inserted. Try again in a moment. | Google Sheets™ did not accept the write. | Wait a few seconds and click **Insert into Sheet** again. |
| Error inserting table: "X1" isn't a valid cell address. Try something like Sheet2!B5. | The **Specific cell** address is not valid. | Enter an address such as `B5` or `Sheet2!B5`. |
| Error inserting table: Sheet "Name" was not found. | The **Specific cell** address names a tab that does not exist. | Correct the tab name, or create the tab first. |
| Error inserting table: Cell B5 has a dropdown that only accepts certain values. Pick another cell and insert again. | The destination has data validation that blocks the values. | Choose a different insert location. |
| Dropdowns in column C only accept certain values, so the table went into a new tab, "Sheet3". | Sheetminer put the table in a new tab to avoid the dropdowns. | No action needed. Move the data from the new tab if you want. |
| Inserted, but source links could not be saved — "Inspect cells" won't show sources for this data. Delete it and insert again to retry. | The rows were inserted without source links. | Delete the inserted range and click **Insert into Sheet** again. |

## How do I change the fields and run again?

On the results, click **← Edit fields** to go back to the template. Change the fields, click **Next: Confirm**, then **Run extraction**. Each run is charged again. To return to the last results without running, click **View results** on the **Confirm** step.

## How do I insert an earlier run again without running it again?

AI Snip keeps the results of each run for 30 days. You can insert them again, anywhere, at no cost.

1. Open the **AI Snip** tab. On **Choose a starting point**, scroll to **Previous runs** ("Results are kept for 30 days. Open a run to insert it again without running it again."). Each run shows its first document's name and how many others it had (for example "invoice.pdf +1 more"), when it ran and how many fields it had.
2. Click a run. Its results open with a message such as "Results from Today, 09:41 AM. Inserting them again doesn’t use any pages." Older runs show the date, for example "Oct 28, 2026".
3. Choose the **Destination** and click **Insert into Sheet**. Cells keep their source links, so **Inspect** still works.

Other options next to each run:

- **Use fields** starts a new template from that run's fields, to run on other documents.
- The **×** button ("Delete this run’s results") deletes the stored results. Click **Delete** under "Delete the saved results of “invoice.pdf”? This can’t be undone." Deleting does not give back any pages.

**Previous runs** lists only runs of documents that are still in this spreadsheet's document list. If an insert fails, the message ends with "Your results are saved: choose another location, or find them later under Previous runs."

1. On the **AI Snip** tab, **Previous runs** lists your recent runs. Their results are kept, so you can insert them again without using credits.

   ![On the AI Snip tab, Previous runs lists your recent runs. Their results are kept, so you can insert them again without using credits.](https://sheetminer.com/docs/screenshots/en/ai-snip-history-list.jpg)

2. Click a run to open its results. Choose the **Destination** and click **Insert into Sheet**: no credits are used, and each cell still links to its source.

   ![Click a run to open its results. Choose the Destination and click Insert into Sheet: no credits are used, and each cell still links to its source.](https://sheetminer.com/docs/screenshots/en/ai-snip-history-restored.jpg)

3. The run goes into the sheet again, as when it was first inserted.

   ![The run goes into the sheet again, as when it was first inserted.](https://sheetminer.com/docs/screenshots/en/ai-snip-history-inserted.jpg)

## When should I use AI Snip instead of the other snips?

Use AI Snip when you want the same named fields from many documents, or from documents whose layout varies. For a single value use [Text Snip](https://sheetminer.com/docs/text-snip/). To add up numbers use [Sum Snip](https://sheetminer.com/docs/sum-snip/). To copy one table as it appears use [Table Snip](https://sheetminer.com/docs/table-snip/). Text Snip, Sum Snip and Table Snip use no extra pages.