Import Excel vouchers into TallyPrime with AI
tally_draft_vouchers_from_table turns an Excel, CSV or JSON table into TallyPrime draft vouchers after you map the columns. A dry run shows counts, totals and any unknown ledgers first. Nothing is posted until you approve.
Example Prompt for AI Agents (Claude, ChatGPT, Cursor)
Import these 150 sales rows as draft vouchers. Do a dry run first.How to Use tally_draft_vouchers_from_table 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_draft_vouchers_from_table automatically.
TallyMCP validates the balance and returns a local approval link. Open it to inspect entries and approve the write. Nothing writes without your click.
tallymcp.proComplete AI client setup instructions →Input Parameters
{
"file_path": "or rows[]",
"voucher_type": "sales|purchase|payment|journal",
"column_map": "obj",
"dry_run": true,
"allow_create_masters": false
}Expected Output Format
{
"rows": "int",
"drafted": "int",
"totals": "obj",
"needs_decision": "list",
"draft_ids": "list",
"approval_url": "str"
}Specification & Description
Draft TallyPrime sales, purchase, payment or journal vouchers from an Excel/CSV/JSON table with column mapping and a dry-run summary. Use when: bulk voucher import, Excel to Tally. DRAFT: human approval required. Never creates ledgers; unknown names return needs_decision.
Frequently Asked Questions
Do I need TDL or XML knowledge?
No.
Can I do a dry run before drafting?
Yes, dry-run is enabled by default to verify column mapping and totals.