Skip to content
GUIDES#AI automation#Claude#Grok

Automating Data Extraction and Analysis from Hebrew Mortgage Reports with AI

Extracting data from Hebrew mortgage reports can be fully automated with modern AI models, saving hours of manual reading and reducing errors on critical terms and amounts.

Yaakov Tzedek
Yaakov Tzedek · AI expert·6 min read
Automating data extraction and analysis from Hebrew mortgage reports with AI
THE BOTTOM LINE
  • A practical guide to automatically extracting and analyzing terms and amounts from Hebrew mortgage reports using AI, with no manual reading errors.
DID YOU KNOW?

AI vision models can read Hebrew tables with over 95% accuracy when given clear, explicit instructions.

What Is AI-Based Data Extraction and Analysis from Hebrew Mortgage Reports

AI-based data extraction from Hebrew mortgage reports is an automated process in which an artificial intelligence model reads a mortgage report (scanned or PDF), identifies critical data points such as interest rate, loan term, monthly payment amount, and any special conditions, and outputs them into a structured table. The process saves hours of manual work and reduces the risk of inaccurate readings that can lead to poor financial decisions.

Its importance is significant because mortgage reports in Israel vary in format across different banks and mortgage advisors, and conditions are sometimes buried in footnotes or confusing tables. A properly prepared AI reads every line simultaneously and never "forgets" a detail like a hidden fee or a first-period discount.

How AI Model Vision Works

Modern models such as Claude (Claude 3.5 Sonnet) and Grok (Grok-2) can process not only text but also images and PDF files. When you upload a scanned mortgage report to a model, it:

  1. Identifies the layout, where the tables are, the different sections of the report, and the field names
  2. Extracts text, reads every Hebrew word (much like OCR, but typically with higher accuracy)
  3. Maps data to a structure, slots values into spreadsheet cells, table entries, or structured records
  4. Recognizes context, understands that some data points depend on other conditions (for example, "variable interest during the activation period only")

The entire process runs in seconds, with no specialized licensed software required.

Automation Steps, One by One

Step 1: Choose a Model and Open an API Account

Choose from:

  • Claude, via the Anthropic API, with full Hebrew support and excellent vision capabilities
  • Grok, via the xAI API, a solid competitor that is sometimes lower cost
  • Direct interface, the web.claude.ai website or a similar platform for one-off processing

If you are running ongoing automation (dozens of reports per month), use the API with a script or a workflow inside Make (Zapier).

Step 2: Prepare Your Prompts (Prompt Engineering)

Write a clear instruction that tells the AI exactly what to do:

אתה חוקר דוחות משכנתא בעברית.
עבור הדוח המצורף, חלץ את הנתונים הבאים בדיוק:
- שם הלווה
- סכום הקרן המקורי
- שיעור הריבית (סטטי או משתנה)
- תקופת ההלוואה בחודשים
- התשלום החודשי
- סוג ההלוואה (בטוח / לא בטוח)
- תנאים מיוחדים (הנחה ראשונית, תקופת שפעול, שינוי ריבית עתידי)

העתק טקסט בדיוק כמו שהוא מופיע בדוח. אם אינך בטוח בערך, ציין "לא מוגדר" ולא תשומות.
הנתונים יתא בשורה אחת מופרדת בפסיקים (CSV) או בטבלת Markdown.

Every prompt should be:

  • Clear, no metaphors or comparisons
  • Grammatically correct in Hebrew, models respond better to properly written instructions
  • Specific, not "extract everything," but "extract these 7 fields"

Step 3: Load the Report and Run the Request

With a direct interface:

  1. Open a chat at Claude (web.claude.ai)
  2. Click the attachment icon and upload the PDF or image
  3. Paste the prompt you wrote in the previous section
  4. Send and wait for a response (usually 5-15 seconds)

With API + Python script:

import anthropic
import base64

client = anthropic.Anthropic(api_key="YOUR_API_KEY")

with open("mortgage.pdf", "rb") as f:
    image_data = base64.standard_b64encode(f.read()).decode("utf-8")

