Connector Guide

Ask the Genie — Salesforce Integration Setup Guide

Connector setup~15 minute readRequires Salesforce admin access

Overview

Ask the Genie is an AI-powered enterprise assistant that connects Salesforce, HubSpot, SharePoint, Gmail, Outlook, Slack, Microsoft Teams, and other business systems into a unified knowledge platform.

This guide explains the steps to connect a hosted Salesforce MCP Server with Ask the Genie using PKCE authentication — no Client Secret required. With Salesforce connected, users can:

  • Search and retrieve information from Salesforce using natural language.
  • Ask questions across documents, emails, chats, meetings, and CRM systems.
  • Receive AI-generated answers with source citations.
  • Organize content into workspaces for teams and departments.
  • Access business knowledge from multiple connected systems in a single interface.

Prerequisites

Before connecting Salesforce to Ask the Genie, ensure that:

  • You have an active Ask the Genie account.
  • You have a Salesforce account with administrator access.
  • You have permission to create External Client Apps in Salesforce Setup.
  • You know which environment you are connecting — Sandbox or Production.
  • You have access to the Ask the Genie administration portal.
Login URLs

If you are using a Sandbox environment, your login URL will be https://test.salesforce.com.

For Production, use https://login.salesforce.com.

Create the External Client App

Follow these steps in Salesforce Setup to create and configure the External Client App that authorizes Ask the Genie to access your Salesforce data.

Open the Salesforce Setup page

Open your browser and go to your Salesforce login URL. Enter your Username and Password and click Log In. Make sure you are logged into the correct environment — either Sandbox or Production — depending on your project requirements.

After successful login, click the gear icon (⚙️) at the top-right corner and select Setup to open the Salesforce Setup Home page.

Salesforce Setup Home dashboard shown after logging in and opening Setup
Step 1 — The Salesforce Setup Home dashboard.

Navigate to External Client Apps

In the Salesforce Setup page, use the Quick Find search box on the left side and type External. Under the Apps section, click External Client Apps, then click External Client App Manager from the submenu. You will now see the list of all existing External Client Apps in your org.

Salesforce External Client App Manager listing existing external client apps
Step 2 — The External Client App Manager.

Create a new External Client App

Click the New External Client App button (top-right corner). A new configuration page will open. Fill in the Basic Information section:

  • External Client App Name — Enter your application name. Example: Salesforce MCP Server.
  • API Name — Auto-generated after entering the app name.
  • Contact Email — Enter your email address.
  • Distribution State — Keep it as Local.
  • Info URL (optional) — Add your project or company website URL if available.
  • Description — Write a short description. Example: “This application is used to connect Salesforce with the MCP Server and Ask the Genie.”

After filling the Basic Information section, scroll down to open API (Enable OAuth Settings). Here you will configure OAuth, PKCE, the Callback URL, and API permissions in the next step.

New External Client App configuration page showing the Basic Information section
Step 3 — Fill in the Basic Information section.

Configure API (Enable OAuth Settings)

4.1 — Enable OAuth

Check Enable OAuth.

4.2 — Set the Callback URL

In the Callback URL field, enter the URL based on the application you are connecting with:

ApplicationCallback URL
Ask the Geniehttps://api.askthegenie.ai/api/v1/mcp-connectors/salesforce/callback
Local Developmenthttp://localhost:3000/callback

Since we are connecting with Ask the Genie, enter this URL:

https://api.askthegenie.ai/api/v1/mcp-connectors/salesforce/callback

Important

This URL is fixed and the same for all users connecting Salesforce with Ask the Genie.

It must be exact — no trailing slash, no extra spaces. Only change this URL if you are connecting to a different application other than Ask the Genie.

4.3 — Add OAuth Scopes

From the Available OAuth Scopes list on the left, select and move scopes to Selected OAuth Scopes (right side) by clicking the arrow (→).

Mandatory scopes — always add these for every project:

  • Manage user data via APIs (api)
  • Perform requests at any time (refresh_token, offline_access)
  • Access unique user identifiers (openid)

Optional scopes — add based on your project needs:

  • Access the identity URL service (id, profile, email, address, phone) — add if your app needs to identify the logged-in user.
  • Access Salesforce hosted MCP servers (mcp_api) — add if you are using a Salesforce Hosted MCP Server.
  • Access all Data Cloud API resources (cdp_api) — add only if you are using Salesforce Data Cloud.
Least privilegeOnly enable scopes your project actually needs. Adding unnecessary scopes increases security risk.

4.4 — Leave these unchecked

  • Introspect all Tokens
  • Configure ID token
API (Enable OAuth Settings) section showing Enable OAuth, the Callback URL field, and the OAuth Scopes selector
Step 4 — Configure the Callback URL and OAuth scopes.

Configure Security Settings

Under the Security section, choose one of the following approaches based on your project requirement.

Option A — PKCE Authentication (recommended, no Client Secret needed)

