Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to La Growth Machine

Scalekit connector
Open markdown

The La Growth Machine connector lets your AI agent act in each user's La Growth Machine account. Each user connects their own La Growth Machine access token once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 46 tools.

Tools
46
What they doRead · write · destructive
23 · 22 · 123 read22 write1 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 La Growth Machine connection

    In AgentKit > Connections, create a La Growth Machine 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 = 'lagrowthmachine'
    const identifier = 'user_123'
    // Generate an authorization link for the user
    const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
    console.log('Authorize La Growth Machine:', 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: 'lagrowthmachine_get_me',
    toolInput: {},
    })
    console.log(result)
    Terminal window
    npx tsx quickstart.mts

    Each user opens the link once and enters their La Growth Machine 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
  • lagrowthmachine_get_audienceGet details of one audience, including its import progress.Read-only

    Get Audience

    Get details of one audience, including its import progress. Returns id, name, size, type, created and modified dates, and importStatus. Use to follow an import started with import_audience_from_linkedin. Use list_audiences to browse all audiences.

    Inputs

    audience_idstringrequired
    ID of the audience (24-character hex ObjectId). Get it from lagrowthmachine_list_audiences.
  • lagrowthmachine_get_audience_leadsList the leads in an audience with their full lead records, paginated with skip and limit.Read-only

    Get Audience Leads

    List the leads in an audience with their full lead records, paginated with skip and limit. Returns lead profile fields, emails, enrichment status, audiences and status, plus the total lead count. Use to browse an audience. Use search_lead to find one lead across the workspace.

    Inputs

    audience_idstringrequired
    ID of the audience (24-character hex ObjectId). Get it from lagrowthmachine_list_audiences.
    limitinteger
    Maximum number of items to return.default 25
    skipinteger
    Number of items to skip, for pagination.default 0
  • lagrowthmachine_get_campaignGet the configuration and status of one campaign.Read-only

    Get Campaign

    Get the configuration and status of one campaign. Returns name, status, objective, language, channels, audience name and size, identity, and sync and enrichment settings. Use for campaign settings. Use get_campaign_stats for performance numbers.

    Inputs

    campaign_idstringrequired
    ID of the campaign (24-character hex ObjectId). Get it from lagrowthmachine_list_campaigns.
  • lagrowthmachine_get_campaign_lead_statsGet per-lead results of a campaign, such as emails sent, opened and replied, LinkedIn actions and status.Read-only

    Get Campaign Lead Stats

    Get per-lead results of a campaign, such as emails sent, opened and replied, LinkedIn actions and status. Returns a list of leads with their per-channel activity flags, plus count, hasMore and hasLess. Use for lead-level reporting. Use get_campaign_stats for totals.

    Inputs

    campaign_idstringrequired
    ID of the campaign (24-character hex ObjectId). Get it from lagrowthmachine_list_campaigns.
    get_leads_afterstring
    Lead ID. Returns the leads that come after this one (next page).
    get_leads_beforestring
    Lead ID. Returns leads that come before this one, starting from the first lead of the campaign (see the known issue in the description of `hasLess`).
  • lagrowthmachine_get_campaign_messagesList the message templates of a campaign.Read-only

    Get Campaign Messages

    List the message templates of a campaign. Returns each template id, type, channel, HTML content, subject, order and active flag. Use to read messages or to find the templateId for edit_campaign_message. Use get_campaign_steps for the step structure.

    Inputs

    campaign_idstringrequired
    ID of the campaign (24-character hex ObjectId). Get it from lagrowthmachine_list_campaigns.
  • lagrowthmachine_get_campaign_statsGet aggregated performance statistics of a campaign.Read-only

    Get Campaign Stats

    Get aggregated performance statistics of a campaign. Returns audience size, started, completed, converted and skipped counts, reply, relation and channel breakdowns, status counts and per-template stats. Use for campaign totals. Use get_campaign_lead_stats for per-lead results.

    Inputs

    campaign_idstringrequired
    ID of the campaign (24-character hex ObjectId). Get it from lagrowthmachine_list_campaigns.
  • lagrowthmachine_get_campaign_stepsList the sequence steps of a campaign.Read-only

    Get Campaign Steps

    List the sequence steps of a campaign. Returns each step id, type, channel, position, whether it has a message, and its template id and name. Use to find the stepId for add_campaign_step_message. Use get_campaign_messages for message content.

    Inputs

    campaign_idstringrequired
    ID of the campaign (24-character hex ObjectId). Get it from lagrowthmachine_list_campaigns.
  • lagrowthmachine_get_conversation_messagesRead the messages of an inbox conversation, paginated.Read-only

    Get Conversation Messages

    Read the messages of an inbox conversation, paginated. Returns each message id, channel, status, content, sender, direction, date and attachments, plus the total. Use after search_conversations or get_lead_conversations.

    Inputs

    conversation_idstringrequired
    ID of an inbox conversation. Get it from lagrowthmachine_search_conversations or lagrowthmachine_get_lead_conversations.
    pageinteger
    Accepted (integer, 0 or more) but currently has no effect: the 25 most recent messages are always returned.default 0