message = client.messages.create(
    model="claude-3-5-sonnet-20241022",
    max_tokens=1024,
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "document",
                    "source": {
                        "type": "base64",
                        "media_type": "application/pdf",
                        "data": image_data,
                    },
                },
                {
                    "type": "text",
                    "text": "[your Hebrew prompt goes here]"
                }
            ],
        }
    ],
)

print(message.content[0].text)

Step 4: Review and Correct

  1. Visual check, compare the output against the original report with your own eyes
  2. Data validation, confirm that amounts match and that conditions were not "invented"
  3. Code-level check, if this output will be automated in a loop, test at least 10 reports manually before running at scale
  4. Prompt refinement, if the AI made a mistake (for example, mixed up two columns), improve the prompt before the next request

Step 5: Integrate into Full Automation

If you have hundreds of reports, build a workflow:

  • Make (Zapier), build a trigger ("file uploaded to a Google Drive folder") connected to the Claude API, then save results to a spreadsheet or data table
  • Google Apps Script, write a script that sends requests to the Claude API automatically every morning
  • Python + Scheduler, run a scheduled script that scans a folder and stores data in a database

Common Mistakes to Avoid

MistakeCauseFix
"Extract everything" without specifying fieldsAI outputs irrelevant dataList specific fields in the prompt
Hebrew without proper punctuationThe model reads ungrammatical Hebrew less accuratelyWrite prompts in correct, standard Hebrew
Not checking the first resultErrors propagate across all reportsManually verify 3-5 reports before running at scale
Ignoring "minor" conditions (footnotes)Expected amounts or terms may be wrongInstruct the AI to look for "all" conditions, including small sections of the report
Unstructured storageData gets "lost" or duplicatedSave in a structured format (CSV, JSON) with a timestamp

A Concrete Israeli Example

Suppose you receive a Hebrew mortgage report from Bank Hapoalim. The report includes:

  • Page 1: an image on the left with the logo and basic data
  • Pages 2-3: a payment table with 12 rows (one per month)
  • Page 4: notes and formulations of conditions

You run this prompt:

דוח משכנתא של חברה משכנתא בעברית.
חלץ:
1. שם הלווה (מעמוד 1)
2. מס' ההלוואה
3. סכום קרן קיים (לא הקרן המקורית)
4. סכום התשלום החודשי הנוכחי
5. שיעור ריבית נוכחי (& אם משתנה)
6. תאריך סיום משוער
7. "דגלים" של תנאים חריגים (הנחה בתקופה ראשונה, עמלה משכנתא, ביטוח חובה וכו')

פלט: CSV עם עמודה לכל שדה. העתק מספרים בדיוק כמו שהם מופיעים.

The AI outputs:

Shimon Cohen,34567,850000,4250,4.95,1.2.2028,הנחה 0.5% לשנה ראשונה; עמלת ניהול 0.1% שנתית

Within seconds, you never had to open the report manually.

How to Choose Between Simple and Complex Automation

Use the direct interface (web.claude.ai) when:

  • You have up to 10-20 reports per month
  • It is a one-off report or an initial test
  • You are in exploration mode, not production

Use API + script when:

  • You have 50 or more reports per month
  • The process runs on a regular cycle (weekly or daily)
  • You want minimal errors and an audit trail

Use Make/Zapier when:

  • You are not comfortable with code but need user-friendly automation
  • Reports arrive via email or Google Drive
  • You also want results saved in a table (Google Sheets)

When to Bring in a Professional

If you are embedding this in a large organization, it is worth bringing in someone who can:

  1. Prepare prompts for organizational conditions (every bank and mortgage advisor is different)
  2. Review the output at the start (to catch systematic errors)
  3. Build a script or workflow in a structured way
  4. Handle errors that may arise (clipped scans, unusual reports)

A practical AI course or a private lesson with an expert helps set up this process correctly from the beginning.

The Bottom Line

Automating data extraction from Hebrew mortgage reports with AI is practical today. It requires a clear prompt and an initial review, and it saves significant person-hours. You do not need programming skills to get started, a direct interface in Claude is enough for a few dozen reports. For larger-scale automation, an API with a small script or a Make workflow is the better path.

If this matters to your organization, or you manage resources and want to understand how a process like this works in depth, I offer a private lesson in data analysis with AI or a low-cost course for your team through academy.

Further Reading

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →