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

# Set up and manage live sources

> Connect, query and manage a live source

These steps are the same for every integration. Each integration's page has its own sign-in details, dimensions, metrics and limits.

## Connect a live source

Adding, editing and listing live sources needs the **Developer or Admin role** in the project. In a custom role, that's the `manage:LiveSource` scope. You also need access to the tool itself, and each integration page lists what it needs.

1. On the nav bar, click **Browse** → **Semantic Layer**.
2. Click **Add** → **Live source**.
3. In the **Add a live source** dialog, select an integration, then follow the steps on its integration page.
4. Under **Details**, check the **Name**. People see it in Explore, and agents use it to pick a source.

![The Add a live source dialog listing the integrations you can connect, and a card to request another](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/add-live-source.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=d1e039ead1e2fe4770b9c96f2cf897bc)

The dialog lists the integrations turned on for your organization. When the source is added, Lightdash reads its dimensions and metrics and opens the source's page. Its explores appear in Explore with a **Live** badge, in a folder named after the source.

![The Semantic Layer page with Live sources selected, listing each source's integration, name, queries and explores](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-sources-list.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=b84136d731295e4b5fed4e29a1b27d3c)

You can connect several sources from the same integration, such as one for each account. Give each a clear name, because people and agents use the name to choose a source.

### Without the Developer or Admin role

Anyone who can open the **Semantic Layer** page can still click **Add** → **Live source**. The dialog shows the integrations greyed out, with the notice **You can't add live sources in this project** and "Ask a project admin to add one for you".

### Request an integration

To ask for a tool that isn't listed, click **Request a live source** at the bottom of the **Add a live source** dialog, enter the tool's name and click **Request**. You don't need the Developer or Admin role to request one.

## Dimensions and metrics

Each source starts with the dimensions and metrics its integration offers, plus the ones Lightdash reads from your account, such as custom properties or events. Each integration page lists them. Blue icons mark dimensions and show their type, and orange icons mark metrics and show how they combine across rows, as in Explore.

| Icon | Field |
| - | - |
|      | Dimension of text, number, date, date and time, or yes/no |
| | Metric that adds up across rows |
| | Metric that counts records |
| | Metric that counts each value once |
|    | Average, maximum or minimum. Don't add up rows |
| | Value the tool calculates, such as a rate. Don't add up rows |

To see them, open the source's page and select an explore on its **Explores** card. Only dimensions and metrics marked **In use** appear in Explore and to AI agents. The others show dimmed to people who manage the source.

![The Deals explore of a HubSpot live source, with an Edit button, a field search, and its dimensions listed with their descriptions](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-source-fields.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=66814eab24975049cad9adadf099c4c8)

Click a dimension or metric to change its label, description, **AI hint** and **Group**, or turn **In use** off. Click **Save** to apply. If charts use a field you turn off, Lightdash lists them and asks first. To read the fields from the integration again after you add properties or events in the tool, click **Refresh** at the top of the source's page. You can't add dimensions or metrics of your own, or manage them as code.

![The Country dimension dialog with its label, description, AI hint, Group and an In use switch](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-source-field-details.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=a44c40fa26f8066b6853cf76256a63bf)

### Switch explores on and off

An integration with several explores, such as GitHub's **Pull requests**, **Issues** and **Contributors**, lets you choose which ones people and agents can use. On the source's **Explores** card, click **Edit**, switch explores on or off, and click **Save**. To rename one, or change its description or AI hint, open the explore and click **Edit**.

Switching off an explore that charts use lists those charts and their dashboards first. Until you switch it back on, those charts say the explore is switched off instead of showing results, and agents stop using it.

## Explore a live source

In Explore, open the source's explore, which has a **Live** badge. Pick metrics and dimensions, and run the query. Each run is one call to the integration.

![Explore on a live source with a Live badge, showing a bar chart and results of a metric split by a dimension](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-source-explore.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=b30c609672542906dbb5c3b4a4beaaf5)

Save the result as a chart to add it to a dashboard or a scheduled delivery.

## Ask an AI agent about a live source

Ask in plain language. The agent picks the dimensions and metrics, adds a date filter for the period you mention and builds a chart. Name the tool in your question when the project has more than one source that could answer it. An agent [limited to tags](https://docs.lightdash.com/agents/data-access.md#limiting-which-integrations-an-agent-can-use) uses a source only when they share a tag.

![An AI agent thread answering a question from a live source with a summary, a results table and a bar chart](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-source-agent-answer.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=c958b52956a81554e1ab8d49ebf3fc9a)

If a question needs something a source can't do, the agent says so instead of approximating it.

## Manage a live source

On the **Semantic Layer** page, select the source under **Live sources**. Its page shows a summary, then one card per setting. Click **Edit** on a card to change it.

| Card | What it holds |
| - | - |
| **Explores** | The source's explores and whether each is in use. See [Switch explores on and off](#switch-explores-on-and-off) |
| **Details** | The **Name**, an **AI hint** that helps agents pick this source, and **Tags** for [agents limited to tags](https://docs.lightdash.com/agents/data-access.md#limiting-which-integrations-an-agent-can-use) |
| **Usage** | Charts that use the source, data read, API calls and median latency over the query history retention window, 32 days by default |
| **Caching** | How long the source reuses results, its hit rate, and **Clear**. See [Caching](https://docs.lightdash.com/integrations/live-sources#caching) |
| **Rate limits** | Each limit's use and reset time. **Edit** lowers them. See [Rate limits](https://docs.lightdash.com/integrations/live-sources#rate-limits) |
| **Access** | Who can query the source. See [Limit who can query a source](https://docs.lightdash.com/integrations/live-sources#limit-who-can-query-a-source) |
| **Authentication** | The account or key the source reads. **Test** checks it. In edit mode, **Sign in again** or enter a new token or key |
| **Danger zone** | **Delete**, which removes the source and its explores. Charts that use it stop working |

Click **Refresh** at the top of the page to read the source's dimensions and metrics again.

![A live source's page with its summary and the Explores, Details, Usage and Caching cards](https://mintcdn.com/lightdash/WuPlti30p6CHhcUC/images/integrations/live-sources/live-source-settings.png?fit=max\&auto=format\&n=WuPlti30p6CHhcUC\&q=85\&s=7384a1601f0aab65a0ca45bf18dfdb32)

### Reattach a deleted source

When you add a source and a deleted source of the same integration had a name or saved charts, Lightdash offers to bring it back. In the **Bring back a deleted source?** dialog, pick the **Deleted source** and click **Reattach**. Its charts work again, and its field and explore edits come back. Its AI hint, access rule and tags come back where the new source has none. If the deleted source read a different account, its charts show the new source's data.

Reattach before you save charts on the new source. A source that already has charts can't take a deleted one's place.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.