Xpersona
T

Tally Skill

CLAWHUB · Unverified

Full-service CA skill for TallyPrime running locally. Read accounting reports (day book, trial balance, P&L, balance sheet, outstandings, GST) and post or up...

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1797a895n009rx1xthf480tk183pbr4:tally-skill
  1. Install using `clawhub skill install s1797a895n009rx1xthf480tk183pbr4:tally-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/abhi152003/tally-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-abhi152003-tally-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

146,587 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
emoji: 🧾
name: tally-prime-ca
version: 1.0.11
author: Maxxit
description: >-
  Full-service CA skill for TallyPrime running locally. Read accounting reports
  (day book, trial balance, P&L, balance sheet, outstandings, GST) and post or
  update vouchers (purchase/sales/payment/receipt/journal, credit note, debit
  note, contra) via TallyPrime XML-over-HTTP. Use when the user mentions Tally,
  accounting entries, invoices/bills, ledgers, outstanding, GST, returns, or
  financial statements.
disableModelInvocation: false
requires:
  env:
    - TALLY_URL
metadata:
  openclaw:
    requiredEnv:
      - TALLY_URL
    bins:
      - curl
      - tallyca
      - scribe
    primaryCredential: TALLY_URL
---

# TallyPrime (CA) Skill

Connect to a **locally running** TallyPrime instance via its **XML-over-HTTP** interface. All requests are HTTP POST to `$TALLY_URL` (commonly `http://localhost:9000`) with an XML body.

- **No cloud API**: TallyPrime must be open/running on the user’s machine.
- **Multi-company**: Always use the correct `SVCURRENTCOMPANY` (exact spelling).

## Hero Use Case: WhatsApp invoice → Tally entry

Goal: zero manual entry for CAs handling many clients.

1. Read bill/invoice (PDF/image) using the mandatory `scribe` extraction workflow below and extract: company, party, GSTIN, date, invoice no, taxable, tax, total, ledger mapping.
2. Ensure masters exist: party ledger, purchase/sales ledger, GST ledger(s), bank/cash ledger (if needed).
3. Post voucher with a **unique GUID**.
4. Immediately fetch the posted voucher back from Tally and review it against the intended entry.
5. Confirm a summary back to the user only after the review passes.

## Mandatory OCR/data extraction from PDFs and images

When the user sends a **PDF, JPEG, JPG, PNG, or scanned invoice/bill image** through any OpenClaw communication channel (including WhatsApp, Telegram, or uploaded files), the agent **must use the globally installed `scribe` CLI** to extract data. Do **not** extract invoice data directly with the LLM, vision model, screenshots, manual reading, or any other OCR/tool unless `scribe` itself fails and the user explicitly asks for an alternative.

Do **not** ask the user whether to use `scribe`. Do **not** ask whether they want extraction. If a PDF/image is provided and the task requires invoice/bill/accounting data, immediately run the relevant `scribe` commands, extract the data, and present the extracted fields to the user for verification before any Tally posting.

### PDF invoice/bill extraction

For PDF files, first detect the PDF type, then extract text directly:

```bash
mkdir -p "scribe-extractions"
scribe type "<input-invoice.pdf>"
scribe extract -f txt "<input-invoice.pdf>" "scribe-extractions/<invoice-id>.txt"
```

Read the generated `.txt` file and parse invoice fields from that text. If the PDF is image-native or extraction quality is poor, use the image/scanned OCR flow below by running `scribe recognize` first, then `scribe extract` on

_meta.json

{
  "ownerId": "kn7dweyva2nw2wthbnpw5ygcnn80hxkd",
  "slug": "tally-skill",
  "version": "1.0.11",
  "publishedAt": 1779428999147
}

reference/errors.md

# Errors & Troubleshooting — TallyPrime XML

This file is a practical troubleshooting guide for CA automation using TallyPrime XML-over-HTTP.

## Quick triage checklist

1. **Server reachable**: `curl -s --max-time 5 "$TALLY_URL"`
2. **Company correct**: `SVCURRENTCOMPANY` exact spelling (including spaces/case).
3. **Date format**: `YYYYMMDD`, and within the company’s configured financial year.
4. **Dependent masters exist**: ledgers, stock items, UOM, voucher types.
5. **Totals match**: Dr/Cr totals equal.
6. **XML escaped**: narration and names don’t contain raw `&`, `<`, `>`.

## Common errors (what they mean + how to fix)

| Symptom / error text | Likely cause | Fix |
|---|---|---|
| Connection refused / timeout | TallyPrime not running or wrong port | Open TallyPrime; confirm port; check `$TALLY_URL` |
| Response doesn’t contain “Server is Running” | Wrong URL or Tally integration not enabled | Verify TallyPrime is running and integration is enabled |
| XML parser throws `ParseError` / "no element found" | Export Data responses are XML fragments (no single root) — this is by design | Use Python regex instead of `xml.etree.ElementTree`; see parsing guide in `reference/reports.md` |
| `curl ... > file` produces truncated or empty file | Shell redirect can silently truncate in compound commands | Use `curl --output /tmp/file.xml` (the `-o` flag) |
| `Could not find Report 'X'` | Wrong `REPORTNAME` | Use report names in `reference/reports.md`; if still failing, verify in TallyPrime Developer |
| `Could not find Collection 'X'` | Collection not available | Use custom TDL pattern (see `reference/reports.md`) |
| `Ledger 'X' does not exist` | Missing ledger master | Create ledger first (see `reference/masters.md`) |
| `Stock Item 'X' does not exist` | Missing inventory master | Create stock item/UOM (see `reference/inventory.md`) |
| `Voucher date is missing` / `The date ... is Out of Range` | Date outside configured FY | Ask user to confirm FY settings in the company; use a valid date |
| `Voucher totals do not match!` | Dr/Cr totals mismatch (or wrong sign conventions) | Ensure totals balance; export a known-good voucher from UI and match signs/tags |
| `DESC not found` | Incorrect envelope structure / wrong request shape | Compare to base templates; ensure `REQUESTDESC` and `REQUESTDATA` are placed correctly |
| `CREATED=0` with `ERRORS>0` | Generic import failure | Inspect response details; reduce to minimal fields; add fields incrementally |
| Silent wrong-company data | Wrong `SVCURRENTCOMPANY` | Confirm exact company name as seen in Tally |

## Import response XML (what to look for)

Tally typically returns an import “statistics” block indicating how many objects were created/altered and error counts.

Common fields include:

- `CREATED`
- `ALTERED`
- `DELETED`
- `ERRORS`
- `EXCEPTIONS`
- “Last Voucher ID imported” (varies)

Rule: treat any non-zero `ERRORS` or `EXCEPTIONS` as a failure and **do not assume** posting succeeded.

## XML escapi

reference/inventory.md

# Inventory (Stock Groups / Items / UOM) + Item Invoices

This file covers inventory masters and itemized voucher patterns for trading/manufacturing clients.

## Conventions

- Inventory masters also use `REPORTNAME=All Masters`.
- For item invoices, prefer **Invoice Voucher View** and include `ALLINVENTORYENTRIES.LIST`.
- If a tag/value is unclear, create one sample in Tally UI and export the voucher/master to XML; then replicate.

## Create Stock Group

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <TALLYMESSAGE xmlns:UDF="TallyUDF">
          <STOCKGROUP NAME="Electronics" ACTION="Create">
            <NAME>Electronics</NAME>
          </STOCKGROUP>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
```

## Create Unit of Measure (UOM) — simple

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <TALLYMESSAGE xmlns:UDF="TallyUDF">
          <UNIT NAME="Pcs" ACTION="Create">
            <NAME>Pcs</NAME>
            <ISSIMPLEUNIT>Yes</ISSIMPLEUNIT>
            <ORIGINALNAME>Pieces</ORIGINALNAME>
            <DECIMALPLACES>0</DECIMALPLACES>
          </UNIT>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
```

