Skip to content
Scalekit Docs
Talk to an Engineer Dashboard

Connect AI agents to ClickFunnels

Scalekit connector
Open markdown

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

Tools
56
What they doRead · write · destructive
37 · 15 · 437 read15 write4 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 ClickFunnels connection

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

    Each user opens the link once and enters their ClickFunnels 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
  • clickfunnels_broadcast_getGet one email broadcast with its subject, content, audience and status.Read-only

    Get Email Broadcast

    Get one email broadcast with its subject, content, audience and status. Returns an object with id, public_id, workspace_id, name, subject, preheadline, status, origination_channel_type, origination_channel_id, external_id, and more. Use clickfunnels_broadcast_get for one broadcast.

    Inputs

    broadcast_idstringrequired
    Broadcast ID (numeric id or public id). Example: 1234
  • clickfunnels_broadcast_stats_getGet delivery progress, engagement (opens, clicks) and revenue for an email broadcast.Read-only

    Get Email Broadcast Stats

    Get delivery progress, engagement (opens, clicks) and revenue for an email broadcast. Returns an object with broadcast, currency, timerange, progress, performance, revenue, variants. Use clickfunnels_broadcast_stats_get after sending.

    Inputs

    broadcast_idstringrequired
    Broadcast ID. Example: 1234
  • clickfunnels_broadcasts_listList the email broadcasts in a workspace.Read-only

    List Email Broadcasts

    List the email broadcasts in a workspace. Returns an array of objects with id, public_id, workspace_id, name, subject, preheadline, status, origination_channel_type. Use clickfunnels_broadcasts_list to find a broadcast. Use clickfunnels_broadcast_stats_get for results.

    Inputs

    workspace_idstringrequired
    Workspace ID (numeric id or public id), from clickfunnels_team_workspaces_list. Example: 42000
    afterstring
    Cursor: return records after this ID (use the last ID of the previous page). Example: 1234
    idstring
    A comma-separated list of broadcast IDs to filter by. Example: 1,42
    per_pageinteger
    Records per page, up to 100 (default 20). Example: 50
    sort_orderstring
    Sort direction. One of: asc, desc. Example: descone of ascdesc
    statusstring
    A comma-separated list of statuses to filter by (draft, scheduled, sending, paused, unhealthy, complete, canceled). Example: draft,scheduled
  • clickfunnels_contact_events_listList the activity events of a contact (page views, opt-ins, purchases, emails, notes).Read-only

    List Contact Activity

    List the activity events of a contact (page views, opt-ins, purchases, emails, notes). Returns an array of objects with id, public_id, contact_id, type_key, type_label, occurred_at, actor_id, data. Use clickfunnels_contact_events_list to see what a contact did.

    Inputs

    contact_idstringrequired
    Contact ID. Example: 1234
    afterstring
    Cursor: return records after this ID (use the last ID of the previous page). Example: 1234
    per_pageinteger
    Records per page, up to 100 (default 20). Example: 50
    sort_orderstring
    Sort direction. One of: asc, desc. Example: descone of ascdesc
    typestring
    Comma-separated event type keys. Unknown keys match no events. Example: $order.successful_purchase,$contact.note
  • clickfunnels_contact_getGet one contact with name, email, phone, tags and custom attributes.Read-only

    Get Contact

    Get one contact with name, email, phone, tags and custom attributes. Returns an object with id, public_id, workspace_id, default_shipping_address_id, anonymous, email_address, first_name, last_name, phone_number, time_zone, and more. Use clickfunnels_contact_get for a contact you know the ID of.

    Inputs

    contact_idstringrequired
    Contact ID (numeric id or public id). Example: 1234
  • clickfunnels_contact_notes_listList the notes in a contact's activity tab.Read-only

    List Contact Notes

    List the notes in a contact's activity tab. Returns an array of objects with id, public_id, contact_id, content, created_by_id, occurred_at, created_at, updated_at. Use clickfunnels_contact_notes_list for notes. Use clickfunnels_contact_events_list for all activity.

    Inputs

    contact_idstringrequired
    Contact ID. Example: 1234
    afterstring
    Cursor: return records after this ID (use the last ID of the previous page). Example: 1234
    per_pageinteger
    Records per page, up to 100 (default 20). Example: 50
    sort_orderstring
    Sort direction. One of: asc, desc. Example: descone of ascdesc
  • clickfunnels_contact_tags_listList the tags applied to a contact.Read-only

    List Contact Applied Tags

    List the tags applied to a contact. Returns an array of objects with id, public_id, contact_id, tag_id, created_at, updated_at, tag, contact. Use clickfunnels_contact_tags_list for one contact. Use clickfunnels_tags_list for all workspace tags.

    Inputs

    contact_idstringrequired
    Contact ID. Example: 1234
    afterstring
    Cursor: return records after this ID (use the last ID of the previous page). Example: 1234
    idstring
    A comma-separated list of applied tag IDs to filter by. Example: 1,42
    per_pageinteger
    Records per page, up to 100 (default 20). Example: 50
    sort_orderstring
    Sort direction. One of: asc, desc. Example: descone of ascdesc
    tag_idstring
    A comma-separated list of tag IDs to filter by. Example: 1,2,3
  • clickfunnels_contacts_listList identified contacts in a workspace, optionally filtered by email address or other fields.Read-only

    List Contacts

    List identified contacts in a workspace, optionally filtered by email address or other fields. Returns an array of objects with id, public_id, workspace_id, default_shipping_address_id, anonymous, email_address, first_name, last_name. Use clickfunnels_contacts_list to find contacts. Use clickfunnels_contact_get for one contact.

    Inputs

    workspace_idstringrequired
    Workspace ID (numeric id or public id), from clickfunnels_team_workspaces_list. Example: 42000
    afterstring
    Cursor: return records after this ID (use the last ID of the previous page). Example: 1234
    email_addressstring
    Comma-separated email addresses to match. Example: jane@example.com
    idstring
    A comma-separated list of contact IDs to filter by. Example: 1,42
    is_activeboolean
    Filter contacts by their active status. Pass true to return only active contacts, or false to return only inactive contacts. Example: True
    per_pageinteger
    Records per page, up to 100 (default 20). Example: 50
    sort_orderstring
    Sort direction. One of: asc, desc. Example: descone of ascdesc
    tag_idsstring
    A comma-separated list of Contacts::Tag IDs to filter contacts that had those tags applied to them. Example: 1,42