# Integrating with Tally

[Connect your virtual machine to Drivetrain](#connect-your-virtual-machine-to-drivetrain)\
&#x20;  [Step 1: Enable NodeJS](#step-1-enable-nodejs)\
&#x20;  [Step 2: Enable Tally as Server](#step-2-enable-tally-as-server)

[Configure NodeJS script](#configuring-nodejs-script)

### Connect your virtual machine to Drivetrain <a href="#connect-your-virtual-machine-to-drivetrain" id="connect-your-virtual-machine-to-drivetrain"></a>

#### Step 1: Enable NodeJS <a href="#step-1-enable-nodejs" id="step-1-enable-nodejs"></a>

1. Install NodeJs using [this](https://nodejs.org/dist/v20.10.0/node-v20.10.0-x64.msi) link.
2. Open **command prompt** in your virtual machine.
3. Download the Tally script provided to you by your Drivetrain customer success manager.

#### Step 2: Enable Tally as Server <a href="#step-2-enable-tally-as-server" id="step-2-enable-tally-as-server"></a>

1. Open Tally and press **F1 → Settings → Connectivity**.

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

2. Select **Client/Server configuration**.

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

3. Choose the configuration as **Both**.

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

4. **Restart** Tally to apply the changes.

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

5. Now open your browser and go to **localhost:9000**. The below screen should appear.

<figure><img src="/files/48C6K1ZSzENdQnAkP5kf" alt=""><figcaption></figcaption></figure>

### Configuring NodeJs Script <a href="#configuring-nodejs-script" id="configuring-nodejs-script"></a>

1. Open the config.json file and change the following fields:
   1. schema
   2. fromdate
   3. todate

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

2. Add the Bigquery credentials to the json file as provided by your Drivetrain customer success manager.
3. **Execute** run.bat file.

{% hint style="info" %}
That’s it! Let your customer success manager know so they can get started!
{% endhint %}


---

# Agent Instructions: 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://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/accounting-and-erp/integrating-with-tally.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.
