Skip to content
GUIDES#AI data extraction

Extracting Data from Hebrew Electricity and Water Bills with AI: An Automation Guide

Automating data extraction from Hebrew electricity and water bills with AI saves time, reduces manual errors, and enables accurate analysis of consumption and charges at the speed required for personal or organizational budget management.

Yaakov Tzedek
Yaakov Tzedek · AI expert·7 min read
THE BOTTOM LINE
  • A practical guide to using AI for automatic extraction of consumption and charges from Hebrew electricity and water bills, without missing critical data.
DID YOU KNOW?

Most Israeli utility bills combine tables, free text, and embedded elements within a single PDF file, making manual reading error-prone and automation without AI nearly impossible.

Opening

Automating data extraction from Hebrew electricity and water bills with AI saves hours of manual work, cuts down on errors that cause missed discounts or overpayments, and enables real-time analysis of consumption and charges. At this point, tools like Claude and Claude Code can read Hebrew PDFs, extract both unstructured and structured data, and even generate automated reports and alerts, all without any professional coding knowledge.


What Is Automated Data Extraction from Electricity and Water Bills?

This is a process in which artificial intelligence reads a PDF or image of a Hebrew electricity or water bill, identifies key categories such as:

  • Total charge amount
  • Consumption in kilowatt-hours (kWh) or cubic meters (m³)
  • Billing period (from date to date)
  • Price per unit
  • Discounts or adjustments
  • Provider and account number

And then produces structured output (a table, CSV, or spreadsheet) that can be used immediately for analysis, comparison, or alerts. This is a significant departure from manual reading, where human error and wasted time are unavoidable.


Why Does This Matter?

In Israel, electricity and water bills vary in design and structure across companies and from year to year. They can be packed with multiple tables, varying text sizes, and graphic elements. Manually reading dozens or hundreds of bills not only consumes valuable time, it also introduces transcription errors. An AI that understands Hebrew can handle these irregularities naturally.

For companies managing hundreds of locations, or for social workers tracking the consumption of multiple households, a 2-3% improvement from automated extraction translates to savings of thousands of shekels and working hours per year.


Step 1: Choosing the Right AI Tool

Claude, the Best Starting Point

Claude by Anthropic is currently the best model for Hebrew. It:

  1. Understands natural Hebrew, electricity bills with notes, tables, and mixed text.
  2. Supports PDFs and images, upload a PDF directly to the web interface or via the API.
  3. Requires no code, a simple chat interface is available at claude.ai.
  4. Offers an API, for full automation through Python or Node.js code.

Claude Code, for a Full Implementation

If you want automation that processes new bills on a regular schedule (daily, weekly), Claude Code can write code that processes files in a folder, extracts the data, and saves everything to a spreadsheet or database.


Step 2: Preparing Your Bills and Files

Collecting and Organizing Files

  1. Export every bill as a PDF from your provider's account page (Israel Electric Corporation, Southern Electric, Mekorot Water, etc.).
  2. Use a consistent file name: electricity_2025-01-15_account-123456.pdf or water_2025-01-10_address-tlviv.pdf, this will help you track what has already been processed.
  3. Central folder: Create one folder containing all the monthly or annual bills you want to process.

Checking Bill Quality

Before upgrading to full automation:

  • Confirm the file is readable (not poorly scanned).
  • Verify the text is selectable. If it is image-only, you will need OCR (which Claude can handle, but it is slower).
  • If you have older bills in a completely different format, consider processing them separately.

Step 3: Proof of Concept with Claude

1. Go to Claude.ai

Open https://claude.ai. You will need a free account or a Claude Pro subscription.

2. Upload a Sample Bill

On the left side of the chat box, click "Attach" (the paperclip icon) and upload a PDF of a Hebrew electricity or water bill.

3. Request Automatic Extraction

Paste the following prompt (natural Hebrew):

חלץ מהדוח המצורף את הנתונים הבאים בפורמט JSON:
- סכום החיוב הכולל (בשקלים חדשים)
- צריכה בקוב (m³) או קילוואט-שעות (kWh)
- תקופת החיוב (מתאריך ועד תאריך)
- מחיר ליחידה
- מספר הספק / חשבון
- כל הנחה או התאמה שצוינו

וודא שהפלט הוא JSON תקין ולא טקסט חופשי.

4. Check the Output

Claude will return JSON like this:

{
  "billing_amount_nis": 450.75,
  "consumption_kwh": 125,
  "billing_period_start": "2025-01-01",
  "billing_period_end": "2025-01-31",
  "price_per_unit": 3.60,
  "account_number": "123456",
  "discounts_nis": 0,
  "confidence": 0.98
}

Compare this yourself against the original bill. If the figures match 100%, you are ready to move on. If there are discrepancies of more than 2%, check what was missed (for example, a hidden discount on page two).


