This add-on helps you transcribe images of metric books (birth, marriage, death registers) using Google™ AI (Gemini™). You can import scan images from Google Drive™ file links/IDs that you select into a document (with a Context block and source links), then transcribe selected images; the add-on inserts the transcription directly below the selected image with clear formatting.
Create document & import images
flowchart LR
A[📄 Create new Doc] --> B[📁 Import images from Drive]
B --> C[✅ Review Context + images in doc]
Transcribe flow (sidebar — recommended)
flowchart LR
D[📁 Import from Drive] --> E[🔑 Setup AI]
E --> F[🧾 Extract Context]
F --> G[☑️ Select images]
G --> H[✍️ Transcribe Selected]
H --> I[✅ Review results]
Transcribe flow (single image — menu)
flowchart LR
D2[🔑 Setup Key / Model] --> E2[🖼️ Select image]
E2 --> F2[✍️ Transcribe Image]
F2 --> G2[✅ Review results]
Menu overview
The Extensions → GeneaScript menu includes: Open Sidebar, Transcribe Image, Import Book from Drive Files, Extract Context from Cover Image, Select Template, Setup AI, Help / User Guide, and Report an issue. You can also open the sidebar by clicking the add-on icon in the right-side panel.
The add-on UI is available in English, Ukrainian, and Russian. By default it follows your Google Account™ language. To override, open Setup AI or Settings and set Interface language to Auto, English, Українська, or Русский. The choice is saved for your account; reopen the document (or refresh the menu) to see menu labels update. Document content such as the Context heading is unchanged so automatic context detection keeps working.

Use this to create a document with a Context section and scan images from your Google Drive™ in one go.
A Google Picker™ dialog opens, automatically starting in your document’s parent folder (if the document is saved in a Google Drive™ folder).


📌 Notes:

The add-on sends all text under the heading “Context” to the model. Use plain text or short lines; no special format is required.
The sidebar is the easiest way to transcribe one or many images at once.
MAX_TOKENS). The transcription was inserted but may be incomplete.

Note: Each image is transcribed in its own server call (~30–60 seconds per image depending on the model). The sidebar stays responsive during processing, and you can scroll through the document while it runs.
This feature helps you populate the Context section automatically from a cover/title image after Drive import.
Context section.
The add-on updates known Context fields and merges list items where possible. You can continue manual edits afterward.
Different metric books use different languages, column structures, and conventions. The Template Gallery lets you choose a record profile that matches your source material. Each template provides a specialized AI prompt with region-specific linguistic hints, column schemas, and terminology — significantly improving transcription accuracy.

| Template | Region | Religion | Best for |
|---|---|---|---|
| Galician Greek Catholic (default) | Galicia (Austrian Empire) | Greek Catholic | Latin/Polish/Ukrainian registers with Latinized names, Polish surname orthography |
| Russian Imperial Orthodox | Russian Empire | Orthodox | Pre-reform Russian Cyrillic registers with Church Slavonic influence, patronymics, Julian calendar dates |
| Generic — verbatim text | Any source | N/A | Handwritten letters, typescript, diaries, notes, or any non-tabular text |
The selected template is stored per document — each document remembers its own template. All subsequent transcriptions in that document will use the selected template’s prompt. Already-transcribed images are not affected; only new transcriptions use the new template.
You can create your own transcription templates based on the official ones or from scratch. Custom templates let you fine-tune the AI prompt sections — Role, Input Structure, Output Format, Instructions, and Context Defaults — for your specific source material.


From the My Templates section in the gallery, each template card shows:
Export to Doc saves your template into the current document’s properties, making it available to collaborators who open the same document (shown with a Shared badge, read-only).
You can have up to 5 custom templates per user account.
Select any custom template in the gallery and click Apply — it works exactly like official templates. The sidebar label updates to show the custom template name.
You can also transcribe one image at a time using the classic menu flow:
Open Extensions → GeneaScript → Transcribe Image.

🔑 First time only — API key, model, and request setup: If no API key is configured yet, a “Set API Key” dialog appears. It includes a link to Google AI Studio™ — API keys where you can create a key (sign in, click Create API key, copy it). In the dialog you can choose the model: default is Gemini™ Flash Latest (free tier ~20 requests/day); other options include Gemini™ 3.1 Flash Lite (500 requests/day) and Gemini™ 3.1 Pro Preview (best quality, billing). You can also tune Transcription strictness, Max text length, and Reasoning depth (plus Reasoning effort limit when supported), each with a short impact hint for transcription behavior. Paste the key, review settings, and click Save & Continue. The key/model/config are saved and the transcription proceeds. To change them later, use Setup AI from the add-on menu. See Gemini™ API pricing for model and token costs.
A dialog appears: “Awaiting response from Gemini™ API… This may take up to 1 minute.” Leave it open until the request finishes (the status bar may show “Working…”).

When the add-on finishes, the dialog closes and you see “Done — Transcription inserted below the image.” The transcription is inserted directly under the selected image (not at the end of the document).

✅ Review and edit the result in the document. Quality Metrics and Assessment lines are colored (blue and red) so they stand out from the historical data.

To change your API key, Gemini™ model, or request behavior anytime (for example after hitting free-tier limits or to try different transcription quality settings), use Extensions → GeneaScript → Setup AI. In the dialog you can pick a model, tune Transcription strictness, Max text length, and Reasoning depth, and review short notes that explain how each parameter can affect transcription quality/latency/cost. On models that support it, you can also set Reasoning effort limit. Enter a new API key (or leave it blank to keep the current one), and click Save. Use Clear stored API key to remove your key so you’ll be prompted again on the next Transcribe.

The transcription includes:
Blank lines separate records for readability. You can edit any of this text in the document.
| Issue | What to do |
|---|---|
| “Please select a single image” | Click on one metric book image so it is selected, then run Transcribe Image again. |
| Invalid Drive input | Paste one or more valid file URLs/IDs (e.g. https://drive.google.com/file/d/.../view), separated by commas or new lines. |
| Cannot access some files | Each file must be owned by you or shared with you. If you changed access recently, re-authorize and run import again. |
| No images found in selection | Only JPEG, PNG, and WebP are imported. Ensure selected files are images in one of these formats. |
| Some images skipped | Very large or invalid images may be skipped; the add-on reports how many. Resize or re-export large scans if needed. |
| “Set API Key” dialog / API key prompt | The add-on prompts for a key and model on first use of Transcribe Image. Create a key at Google AI Studio™ — API keys, paste it, choose a model, and click Save & Continue. To change key or model later, use Extensions → GeneaScript → Setup AI. See INSTALLATION.html. |
| Setup dialog validation error | Check request fields in Setup AI. Transcription strictness must be 0..2; Max text length must be an integer 1..65536; and reasoning options depend on the selected model. |
| “Authorisation is required to perform that action” | Usually means you are a collaborator on the doc and haven’t authorized the add-on for your account. Open Extensions → GeneaScript and complete the authorization when prompted. |
| Quota exceeded / 429 / rate limit | Free tier has limited requests per day. The add-on shows the error in the dialog. Check Gemini™ API pricing and your quota/billing setup; switch model or billing settings via Setup AI if needed. |
| Request failed / API error | Check that your API key is valid and that the Generative Language API is enabled. If you see a quota or billing message, review Gemini™ API pricing and your Google AI™ or Google Cloud™ project settings. |
| Timeout | The add-on waits up to about 60 seconds. If the request times out, try again or use a smaller/simpler image. |
| Empty or odd transcription | Ensure the selected element is the image (not a drawing or text). Add or improve the Context section and try again. |
| Transcription at bottom of doc | Ensure you have the latest script; insertion uses the body-level block containing the selected image. Select the image and run again. |
| Sidebar shows “No images found” | The document has no inline images. Import scans via Import Book from Drive Files or paste images directly into the document, then click Refresh. |
| Sidebar image failed (red X) | Hover over the red X to see the error. Common causes: API rate limit (429), image too large, network timeout. The batch continues with the remaining images. You can retry the failed image afterward. |
| Orange warning on sidebar image | The model’s output was truncated (MAX_TOKENS). The transcription was inserted but may be incomplete. Try a smaller or clearer image, or switch to a model with higher output limits. |
| Extract Context action says select one image | In the sidebar, check exactly one image before running Extract Context from Selected Image. |
| Context extraction returns unusable text | Try a clearer cover image, rerun extraction, then edit fields manually before apply. |
| “No homepage card” on right panel icon | Ensure the latest code is deployed. The right-side icon shows a Card with an “Open Transcriber Sidebar” button. If you see this error, redeploy via clasp push --force or update the test deployment. |
For installation and API key setup, see INSTALLATION.html.