Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to Gamma

Scalekit connector
Open markdown

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

Tools
23
What they doRead · write · destructive
15 · 8 · 015 read8 write0 destructive
Users sign in with

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 Gamma connection

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

  4. Authorize a user and make your first call

    quickstart.mts
    import { ScalekitClient } from '@scalekit-sdk/node'
    import 'dotenv/config'
    import { createInterface } from 'node:readline/promises'
    const scalekit = new ScalekitClient(
    process.env.SCALEKIT_ENVIRONMENT_URL,
    process.env.SCALEKIT_CLIENT_ID,
    process.env.SCALEKIT_CLIENT_SECRET,
    )
    const actions = scalekit.actions
    const connector = 'gamma'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize Gamma:', link)
    const rl = createInterface({ input: process.stdin, output: process.stdout })
    await rl.question('Press Enter after authorizing...')
    rl.close()
    // Make your first call
    const result = await actions.executeTool({
    connector,
    identifier,
    toolName: 'gamma_list_folders',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their Gamma credentials there. See Authorize a user for the full flow and statuses.

Tools

Pass the exact name to execute_tool
Try in PlaygroundRequest a tool
  • gamma_get_agent_generationGet the status of an agent generation started by gamma_create_agent_generation.Read-only

    Get Agent Generation Status

    Get the status of an agent generation started by gamma_create_agent_generation. Returns generationId, status (pending, completed or failed), gamma with gammaId and gammaUrl once created, result.summary, exportUrl, warnings and credits. Use after gamma_create_agent_generation and poll until status is completed or failed. Use gamma_get_generation for non-agent generations.

    Inputs

    generation_idstringrequired
    Agent generation ID returned by gamma_create_agent_generation. It starts with gen_.
  • gamma_get_analyticsGet document-level engagement metrics for a Gamma.Read-only

    Get Gamma Analytics

    Get document-level engagement metrics for a Gamma. Returns scope, totalViews, uniqueViewers, uniqueEditors, cardCount, lastOpened and a 30-day dailyViews breakdown. Use for an overview. Use gamma_get_card_analytics for per-card data and gamma_list_viewer_analytics for per-viewer data. Needs edit permission; data updates about hourly.

    Inputs

    gamma_idstringrequired
    ID of the Gamma: a file ID or the doc ID from a gamma.app/docs/... URL.
  • gamma_get_card_analyticsGet per-card engagement for a Gamma.Read-only

    Get Gamma Card Analytics

    Get per-card engagement for a Gamma. Returns scope, uniqueViewers, uniqueEditors, cardCount and cards with cardId, cardName, cardPosition, viewTimeSeconds and viewersPercent. Use to see which cards hold attention. Use gamma_get_analytics for the overview. Needs edit permission; data updates about hourly.

    Inputs

    gamma_idstringrequired
    ID of the Gamma: a file ID or the doc ID from a gamma.app/docs/... URL.
  • gamma_get_editGet the status of an AI edit started by gamma_edit_gamma.Read-only

    Get Edit Status

    Get the status of an AI edit started by gamma_edit_gamma. Returns editId, status (pending, completed or failed), gammaId, gammaUrl, pageId, result.summary and credits. Use after gamma_edit_gamma and poll until status is completed or failed.

    Inputs

    edit_idstringrequired
    Edit ID returned by gamma_edit_gamma.
  • gamma_get_exportGet the status of an export started by gamma_export_gamma.Read-only

    Get Export Status

    Get the status of an export started by gamma_export_gamma. Returns exportId, exportAs, status (pending, completed or failed), gammaId, exportUrl when completed, and error details when failed. Use after gamma_export_gamma and poll until status is completed or failed. The exportUrl works for anyone who has it until it expires, so treat it as a secret.

    Inputs

    export_idstringrequired
    ID of the export job, returned by gamma_export_gamma.
  • gamma_get_gammaGet metadata for one Gamma by file ID or by the doc ID in a gamma.app/docs/...Read-only

    Get Gamma

    Get metadata for one Gamma by file ID or by the doc ID in a gamma.app/docs/... URL. Returns id, title, type, url, thumbnailUrl, description, author, createdTime, updatedTime, themeId and archived. Use when you know the Gamma ID. Use gamma_search_gammas to find a Gamma by content.

    Inputs

    gamma_idstringrequired
    ID of the Gamma: a file ID or the doc ID from a gamma.app/docs/... URL.
  • gamma_get_generationGet the status of a generation started by gamma_create_generation or gamma_create_from_template.Read-only

    Get Generation Status

    Get the status of a generation started by gamma_create_generation or gamma_create_from_template. Returns generationId, status (pending, completed or failed), gammaId, gammaUrl, exportUrl, credits and error details. Use after starting a generation and poll every few seconds until status is completed or failed. Use gamma_get_agent_generation for agent generations (ids starting gen_). Requires the generationId from the create call.

    Inputs

    generation_idstringrequired
    ID of the generation to check, returned by gamma_create_generation or gamma_create_from_template.
  • gamma_get_imageGet the status of an image generation started by gamma_create_image.Read-only

    Get Image Status

    Get the status of an image generation started by gamma_create_image. Returns imageGenerationId, status (pending, completed or failed), image with url, width, height, format and savedMediaId, plus warnings, error and credits. Use after gamma_create_image and poll until status is completed or failed.

    Inputs

    image_generation_idstringrequired
    Image generation ID returned by gamma_create_image.