SettingValue
Require secret for Web Server FlowLeave unchecked
Require secret for Refresh Token FlowLeave unchecked
Require Proof Key for Code Exchange (PKCE) extensionCheck ✅
Enable Refresh Token RotationLeave unchecked
Issue JSON Web Token (JWT)-based access tokens for named usersKeep checked ✅
Limit Idle Refresh Token Time-to-Live (TTL) to 30 DaysLeave unchecked
Enforce Refresh Token IP AllowlistLeave unchecked

Option B — Client Secret Authentication (traditional approach)

SettingValue
Require secret for Web Server FlowCheck ✅
Require secret for Refresh Token FlowCheck ✅
Require Proof Key for Code Exchange (PKCE) extensionLeave unchecked
Enable Refresh Token RotationLeave unchecked
Issue JSON Web Token (JWT)-based access tokens for named usersKeep checked ✅
Limit Idle Refresh Token Time-to-Live (TTL) to 30 DaysLeave unchecked
Enforce Refresh Token IP AllowlistLeave unchecked
This guide uses Option AFor this documentation we are following Option A — PKCE Authentication. You will not need a Client Secret when connecting to Ask the Genie.

Save the External Client App

After completing all the settings above, scroll to the bottom of the page and click the Create button to save your External Client App. Salesforce will create the app and redirect you to the app detail page.

On the detail page, you will find your Consumer Key (Client ID) — copy and save this; you will need it when connecting to Ask the Genie.

No Consumer Secret neededSince we are using PKCE, you do not need the Consumer Secret (Client Secret).
App createdWith the External Client App created and the Consumer Key saved, continue to activate the Salesforce MCP Server.

Activate the MCP Server

Find the Salesforce MCP Server

  1. In the Salesforce Setup page, use the Quick Find search box and type MCP.
  2. Click MCP Servers from the search results.
  3. On the MCP Servers page you will see two tabs — External Servers and Salesforce Servers. Click the Salesforce Servers tab.
  4. You will see a list of available MCP servers in your org.
Salesforce MCP Servers page with the Salesforce Servers tab selected, listing available servers
The MCP Servers page — Salesforce Servers tab.

Identify the correct MCP Server

From the list of servers, find the server named sobject-all. (For example, we use this MCP server, but users can use any hosted MCP server or create their own custom MCP server.)

About sobject-allThe sobject-all server is the standard Salesforce MCP server that provides full access to Salesforce objects (read, write, delete, query). It has 9 tools available and is recommended for connecting with Ask the Genie.

Activate the MCP Server

  1. Check the Server Status column — if it shows Inactive, you need to activate it.
  2. Click the server name sobject-all to open its detail page.
  3. On the detail page, look for the status toggle or Activate button.
  4. Click Activate to change the status from Inactive to Active.
  5. Once activated, the Server Status will show as Active (green badge). ✅

Copy the MCP Server URL

After activating, stay on the sobject-all server detail page and locate the Server URL field. For a Sandbox org, the URL will look like:

https://your-org.sandbox.my.salesforce-apis.com/platform/mcp/v1/sandbox/platform/sobject-all

Copy this URL and save it — you will need it when connecting to Ask the Genie.

Important

Make sure you copy the correct URL:

For Sandbox, the URL will contain sandbox in the address. For Production, the URL will not contain sandbox.

sobject-all MCP Server detail page showing Active status, 9 tools, and the Server URL
The sobject-all detail page — Active status and Server URL.

Verify server details

Before moving on, confirm the following on your MCP Server:

FieldExpected value
Server Namesobject-all
TypeStandard
Server StatusActive ✅
Tools9
URL Copied✅ Yes

Available hosted MCP servers

This is the list of hosted MCP servers and their uses, so you can use any server as required.

Server NameDescription / What it doesWhat is needed to activate
platform/sobject-allProvides full CRUD operations (Create, Read, Update, Delete) and query access for Salesforce objects.Enable MCP Service in Salesforce Setup, configure the OAuth app, and assign proper object permissions.
platform/sobject-readsRead-only access to Salesforce data using queries and searches.Enable MCP Service and provide read permissions for required objects.
platform/sobject-mutationsAllows creating and updating records, but does not allow delete operations.Enable MCP Service and grant create/edit permissions on objects.
platform/sobject-deletesAllows deletion of Salesforce records.Enable MCP Service and grant delete permissions carefully.
platform/api-catalogExposes Salesforce REST APIs as MCP tools for external AI or integrations.Enable API access, OAuth configuration, and API permissions.
platform/flowsAllows Salesforce Flows to be executed through MCP.Active Flow(s), MCP enabled, and Flow access permissions.
platform/invocable-actionsExposes Apex Invocable Methods to AI agents and external systems.Deploy Apex classes with @InvocableMethod and assign Apex access.
platform/data-360Enables querying unified customer data from Data Cloud / Data 360.Salesforce Data Cloud license and Data 360 setup enabled.
analytics/tableau-nextGives access to Tableau dashboards, KPIs, and analytics via MCP.Tableau Next enabled and analytics permissions configured.
custom-mcp-serverCustom-built MCP server for company-specific business logic or APIs.Custom development, deployment, OAuth setup, and endpoint configuration.
MCP Server readyYour Salesforce MCP Server is now Active and the URL is ready. Proceed to configure OAuth and OpenID Connect settings.

