> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dema.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Viametrics

> Let the Dema Agent read people-counting visitor data — in/out counts, counter groups, and occupancy — for your stores from Viametrics when you ask.

## Overview

Once Viametrics is connected, the Dema Agent can pull live people-counting data from your Viametrics account directly inside a conversation — in/out counts, counter groups, and occupancy for a store, area, or shopping centre. Viametrics is read-only: the agent fetches data, it does not change anything in your Viametrics account.

The agent only acts when you ask it to.

***

## Prerequisites

* A Viametrics account.
* A **ClientID** and an **apiKey** for the ViaCustomerApi.

<Note>
  Viametrics issues API credentials manually — there is no self-serve key page. You request them from Viametrics Support (see below).
</Note>

***

## Connect Viametrics

<Steps>
  <Step title="Request your credentials from Viametrics">
    Email [support@viametrics.com](mailto:support@viametrics.com) and ask for API access to the **ViaCustomerApi**. They will send you:

    * a **ClientID** — a 1–4 digit number that identifies your company, and
    * an **apiKey** — a secret string.
  </Step>

  <Step title="Connect in Dema">
    In Dema, go to **Agents → Settings → Integrations**, find **Viametrics**, and click **Connect**. In the **ClientID:apiKey** field, paste your ClientID and apiKey joined by a colon, with no spaces:

    ```text theme={null}
    ClientID:apiKey
    ```

    For example: `1234:a1b2c3d4e5...`

    Click **Add**. Dema marks the integration as Active.

    <Note>
      There is a single field — combine both values into one string separated by a colon.
    </Note>
  </Step>
</Steps>

***

## Rotating the key

Ask Viametrics Support for new credentials, then click **Reconnect** on the Viametrics integration card in Dema and enter the new `ClientID:apiKey` string.

***

## Troubleshooting

<AccordionGroup>
  <Accordion title="Dema cannot authenticate">
    Check the format. The **ClientID:apiKey** field must contain your ClientID and apiKey joined by a single colon with no spaces, for example `1234:a1b2c3d4e5...`. Both halves must be present.
  </Accordion>

  <Accordion title="The agent's Viametrics requests are failing">
    Viametrics rate-limits the API. If the agent makes many requests in a short window, some may be throttled — ask narrower questions, or wait and retry.
  </Accordion>
</AccordionGroup>

If you are still stuck, contact [support](mailto:info@dema.ai) with the error message you see.

***

## Additional resources

* [ViaCustomerApi documentation](https://apidocs.viametrics.com/)
* [Viametrics support](https://support.viametrics.com/hc/en-us)
