> For the complete documentation index, see [llms.txt](https://docs.tallygo.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tallygo.ai/get-started/how-tally-works.md).

# How Tally works

Financial operations teams manage billing across a huge variety of shipments, clients, and service types — each with their own contracts, rate structures, and documentation requirements. Generating accurate invoices at scale, and getting them out the door quickly, is one of the most operationally demanding parts of the business.

Tally ingests your unstructured commercial and operational data — contracts, rate cards, quotes, SOPs, emails, TMS and WMS feeds — and uses it to generate the perfect invoice. It helps finance teams accelerate and automate the most painful parts of the job: hunting for backup documents, checking for completeness, generating line items, submitting invoices, tracking aging, and managing cash application and remittance.

#### **How it works**

The engine behind Tally is the Logistics Context Graph (LCG) — a living knowledge graph that models your freight operation as a connected network of shipments, carriers, invoices, contacts, and rates.

The LCG resolves fragmented data automatically. It recognizes that "Ref #123" on an invoice and "Container 123" in an email thread refer to the same shipment — and links them without manual mapping, regardless of how your carriers or partners format their data.

<figure><img src="/files/FatVS1tkQSQwYnS8mmSg" alt=""><figcaption></figcaption></figure>

#### What You Can Build

The LCG is designed as an intelligence layer for your applications:

* Agentic assistants: Natural language Q\&A over your entire logistics operation
* Operational/Financial dashboards: Real-time financial insights on a shipment level across all data sources
* Exception management: Detect anomalies by traversing relationships (e.g., a shipment missing expected events)
* Cost analytics: Aggregate charges across shipments, lanes, carriers, and time periods
* Compliance & audit: Full provenance trail from any data point back to its source document
* Workflow automation: Trigger actions based on graph state changes (new shipment, milestone reached, charge discrepancy)

[Learn more about our Logistic Context Graph](/context-graph-overview/introduction.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tallygo.ai/get-started/how-tally-works.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