Configure OAuth & OpenID Connect

  1. In the Salesforce Setup page, use the Quick Find search box and type OAuth.
  2. Under the Identity section, click OAuth and OpenID Connect Settings.
  3. You will now see the OAuth and OpenID Connect Flows settings page.

Enable the following toggles:

SettingStatus
Allow Authorization Code and Credentials Flows✅ On
Require Proof Key for Code Exchange (PKCE) Extension for Supported Authorization Flows✅ On

Leave all other settings as they are. Changes are saved automatically — no Save button needed.

Salesforce OAuth and OpenID Connect Settings page with Authorization Code and PKCE toggles enabled
Enable Authorization Code and Credentials Flows and the PKCE extension.
OAuth configuredOAuth settings are now configured. Proceed to connect the Salesforce MCP Server with Ask the Genie.

Connect to Ask the Genie

  1. Open Ask the Genie and sign in with your account credentials.
  2. Click your Profile Icon (top-right corner) and go to Settings.
  3. In Settings, click Integrations or Connectors from the left menu.
  4. Click Add Integration or Connect New MCP Server.
  5. Fill in the connection details:
    • MCP Server URL — the hosted MCP Server URL you copied earlier (for example, the sobject-all Server URL), or your custom hosted MCP server URL.
    • Client ID — paste the Consumer Key copied in Step 6.
    • Client Secret — leave blank (not required as we are using PKCE).
  6. Click Connect or Save.
  7. Ask the Genie will redirect you to the Salesforce login page for authorization.
  8. Log in with your Salesforce credentials and click Allow to grant access.
  9. You will be redirected back to Ask the Genie — your Salesforce MCP Server is now connected! ✅
ConnectedOnce Salesforce shows as Connected, continue to verify the connection and configure workspace access.

Verify the Connection

  1. After connecting, go back to the Ask the Genie chat.
  2. Type a test message such as: “Show my Salesforce org info.”
  3. Ask the Genie should respond with your Salesforce user details — this confirms the connection is working correctly. ✅
Congratulations!You have successfully connected your hosted Salesforce MCP Server with Ask the Genie using PKCE authentication — no Client Secret required.

Using Ask the Genie

After setup is complete, users can begin asking questions using natural language.

Sales pipeline questions

  • Which opportunities are closing this month?
  • Show my top open opportunities.
  • Summarize my sales pipeline.
  • Which opportunities have had no activity for 30 days?

Account & contact questions

  • Find contacts associated with Account X.
  • Show recent activity for Account Y.
  • List recently created leads.

Business knowledge questions

  • Search records related to customer onboarding.
  • Find cases discussing pricing changes.
  • Summarize customer feedback from multiple sources.

Example AI response

Ask the Genie retrieves information from connected systems and generates a consolidated answer. The response may include opportunity information, account and contact details, pipeline insights, record references, and source citations.

Citations & Sources

Ask the Genie provides citations whenever source information is available. Sources may include:

  • Salesforce CRM
  • SharePoint documents
  • Emails
  • Meeting transcripts
  • Slack conversations

Disconnecting Salesforce

Important

Disconnecting Salesforce prevents Ask the Genie from accessing new Salesforce data.

Existing indexed information may remain available according to your organization's data retention settings.

Disconnect from Ask the Genie

  1. Navigate to Connectors.
  2. Locate Salesforce.
  3. Click Disconnect.
  4. Confirm the action.

Revoke access in Salesforce

To completely revoke Ask the Genie's access from the Salesforce side:

  1. Log in to Salesforce and open Setup.
  2. Use Quick Find to open External Client App Manager.
  3. Locate your Salesforce MCP Server app.
  4. Deactivate or delete the app, or revoke its tokens from OAuth and OpenID Connect Settings.

After revoking access:

  • Salesforce access permissions will be revoked.
  • Future synchronization will stop.
  • New CRM data will no longer be available in Ask the Genie.
  • Existing indexed content may be retained according to organizational retention policies.
  • Previously generated conversations and insights may remain accessible unless deleted by an administrator.

Privacy & Security

Ask the Genie is designed with enterprise security and privacy considerations. For additional information, refer to:

  • Privacy Policy
  • Terms of Service
  • Security Documentation
  • GDPR Compliance Information

Troubleshooting

IssueWhat to check
Salesforce does not appear connectedVerify that authorization was completed successfully. Confirm the correct Salesforce environment (Sandbox or Production) was selected. Reconnect the integration if necessary.
Redirect / callback errorConfirm the Callback URL in the External Client App exactly matches https://api.askthegenie.ai/api/v1/mcp-connectors/salesforce/callback — no trailing slash and no extra spaces.
No CRM results returnedVerify that the MCP Server (sobject-all) is Active, that the required OAuth scopes were granted, and that the connecting user has object permissions.
Invalid MCP Server URLConfirm you copied the correct URL — it must contain sandbox for a Sandbox org and must not contain sandbox for a Production org.
Access issuesContact your Ask the Genie administrator if you experience permission-related issues.

Support

For assistance with installation, configuration, or troubleshooting: