Skip to content

Gong ​

Gong is a revenue intelligence platform that records, transcribes, and analyzes sales calls and meetings.

Bruin supports Gong as a source for Ingestr assets, and you can use it to ingest calls, transcripts, users, and activity stats into your data platform.

Configuration ​

Step 1: Add a connection to the .bruin.yml file ​

Gong accepts either an API access key and secret or an OAuth access token. Provide one of the two, not both.

yaml
connections:
    gong:
        - name: "gong"
          access_key: "your_access_key"
          access_key_secret: "your_access_key_secret"

Or with an OAuth access token:

yaml
connections:
    gong:
        - name: "gong"
          access_token: "your_oauth_access_token"
          base_url: "https://us-12345.api.gong.io"
  • access_key and access_key_secret: An API access key and its secret. A technical administrator creates them in Gong under Company Settings → Ecosystem → API.
  • access_token: An OAuth access token, used instead of access_key and access_key_secret.
  • base_url (optional): The Gong API base URL. Defaults to https://api.gong.io. OAuth apps must use the api_base_url_for_customer returned with the token.

The access key, or the OAuth token's scopes, need read access to every table you load, for example api:calls:read:extensive for calls and api:calls:read:transcript for call_transcripts.

Step 2: Create an asset file for data ingestion ​

Create a YAML file (e.g. gong_ingestion.yml) inside the assets folder:

yaml
name: public.gong_calls
type: ingestr

parameters:
  source_connection: gong
  source_table: 'calls'

  destination: postgres
  • name: The name of the asset.
  • type: Set to ingestr.
  • source_connection: The name of the Gong connection defined in .bruin.yml.
  • source_table: One of the tables below.
  • destination: The destination platform/type, for example postgres.

Step 3: Run asset to ingest data ​

bash
bruin run assets/gong_ingestion.yml

Available Source Tables ​

TablePrimary KeyIncremental KeyIncremental StrategyDetails
usersid-replaceAll Gong users, active and inactive, with their settings
workspacesid-replaceThe company's workspaces
scorecardsscorecardId-replaceScorecard definitions with their questions
callsidstartedmergeCalls with metadata, parties, CRM context, content, interaction stats, and public comments
call_transcriptscallIdstartedmergeOne row per call with its transcript
stats_activity_day_by_dayuserId, datedatedelete+insertOne row per user and day with the IDs of the calls the user took part in
stats_interactionuserId, datedatedelete+insertOne row per user and day with interaction stats for calls with Whisper turned on

Incremental behavior and limitations ​

  • calls and call_transcripts select calls by start time. Gong has no last-modified time for calls, so edits are picked up only when a later run covers the call's start time again.
  • A call's transcript appears once Gong has processed the recording; the next run that covers the call adds it.
  • The stats tables load whole days in the company's timezone and replace every day in the interval. Without an interval they load the last 30 days. Days that are not over yet in the company's timezone are left for a later run.
  • Gong allows 10,000 API requests per day per company by default, so large backfills can use up the quota.