Skip to content
Back to the app

Site Agent: keep your records on your network ​

The Site Agent is a small program that runs on a machine inside your network, next to Tally and your databases. When an agent with platform checks runs, the checks run on that machine, and only their results are sent to CHANGENTS.AI. Your records stay on your network.

What leaves your network, and what doesn't ​

Stays on your machineSent to CHANGENTS.AI
The rows read from Tally and your databasesEach check's headline figure and key figures (for example, net GST payable)
The SQL statements you wrote for your datasetsExceptions the checks found, and computed tables, cut to 50 rows each
Your database address and passwordThe figures computed for the question asked (for example, output tax minus input tax)
Ledgers and records the question didn't needFor each dataset read: its name, how many records were read, and a SHA-256 fingerprint of them

Start the Site Agent with --share totals to send only the headline and key figures, with no exceptions or tables.

The hosted service checks every answer again when it arrives. It keeps the same limits and drops anything else, so even a modified Site Agent cannot pass raw rows to a run. Once the run has the answer, it is erased from our database. Only a record that the request happened is kept, for a day.

Every answer the Site Agent sends is written in full to outbox.log on that machine, so you can check exactly what left. Run node agent.js status to see where the file is.

Set it up ​

  1. In CHANGENTS.AI, open the Integration Hub and choose Connect Tally. You get a pairing code that is valid for 15 minutes and works once.

  2. On the machine next to your systems, install Node.js 18 or later.

  3. Download the Site Agent from the same card, then run in a command prompt in the download folder:

    tar -xzf changents-site-agent.tgz && cd changents-site-agent
    node agent.js pair ABCD-EFGH
    node agent.js run

The card shows the Site Agent as Online. It also shows Records stay on your network and the datasets it reads.

Datasets: what the Site Agent reads ​

A request from CHANGENTS.AI names a dataset; it never carries a query. You decide what each dataset reads, in the Site Agent's settings file on your machine. A new pairing starts with one dataset: Tally's Trial Balance for the financial year to date, used by every agent.

node agent.js dataset list
node agent.js dataset add "Day Book" --tally "Day Book" --agents gst_compliance
node agent.js dataset add "Open bills" --sql "SELECT bill_no, vendor, amount, due_date FROM ap.bills WHERE paid = false" --agents accounts_payable
node agent.js dataset remove "Day Book"
  • --agents takes a comma-separated list of agent types. Leave it out to make the dataset available to every agent.
  • A Tally dataset can take --from and --to (YYYYMMDD) and --company. Without them it reads the financial year to date, starting in April.

For SQL datasets, run npm install once in the Site Agent's folder, which adds the PostgreSQL and MySQL drivers. Then tell it where your database is:

node agent.js sql set --dialect postgresql --url postgres://reader:password@db.internal/erp

The address and password are saved only in the settings file on that machine. They are never sent. Each dataset must be a single SELECT (or WITH … SELECT). It runs inside a read-only transaction that is always rolled back, so the database itself refuses a write.

What the Site Agent will and won't do ​

These rules are enforced on your machine by the Site Agent itself, whatever the server asks:

  • It reads only the datasets in its settings file.
  • It runs the platform's checks there and sends back results, as in the table above.
  • It refuses raw Tally reads unless you start it with --allow-raw-reads. With that flag, agents can read raw Tally records through CHANGENTS.AI as the Tally Connector allows, and the card says so.
  • It posts approved entries into Tally only if you start it with --allow-posting, as described in Tally.

The hosted service refuses raw reads for a Site Agent that keeps records on site, too. An agent that would otherwise read Tally records directly gets a plain message saying the records stay on your network.

Which agents use it ​

On-site compute is used by agents that have platform checks, such as GST compliance, receivables, payroll and the D&D invoice check, when a dataset is listed for them. The run's reads list each dataset with its record count and fingerprint, marked as read on site, and the agent is told that the records were not sent.

Current limits ​

  • Only the platform checks and the question's computed figures run on site. The bookkeeping engine (books built from bills) does not run on site yet.
  • Agents without platform checks can't read records through a Site Agent that keeps them on site. Their work needs the records themselves.
  • If the Site Agent is offline, the run says so. It does not fall back to reading your records through the cloud.
  • The Tally requests have been tested against a stand-in Tally, not yet against a real TallyPrime. The SQL datasets have not yet been tested against a real database.
  • It needs Node.js. Office networks that only allow internet access through an HTTP proxy are not supported yet.

Served from this deployment. No page view leaves it.