Step 4: Building Automation with Claude Code

If you want to process bills from a folder repeatedly:

Use Claude Code to Write a Script

Open https://claude.ai (or Claude Pro) and paste this request:

כתוב סקריפט Python שקורא את כל קובצי ה-PDF בתיקייה 
./bills ומחלץ מכל אחד:
- סכום חיוב
- צריכה
- תקופת חיוב
- מספר ספק

שמור את כל הנתונים לתוך CSV בשם output_bills.csv
הנח שהדוחות בעברית ויכולים להיות בפורמטים שונים.

Claude Code will begin writing code that uses PyPDF2 or pdfplumber together with the Claude API to read and extract the data.

Run the Script Locally

  1. Copy the code into a file called extract_bills.py.
  2. Install the dependencies: pip install pdf2image anthropic python-dotenv.
  3. Set your API key: export ANTHROPIC_API_KEY="your_key_here".
  4. Run it: python extract_bills.py.
  5. Review the generated output_bills.csv.

Step 5: Automatic Alerts and Consumption Analysis

Once the data is extracted, you will want to:

1. Alert on Unusual Charges

If the current bill is more than 20% above the average of the previous 3 months, send an alert by email or SMS.

Example logic:

if (current_amount > average_3_months * 1.2):
  send_alert("Unusual electricity consumption - check for a fault or abnormal usage")

2. Trend Analysis

Logging monthly consumption in a spreadsheet (Google Sheets or Excel) lets you:

  • See whether consumption is rising or falling consistently.
  • Compare across seasons (summer vs. winter due to air conditioning).
  • Plan your budget.

3. Integration with Google Sheets or Zapier

If you are using the Anthropic API (Claude API), you can:

  1. Google Sheets integration: Send extracted data directly to a spreadsheet using Apps Script or Zapier.
  2. Automation: This makes the entire process fully automatic when a new PDF is uploaded to a Google Drive folder.

Concrete Example: A Company with 50 Locations

A service company with 50 branches in Israel received separate electricity and water bills for each branch every month. The comparison:

  1. Manually with 1 employee: 3-4 hours per month (50 bills × 5 minutes each = roughly 4 hours). Errors: approximately 5% of data (2-3 incorrect charges).
  2. With automation: One employee uploads all 50 files to a folder at the start of the month. The script extracts everything within 10 minutes. Manual spot-check of samples: 30 minutes. Total: 40 minutes per month. Errors: less than 0.5% (only rare misses such as text that is too small).
  3. Annual savings: Roughly 45 working hours, plus a reduction in billing errors, equals savings of approximately 15,000-20,000 ILS per year (depending on the hourly labor cost).

Common Mistakes in Automated Extraction

MistakeCauseSolution
Undetected discountAI misses a discount in a small line or gray textManually verify discounts; explicitly ask the AI to search for every reduction
Consumption summed as a chargeMulti-page bill with a summary that merges into the chargeMake sure the AI prompt distinguishes between consumption and charge
Poor OCRPDF scanned at low qualityRequest a high-quality image (200+ DPI) or the original PDF from the provider's website
Currency and unitsAI writes a quantity without m³ or kWhRequest JSON with explicit units in every field
Wrong account numberAI confuses multiple account numbers in the documentVerify that the prompt identifies the current account number precisely (not from the billing date)

When Should You Implement Extraction Automation?

Implement now if:

  • ✅ You are working with more than 20 bills per month.
  • ✅ Extraction errors are costing you money (overpayments, forgotten charges).
  • ✅ You need real reports on consumption or monthly maintenance.
  • ✅ You have a small budget for tools (claude.ai is free, or Pro at a minimal cost).

Not necessarily yet if:

  • ❌ You have only 1-2 bills per month, manual reading is perfectly manageable.
  • ❌ Your bills are in a very fixed and very clear format, a simple RPA solution may be enough.
  • ❌ You are concerned about sensitive information, resolve this with a professional (legal review, data anonymization).

Going Deeper: Ongoing Quality Control

To make sure the automation does not go off the rails:

  1. Every month: Randomly select 10% of bills and compare the extracted figures against the original bill.
  2. Anomaly alert: Any time consumption changes by more than 30% from the previous month, check manually.
  3. Error log: Keep a list of every mistake you find and its cause (for example, "discount in the bottom table on page 2"). Claude can learn from these new rules going forward.
  4. Annual review: Each year, verify that the bill format has not changed significantly (is the electricity provider still using the same layout?).

Wrapping Up and Next Steps

Automated data extraction from Hebrew electricity and water bills is currently a realistic option for any company or individual struggling with consumption tracking and billing accuracy. Claude and its interface let you run a proof of concept in minutes, and a script built with Claude Code can turn that into a complete pipeline within weeks.

If you want to go further:

This process can be up and running in hours, not weeks. Start today with one bill in Claude.

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 →