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

# Gong

At the moment, Ruby is only syncing **[Gong Transcripts](https://help.gong.io/docs/see-a-call-transcript)**.

> [!CAUTION]
>
> **Scope and privacy**
>
> Ruby syncs all transcripts in your Gong workspace. Transcripts marked as Private in Gong are excluded from sync.

Setting up the Gong connection involves the following steps that must be completed by an individual with **admin rights on both Ruby and Gong** (Technical Administrator).

1. On ruby.ad, navigate to **Spaces** > **Connections** and select Gong in the list.

2. Authenticate on Gong, you will then be redirected to a Gong consent screen in order to give Ruby access your Gong workspace.

3. That's it! By default, Ruby will sync all transcripts in your Gong workspace. Transcripts marked as Private in Gong are not synced. The connection will appear under **Spaces > Connections**. Don't forget that to be able to use this data you need to add it to a [Space](https://docs.ruby.ad/docs/user-documentation/admins/spaces-management.md).

> [!NOTE]
>
> **How to check if you are an admin on Gong**
>
> 1. Click on your profile picture/icon in the top right corner of your Gong interface.
> 2. Select "My Profile".
> 3. Navigate to "Workspaces and permissions" (navigation bar on the left).
> 4. Check that the "**Technical administrator**" checkbox is ticked.

### Data synced in an individual Transcript

We synchronize the following in a transcript:

* The text of the transcript and the email addresses of the speakers. Individual lines in the transcript don't include timestamps.
* The URL to the page in the Gong web application where the call is available.
* The duration of the call.
* The **labels** listed in the "Labels" section.

### How fresh is the Data in Ruby?

Upon creating the connection we **immediately** launch an action to sync the data. This operation can take a various amount of time to complete, depending on the amount of transcripts to process.

When a new transcript is added to Gong, **it takes up to 1 hour** to be synced with Ruby.

When syncing transcripts, Ruby attaches the following **labels** to the synced document and include them in it, making the LLMs aware of them:

* The title of the transcript.
* Date of the transcript.
* The language spoken (in ISO-639-2B format: `eng`, `fre`, `spa`, `ger`, `ita`, ...).
* The media used (audio or video).
* The scope of the call (Internal, External).
* The direction of the call (Inbound, Outbound, Conference).
* The participant's emails if exposed by Gong.
* (Optional) The names of the trackers triggered during a call in the format `tracker:{name}`.
* (Optional) The names of the accounts linked to the call in your CRM, in the format `account:{name}`.

**Labels**  allow for additional filtering on data sources selected on the [semantic search](https://docs.ruby.ad/docs/user-documentation/agents/knowledge/search-data-sources.md) tool.

Tracker and account labels are off by default. An admin can turn them on in the Gong connection settings, under **Spaces** > **Connections**, with **Enable Trackers (Keyword and Smart)** and **Sync Account metadata**. These settings only apply to transcripts synced after you turn them on. If you need them on transcripts that are already synced, use your Ruby support channel.

### Gong connection or Gong tools?

The Gong connection syncs your transcripts into Ruby, so agents can search across all your calls and filter them with the labels above.

If you want an agent to look up a specific call directly in Gong, for example to get its summary or its full transcript, add the [Gong tools](https://docs.ruby.ad/docs/user-documentation/agents/tools/gong.md) to that agent. The tools can't search calls by keyword, account, or participant, so for that kind of question, use the connection. You can use both on the same agent.


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