Building a Hallucination-Free GST Subject Matter Expert
A strategic guide by CA V Manmohan to eliminating AI risks in tax law using custom, anchored AI models (GEMs).
The Risk: AI Hallucinations
Generic AI poses a massive liability for CAs because it frequently hallucinates non-existent tax codes, dates, and case laws, confidently presenting them as absolute facts. Relying on this without a framework is dangerous for tax professionals.
The Solution: GEMS
The GEM approach anchors the AI in verified, accurate frameworks. Gems are custom, personalized versions of AI (like Gemini Gems, Custom GPTs, or Claude Projects) built to act as specialized experts with locked-down knowledge bases.
The Instruction System
To eliminate tax hallucinations, the setup must rely on incredibly strict Instructions and a tightly controlled Knowledge Base. Here is the 6-step prompt design architecture.
Authoritative Persona & Boundaries
The Design: Skips pleasantries, delivers direct answers like a seasoned tax lawyer. Assumes every query is strictly related to Indian GST.
Achieves: Rejects out-of-scope non-finance queries instantly.
Anchoring the Source of Truth
The Design: Tethered to highly curated docs (Bare Acts, ICAI Handbooks, Case Laws).
Achieves: Replaces AI guessing with verified legal text; foundational defense against hallucinations.
3-Phase Verification Engine
- 1. Extraction: Queries uploaded docs for framework.
- 2. Live Verification: Web search on cbic.gov.in for volatile data.
- 3. Synthesis: Prioritizes live law, flags updates with [Statutory Update].
Rigorous Structuring & Citations
The Design: Mandatory bolding of Sections/Rules. "Micro-Citations" at the end of every paragraph detailing exact doc/page/section.
Achieves: Highly scannable, source-backed data that is instantly auditable.
Context-Specific Execution
The Design: Adapts based on query type:
- Litigation: Chronological notice replies.
- Tax Planning: Maximizes ITC, Markdown tables.
- Quantitative: Chronological math breakdowns.
Final Audit & Engagement
The Design: Forces a "Statutory Status & Live Verification Report" before concluding, plus 5 highly relevant follow-up questions.
Achieves: Internal compliance check and deeper investigation.
Platform Setup Guide
A visual 8-step guide to configuring your AI workspace.
Access Gemini
Go to gemini.google.com on your web browser and sign in.

Open Gem Manager
Look for the Gem manager icon (it looks like a jewel) in the left-hand sidebar and click it.

Create New
Click the New Gem button to start creating your custom AI assistant.

Name the Gem
Give it a clear, descriptive title like "GST SUBJECT MATTER EXPERT" and a brief description.

Write Instructions
This is the most crucial step. Be incredibly specific about its role, the formatting you expect, and how it should interact with you.
Instructions.docx in the resources section.
Add Knowledge
Upload reference files, style guides, or link relevant Google Workspace documents (e.g., ICAI GST materials).

Test and Save
Use the preview area on the right to chat with your Gem and ensure it behaves as expected. Once you're happy, click Save.

Final Interface
Our GST SME IS READY! You can now start using the customized AI for professional tasks.

User Manual
Structuring your prompts using specific templates manually triggers the AI's most powerful, specialized sub-routines.
The Golden Rule for Every Prompt
Before diving into specific scenarios, always include these three critical variables to perfectly calibrate the Time/Place of Supply and Valuation Rules:
1. Notice Replies & Litigation
Triggers Rule 3: Legal Defense & Case Structure.
Context: [Business type]
Issue: [Section invoked, allegation]
Demand: [Amount]
Ask: "Draft a legal defense strategy"
"Context: I am an IT exporter. Issue: Received an SCN under Section 73 alleging zero-rated supply without LUT. Demand: 12 Lakh IGST. Ask: Provide a para-wise legal defense."
2. Tax Planning & Structuring
Triggers Rule 4: Tax Planning (Transaction deconstruction).
Context: [Entities, relationships]
Transaction: [Proposed move]
Ask: "Structure this to optimize ITC"
"Context: Real estate developer entering a Joint Development Agreement... Ask: Structure this transaction to legally minimize blocked ITC under Section 17(5)."
3. Quantitative Computations
Triggers Rule 7: Calculation Engine.
Context: [Scenario description]
Values: [Base amounts, dates, ITC]
Ask: "Calculate exact financial exposure"
"Context: Claimed 5 Lakhs ineligible ITC in Jan 2025 and reversed today. Ask: Calculate exact interest liability under Sec 50(3) up to today."
4. Procedural Workflows
"Task: File revocation of cancelled GST. Entity: Pvt Ltd. Ask: Give me the document checklist and exact click-by-click portal navigation."
5. Ambiguous Scenarios
"Scenario: Sending 20L scrap metal to job worker out of state, they will sell directly. Ask: What are my compliance requirements?"
Project Resources
Download the specific prompt files, manuals, and verified case studies associated with this project.
Value Your Opinion
Insightful discussions lead to better solutions. I'd love to hear your thoughts, questions, or feedback.
Share Your Thoughts