Skip to content

Connect Salesforce

Connect your Salesforce org to JustAI once, then turn on each job you need. For what the connection does and the order to set everything up, see Salesforce.

  • Your JustAI team has turned on Salesforce for your organization.
  • You are an organization admin in JustAI, and the account menu shows the environment that should receive the data.
  • Your Salesforce admin has finished Prepare Salesforce: an integration user and the JustAI Connector permission set.
  • The person who approves the connection can sign in to Salesforce as an admin, or as a user allowed to approve connected apps. They don’t create an app or copy API keys.
  • Connect a Sandbox first and try everything on test data. When you’re ready for live data, add your production org as a second connection.

Give this section to the Salesforce admin who sets up access for JustAI. Finish it in Salesforce before you add the connection, or when JustAI reports a field it can’t read.

JustAI reads with the permissions of the user who approves the connection. A dedicated integration user with one permission set keeps that access narrow and easy to review.

  1. Create an integration user. Create a dedicated user for JustAI, such as justai-integration@yourcompany.com, instead of using a person’s account.

  2. Create the JustAI Connector permission set and assign it to the integration user. Grant:

    • Contact: Read on the object, on every field you want to sync, and on Email and HasOptedOutOfEmail.
    • Account: Read on the object and on each Account field you want to sync.
    • Deal object, for example Opportunity: Read on the object, on its status field such as StageName or a custom field like Funding_Status__c, and on the field that links the deal to a contact. Also Read on each field deal events carry: by default the deal’s Amount and its owner’s name and email, unless the JustAI admin removes them.
    • Task: Read and Create, with edit access to Subject, Comments, Status, Due Date, Name, Related To, and Task Subtype, only if you’ll turn on click notes. JustAI fills in these fields and reads its own Tasks to check which notes Salesforce already has.
    • System: API Enabled, unless the integration user’s profile already has it.
    • Record access: View All Records on Contact, Account, and the deal object, unless sharing rules already share every record JustAI should read with the integration user. Read alone returns only records shared with that user, so JustAI would miss the rest without an error.

    JustAI needs no Edit or Delete permission on Contact, Account, or the deal object.

  3. Choose who approves the connection. The person who approves in Salesforce must be an admin or a user allowed to approve connected apps. Sign in as the integration user when you approve, so JustAI’s access matches the permission set.

  4. Optional: add the JustAI Event Key field to Task. This lets JustAI write each click exactly once, even when it retries.

    1. In Salesforce Setup, open Activity Custom Fields and create a Text field.
    2. Name it JustAI_Event_Key__c and mark it External ID and Unique. Salesforce refuses JustAI’s writes on a non-unique External ID unless the user has View All Data.
    3. Give the JustAI Connector permission set edit access to the field. Without edit access, JustAI can’t use the field.

    Without the field, click notes still work: JustAI checks whether Salesforce already has a note before writing it again. See Exactly once or checked first.

Field-level security can hide a field from the integration user. When that happens to a field JustAI is set to read, profile sync shows Needs attention and names the field. Grant Read on the field in the JustAI Connector permission set, or remove the field from the sync, then start the sync again.

The same applies to the deal status field and the contact field: deal events don’t start until the integration user can read them.

  1. In JustAI, open the account menu at the bottom of the left sidebar and select Settings.

    Settings opens on Integrations.

  2. Select Add, then Salesforce.

  3. Under Salesforce org, choose where to connect:

    • Production is your live Salesforce org, or a Developer Edition org.
    • Sandbox is a copy of your org used for testing.
  4. In Connection name, enter a name your team will recognize, for example Salesforce production.

  5. Select Connect Salesforce, sign in to Salesforce, and approve every permission requested.

    You return to the connection in JustAI.

The connection shows Salesforce is connected. and names the connected org. Profile sync, deal events, and click notes each show Set up or a switch below it.

If the connection shows Reconnect needed, JustAI lost access or a permission was declined. Open Connection options, select Reconnect Salesforce, and approve every permission again.

Salesforce gives your org a daily allowance of API calls, shared by every system that reads it, such as an ERP sync. The API usage section on the connection shows two lines:

  • JustAI today: the calls JustAI made today against the limit you set for JustAI.
  • Your org today: your whole org’s calls against its daily allowance, as Salesforce last reported them.

Daily counts reset at midnight UTC. Select Edit limits to change the limits:

Setting Default What it does
Daily call limit for JustAI 2,000 The most Salesforce API calls JustAI makes for this connection in a day. From 100 to 100,000.
Pause at org usage (%) 80 JustAI pauses when your org’s own usage, including other systems, reaches this share of its daily allowance. From 50 to 95.

When JustAI pauses for either reason, each job shows Paused: API budget. Work resumes when the day resets or your org’s usage drops, and waiting notes and profile changes are written then. Deal events read each deal’s status as it is when checking resumes, so a deal that changed status more than once during the pause sends only the event for its latest status.

  • Deal events check Salesforce all day, so their How often to check setting has the biggest effect on usage. Every 5 minutes is 288 checks a day; every minute is 1,440.
  • Start with the defaults. If the connection reaches its limit most days, check deals less often before raising the limit.
  • Run profile sync at a time when your other Salesforce tools are quiet.

Open Connection options and select Disconnect. JustAI stops reading from the org. If no other JustAI connection uses that org, JustAI’s access is removed in Salesforce as well; otherwise those connections keep working.

If Salesforce access can’t be revoked, JustAI still stops using the connection. Retry the disconnect, or ask your Salesforce admin to remove JustAI under Connected Apps OAuth Usage in Salesforce Setup.

Disconnecting doesn’t remove Tasks already written to Salesforce.