Extract structured data from supplier bill or invoice
tally_extract_document parses a local invoice PDF or image using local or bring-your-own-key models, extracting party, invoice number, date, and line items. It is read-only.
Example Prompt for AI Agents (Claude, ChatGPT, Cursor)
Extract data from 'invoices/bill_101.pdf' for drafting.How to Use tally_extract_document with AI
Open TallyPrime with your company loaded. Ensure the HTTP/XML connector is enabled on port 9000 (F1 > Settings > Connectivity).
In Claude Desktop, Cursor, or ChatGPT, paste the prompt above or type your request in natural language. The AI agent calls tally_extract_document automatically.
The assistant returns deterministically structured data directly in chat. All processing runs locally over loopback; zero telemetry.
tallymcp.proComplete AI client setup instructions →Input Parameters
{
"file_path": "str"
}Expected Output Format
{
"party": "str",
"invoice_number": "str",
"date": "str",
"total_amount": "num",
"line_items": "list"
}Specification & Description
Extract structured accounting data from invoice PDF or image for voucher drafting. Use when: scan invoice, parse bill PDF, OCR receipt. READ-ONLY.
Frequently Asked Questions
Are invoice files sent to external clouds?
Only to your configured AI provider (or fully local via Ollama).
Does it create vouchers automatically?
No, it extracts structured fields for inspection first.