## Create Stock Item (minimal)

UOM is commonly required.

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <TALLYMESSAGE xmlns:UDF="TallyUDF">
          <STOCKITEM NAME="ITEM_NAME" ACTION="Create">
            <NAME>ITEM_NAME</NAME>
            <PARENT>STOCK_GROUP_NAME</PARENT>
            <BASEUNITS>UOM_NAME</BASEUNITS>
          </STOCKITEM>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
```

## Create Godown / Location

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <

reference/masters.md

# Masters (Ledgers / Groups) — TallyPrime XML

This file contains templates to create and alter accounting masters that CAs routinely need: groups and ledgers (including address/GST fields where relevant).

## Conventions

- Master operations use `TALLYREQUEST=Import Data` and `REPORTNAME=All Masters`.
- Always include `SVCURRENTCOMPANY`.
- Create dependent masters first (e.g., group before ledger).

## Create Group

Example: create `North Zone Debtors` under `Sundry Debtors`.

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <TALLYMESSAGE xmlns:UDF="TallyUDF">
          <GROUP NAME="North Zone Debtors" ACTION="Create">
            <NAME>North Zone Debtors</NAME>
            <PARENT>Sundry Debtors</PARENT>
          </GROUP>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
```

## Create Ledger (minimal)

```xml
<?xml version="1.0" encoding="utf-8"?>
<ENVELOPE>
  <HEADER><TALLYREQUEST>Import Data</TALLYREQUEST></HEADER>
  <BODY>
    <IMPORTDATA>
      <REQUESTDESC>
        <REPORTNAME>All Masters</REPORTNAME>
        <STATICVARIABLES>
          <SVCURRENTCOMPANY>COMPANY_NAME</SVCURRENTCOMPANY>
        </STATICVARIABLES>
      </REQUESTDESC>
      <REQUESTDATA>
        <TALLYMESSAGE xmlns:UDF="TallyUDF">
          <LEDGER NAME="LEDGER_NAME" ACTION="Create">
            <NAME>LEDGER_NAME</NAME>
            <PARENT>PARENT_GROUP</PARENT>
          </LEDGER>
        </TALLYMESSAGE>
      </REQUESTDATA>
    </IMPORTDATA>
  </BODY>
</ENVELOPE>
```

## Create Party Ledger (Customer / Vendor)

Before creating, collect all required fields from the user:

| Field | Description | Example |
|---|---|---|
| `LEDGER_NAME` | Full legal name of the party | `Sample Suppliers Pvt Ltd` |
| `PARENT` | `Sundry Debtors` (customer) or `Sundry Creditors` (vendor/supplier) | `Sundry Creditors` |
| `PARTYGSTIN` | 15-digit GSTIN of the party | `24AAAAA0000A1Z5` |
| `GSTREGISTRATIONTYPE` | GST registration type | `Regular` / `Unregistered` / `Consumer` / `Composition` |
| `STATE` | State of the party's registered address | `Maharashtra` |
| `PLACEOFSUPPLY` | Usually same as state | `Maharashtra` |
| `ADDRESS` (lines) | Street address (one `<ADDRESS>` tag per line) | `123 Main Road`, `Industrial Area` |
| `MAILINGNAME` | Name to print on invoices (usually same as ledger name) | `Sample Suppliers Pvt Ltd` |
| `OPENINGBALANCE` | Opening balance amount (0 if none; positive = credit, negative = debit) | `10000.00` |
| `APPLICABLEFROM` | GST registration effective date in `YYYYMMDD` | `20170701` |

**Ask the user for every field above before posting. Do not guess GSTIN, state, or opening balance.**

```xml
<?xml version="1.0" enco

Sponsored

Ads related to Tally Skill and adjacent AI workflows.