Create a TallyPrime purchase entry from a bill photo
tally_draft_bill_voucher reads a supplier bill photo or PDF, matches the party and items to your existing TallyPrime masters, checks the GSTIN and totals, shows confidence per field and creates a draft purchase voucher for your approval.
Example Prompt for AI Agents (Claude, ChatGPT, Cursor)
Draft a purchase voucher from this invoice PDF. Show fields you are unsure about.How to Use tally_draft_bill_voucher 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_bill_voucher 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": "str",
"confirm": "fields confirmed",
"allow_create_masters": false
}Expected Output Format
{
"fields": "obj",
"gstin_ok": "bool",
"arithmetic_ok": "bool",
"needs_decision": "list",
"draft_id": "str",
"approval_url": "str"
}Specification & Description
Draft a TallyPrime purchase voucher from a supplier bill photo or PDF using existing party/item masters, with per-field confidence and GSTIN check. Use when: bill to voucher, purchase entry. DRAFT: human approval required. Never creates ledgers; unknown names return needs_decision.
Frequently Asked Questions
What happens if the AI misreads a field?
Low-confidence fields block the draft until you confirm them.
Does it validate supplier GSTINs?
Yes, checksum validation is checked before drafting.