Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Gong

Scalekit connector
Open markdown

The Gong connector lets your AI agent act in each user's Gong account. Each user connects their own Gong API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 69 tools.

Tools
69
What they doRead · write · destructive
40 · 23 · 640 read23 write6 destructive
Users sign in with
Triggers
1, webhook

Setup

  1. Install the SDK

    Terminal window
    npm install @scalekit-sdk/node dotenv
  2. Set your credentials

    Add your Scalekit credentials to your .env file. Find values in app.scalekit.com > Developers > API Credentials.

    .env
    SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
    SCALEKIT_CLIENT_ID=<your-client-id>
    SCALEKIT_CLIENT_SECRET=<your-client-secret>
  3. Create the Gong connection

    In AgentKit > Connections, create a Gong connection. The name you give it is the connection_name your code passes. See Configure connections.

    Console steps with screenshots

    Register a Gong API access key with Scalekit so it can call Gong on behalf of your users. Gong uses HTTP Basic auth: the access key is the username and the access key secret is the password. There is no redirect URI or OAuth app to set up. You need a Gong technical administrator to create the key.

    1. Create a Gong access key

      • Sign in to Gong as a technical administrator and go to Admin center > Settings > Ecosystem > API.
      • Under API, create an access key.
      • Copy the Access Key and the Access Key Secret.
    2. Create a connection in Scalekit

      • In the Scalekit dashboard, go to AgentKit > Connections > Create Connection.
      • Search for Gong and click Create.
      • Note the Connection name. Use it as connection_name in your code, for example gong.
    3. Add a connected account

      A connected account links a user ID in your app to a Gong access key. Add one in the dashboard to test. In production, each user adds their own through the authorization link: they enter their Gong domain, access key and secret on the page it opens.

      In the dashboard, to test

      • Open the connection and click the Connected Accounts tab > Add account.
      • Fill in Your User’s ID, Gong Domain (your Gong workspace domain, such as yourcompany.gong.com), Access Key and Access Key Secret, then click Save.

      From your backend, if your app already has the credentials

      For example, when users enter them on a settings page in your app:

      import { ConnectorStatus } from '@scalekit-sdk/node'
      const { connectedAccount } = await scalekit.actions.upsertConnectedAccount({
      connectionName: 'gong',
      identifier: 'user_123',
      authorizationDetails: {
      details: {
      case: 'staticAuth',
      value: {
      details: {
      domain: 'yourcompany.gong.com',
      username: process.env.USER_GONG_ACCESS_KEY,
      password: process.env.USER_GONG_ACCESS_KEY_SECRET,
      },
      },
      },
      },
      });
      console.log(connectedAccount && ConnectorStatus[connectedAccount.status]);

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • gong_call_getRetrieve basic data for a single Gong call by its ID: title, timing, direction, parties, and system/media info.Read-only

    Get Call

    Retrieve basic data for a single Gong call by its ID: title, timing, direction, parties, and system/media info. For richer data (trackers, topics, CRM associations, interaction stats) with filtering across many calls at once, use Get Calls (Extensive) instead.

    Inputs

    idstringrequired
    Gong's unique numeric identifier for the call (up to 20 digits).
  • gong_call_outcomes_listList all call outcome options configured in the Gong account.Read-only

    List Call Outcomes

    List all call outcome options configured in the Gong account. Returns outcome definitions such as name and ID that can be applied to calls to indicate the result of a conversation.

    Inputs

    This tool takes no inputs.

  • gong_call_users_access_getRetrieve the users who have been given individual access to specific calls through the Gong API (via Add Call Users Access).Read-only

    Get Call Users Access

    Retrieve the users who have been given individual access to specific calls through the Gong API (via Add Call Users Access). Does not report access granted through other means such as sharing, permission profiles, or team membership. Note: Gong implements this as a POST with a filter body even though it is a read-only lookup.

    Inputs

    call_idsarrayrequired
    Array of Gong's unique numeric call IDs to look up access for.
  • gong_calls_ai_content_getRetrieve Gong's AI-generated content for one or more calls, such as the call brief, key points, highlights, and outline.Read-only

    Get Call AI Content

    Retrieve Gong's AI-generated content for one or more calls, such as the call brief, key points, highlights, and outline. This is a separate, more focused endpoint than Get Calls (Extensive) for callers that only need the AI-generated summary content rather than full call metadata, parties, and interaction stats.

    Inputs

    call_idsarrayrequired
    Array of Gong call IDs to retrieve AI-generated content for.
    content_selectorarray
    Which AI-generated content types to include. Valid values: brief, outline, highlights, keyPoints, callSummary. Leave empty to return all available types.
    cursorstring
    Cursor value from a previous API response for paginating to the next page of results.
  • gong_calls_getRetrieve extensive details for one or more Gong calls by their IDs.Read-only

    Get Calls (Extensive)

    Retrieve extensive details for one or more Gong calls by their IDs. Returns enriched call data including participants, interaction stats, topics discussed, and CRM associations.

    Inputs

    call_idsarrayrequired
    Array of Gong call IDs to retrieve extensive details for.
    cursorstring
    Cursor value from a previous API response for paginating to the next page of results.
    from_date_timestring
    Start of the date-time range to filter calls (ISO 8601 format).
    include_mediaboolean
    Set to true to include signed audio and video recording URLs (media.audioUrl and media.videoUrl) for each call. The URLs expire after 8 hours. Gong returns recording URLs only through this endpoint, and the connected credentials need the api:calls:read:media-url scope. Defaults to false.default false
    to_date_timestring
    End of the date-time range to filter calls (ISO 8601 format).
    workspace_idstring
    Optional workspace ID to restrict the results to a specific Gong workspace.
  • gong_calls_listList Gong calls with optional filters for date range, workspace, and specific call IDs.Read-only

    List Calls

    List Gong calls with optional filters for date range, workspace, and specific call IDs. Returns a page of calls with metadata such as title, duration, participants, and direction.

    Inputs

    call_idsstring
    Comma-separated list of specific call IDs to retrieve.
    cursorstring
    Cursor value from a previous API response for paginating to the next page of results.
    from_date_timestring
    Start of the date-time range for filtering calls (ISO 8601 format, e.g., 2024-01-01T00:00:00Z).
    to_date_timestring
    End of the date-time range for filtering calls (ISO 8601 format, e.g., 2024-12-31T23:59:59Z).
    workspace_idstring
    Optional workspace ID to restrict results to a specific Gong workspace.
  • gong_calls_transcript_getRetrieve transcripts for one or more Gong calls by their IDs.Read-only

    Get Call Transcripts

    Retrieve transcripts for one or more Gong calls by their IDs. Returns speaker-attributed, sentence-level transcript segments with timing offsets for each call.

    Inputs

    call_idsarrayrequired
    Array of Gong call IDs whose transcripts to retrieve.
    cursorstring
    Cursor value from a previous API response for paginating to the next page of results.
    from_date_timestring
    Start of the date-time range to filter calls (ISO 8601 format).
    to_date_timestring
    End of the date-time range to filter calls (ISO 8601 format).
    workspace_idstring
    Optional workspace ID to restrict the results to a specific Gong workspace.
  • gong_coaching_getGet coaching data from Gong, including coaching sessions and feedback provided by managers to their team members.Read-only

    Get Coaching Data

    Get coaching data from Gong, including coaching sessions and feedback provided by managers to their team members. Supports cursor-based pagination for large result sets.

    Inputs

    cursorstring
    Cursor value from a previous response for paginating to the next page of results.

