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_keyandaccess_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 ofaccess_keyandaccess_key_secret.base_url(optional): The Gong API base URL. Defaults tohttps://api.gong.io. OAuth apps must use theapi_base_url_for_customerreturned 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: postgresname: The name of the asset.type: Set toingestr.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 examplepostgres.
Step 3: Run asset to ingest data
bash
bruin run assets/gong_ingestion.ymlAvailable Source Tables
| Table | Primary Key | Incremental Key | Incremental Strategy | Details |
|---|---|---|---|---|
users | id | - | replace | All Gong users, active and inactive, with their settings |
workspaces | id | - | replace | The company's workspaces |
scorecards | scorecardId | - | replace | Scorecard definitions with their questions |
calls | id | started | merge | Calls with metadata, parties, CRM context, content, interaction stats, and public comments |
call_transcripts | callId | started | merge | One row per call with its transcript |
stats_activity_day_by_day | userId, date | date | delete+insert | One row per user and day with the IDs of the calls the user took part in |
stats_interaction | userId, date | date | delete+insert | One row per user and day with interaction stats for calls with Whisper turned on |
Incremental behavior and limitations
callsandcall_transcriptsselect 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.