Triggers

Triggers send your server an event when Gong finishes processing a call. Subscribe the connection once; it works with Scalekit’s credentials or your own app.

  • gong_call_processedFires once for each recorded call that matches a Gong automation rule, when Gong finishes transcribing and analyzing it. The event carries call metadata, CRM context, participants and stats, not the transcript.Webhook

    Call processed

    Fires once for each recorded call that matches a Gong automation rule, when Gong finishes transcribing and analyzing it. The event carries call metadata, CRM context, participants and stats, not the transcript.

    • Per user

    Needs

    At the provider
    A Gong automation rule for each connected account, with the Fire webhook action, the Signed JWT header auth method and that account's own Scalekit webhook URL. Filter the rule to that account's user, or every matching call in the company is sent to it. Paste the rule's public key into Scalekit before you click Test now
    Scopes
    None

    Settings

    This trigger has no settings.

Set up in Gong

Follow Set up a webhook trigger. A Gong technical administrator creates the automation rule:

StepWhere in Gong
Webhook URLAdmin center > Settings > Ecosystem > Automation rules > + Add Rule. Choose the Fire webhook action, paste the Scalekit webhook URL as the destination, and choose Signed JWT header as the auth method
Public keyOn the same rule, under Signed JWT header, select Show public key. Paste the key into Scalekit as the signing secret
CallsSet the rule’s call filters. Only matching calls send events

A rule applies only to calls processed after you turn it on, and test sends from Gong’s Test now button aren’t delivered. The event doesn’t include the transcript: fetch it with the gong_calls_transcript_get tool.

Workflows

Proxy API call
const result = await actions.request({
connectionName: 'gong',
identifier: 'user_123',
path: '/v2/users',
method: 'GET',
});
console.log(result);
Execute a tool
const result = await actions.executeTool({
connector: 'gong',
identifier: 'user_123',
toolName: 'gong_call_outcomes_list',
toolInput: {},
});
console.log(result);