Salesforce
If Salesforce is where your customer records and deals live, connect it to JustAI. One connection does three jobs, each turned on separately.
What this integration does
Section titled “What this integration does”| Job | What it does | Guide |
|---|---|---|
| Sync profiles | Copies the Contact and Account fields you choose into customer profiles once a day. | Sync profiles from Salesforce |
| Send events | Sends a customer event when a deal moves to a status you choose, so a journey can start or end. | Start journeys from Salesforce deals |
| Write back | Adds a completed Task to the contact’s Salesforce activity when they click a link in an email JustAI sent, and optionally when a message is delivered. | Log activity in Salesforce |
JustAI sends the email itself, from your own domain. See Send with JustAI. Salesforce is not a delivery provider.
What JustAI reads and writes
Section titled “What JustAI reads and writes”| Reads | The Contact and Account fields you select, Email, HasOptedOutOfEmail, and the deal object and status field you choose. |
| Writes | Completed Tasks on a contact, and on its deal, for email clicks. Optionally one Task per delivered email or text message, with a plain-text copy of what was sent. Only while click notes are on. |
| Never changes | Contact, Account, or Opportunity records. |
Who does what
Section titled “Who does what”| Who | Does |
|---|---|
| Your JustAI team | Turns on Salesforce for your organization. |
| Your Salesforce admin | Creates the integration user and the JustAI Connector permission set in Salesforce. |
| A JustAI organization admin | Connects Salesforce, sets API limits, and turns on profile sync, deal events, and click notes. |
| Your marketer | Builds the journey that deal events start and end, and checks the result in Salesforce. |
Set up from start to finish
Section titled “Set up from start to finish”Follow these steps from top to bottom to go from no connection to Salesforce Tasks that show your sales team what each contact received and clicked. Each step links to the page with the full details.
Two steps are easy to miss. JustAI writes Tasks only for people that profile sync has linked to a Salesforce contact. And a Task shows what the person received only when Also log sends is on.
1. Prepare Salesforce
Section titled “1. Prepare Salesforce”Your Salesforce admin does this part. Prepare Salesforce lists every permission.
-
Create a dedicated integration user for JustAI.
-
Create the JustAI Connector permission set and assign it to the integration user. It grants Read on Contact, Account, and the deal object and the fields JustAI reads, Read and Create on Task with edit access to the Task fields JustAI fills in, API Enabled, and View All Records or matching sharing rules.
-
Optional: add the
JustAI_Event_Key__cfield to Task, so JustAI writes each note exactly once, even when it retries.
2. Connect and configure JustAI
Section titled “2. Connect and configure JustAI”A JustAI organization admin does this part, in Settings, then Integrations.
-
Connect Salesforce. Select Add, then Salesforce, choose Production or Sandbox, and select Connect Salesforce. Sign in as the integration user when you approve. See Connect Salesforce.
-
Check the API limits. Under API usage, select Edit limits. By default, JustAI makes at most 2,000 Salesforce API calls a day for this connection. It also pauses when your whole org has used 80% of its daily allowance. See Keep API usage in check.
-
Turn on profile sync. Under Profile sync, select Set up, choose the User ID field and the fields to sync, and select Start sync. This step is required for Tasks. Profile sync links each JustAI profile to its Salesforce contact, and JustAI writes Tasks only for linked contacts. See Sync profiles from Salesforce.
-
Turn on deal events. Under Deal events, select Set up. Choose the deal object, its status field, and its contact field. Then map each status that matters to an event name, such as
deal_approvedanddeal_funded. Under Event details, keep only the deal fields your journeys need and the integration user can read. Under How often to check, start with every 5 minutes. Checking more often sends events sooner but uses more of the daily call limit. Select Turn on deal events to save and start them. See Start journeys from Salesforce deals. -
Turn on click notes. Under Click notes, turn on the switch. Then turn on Also log sends, so each delivered email or text message adds a Task with a copy of what was sent. For an email, that copy is the subject and a plain-text version of the body. To change how many notes JustAI writes in a day, select Edit daily limit and set Notes a day. See Log activity in Salesforce.
3. Build the journey
Section titled “3. Build the journey”Your marketer does this part.
-
Under Starts when, choose Event triggered and the deal event that should start the journey, such as
deal_approved. -
If one person can have several deals, set Applies to to the deal ID field, such as
opportunity_id, so each deal gets its own run. See One run per deal. -
Under Exit conditions, add the deal event that means the deal has moved on, such as
deal_funded. Then add a filter so it ends only this deal’s run:opportunity_idmatches this entry’sopportunity_id. Without the filter, funding one deal stops the journey for every deal that person has. -
Send email with JustAI, from your own domain. See Send with JustAI. Text messages are logged only when their provider reports delivery to JustAI. See Also log sends for which providers do.
4. Check your work end to end
Section titled “4. Check your work end to end”Use a test contact whose email address is an inbox you can open and that no JustAI profile uses yet. Profile sync doesn’t link a contact whose email already belongs to a JustAI profile. Proofs aren’t logged in Salesforce, so enter the journey the way a customer would.
-
In Salesforce, create a test contact with your email address and a test deal linked to it. Give the deal a status that doesn’t start the journey, such as one before approval, so the journey starts only when you change it in step 3.
-
In JustAI, open your Salesforce connection and select Sync now from the profile sync menu. When the sync finishes, confirm that your test contact isn’t under People to review. A contact listed there, for example as Email already in JustAI, isn’t linked and gets no Tasks.
-
Publish the journey. Then, in Salesforce, move the test deal to the status that starts it.
Within one check interval, the deal events panel counts an event sent, and the journey sends you its first email.
-
Open the test contact in Salesforce. A completed Task named
JustAI: sent "<message name>"is on the activity timeline. Its Comments show when the email was delivered, then its subject and body. -
Click a link in the email. Within a few minutes, a completed Task named
JustAI: clicked "<site>"appears on the same timeline. -
Move the test deal to the status that ends the journey. You receive no more messages from it.
If nothing appears in Salesforce
Section titled “If nothing appears in Salesforce”Check these causes in order:
- The contact isn’t linked. JustAI writes no Task for a person whom profile sync hasn’t linked to a contact. Run Sync now, then check People to review in the profile sync panel. See People to review.
- Click notes or Also log sends is off. With click notes off, JustAI writes nothing. With Also log sends off, JustAI logs clicks but not sends.
- Task access is missing. Salesforce refuses every note, and the click notes panel counts them as notes Salesforce refused. Ask your Salesforce admin to grant Read and Create on Task in the JustAI Connector permission set, and edit access to every Task field listed in Prepare Salesforce. Salesforce also refuses notes when one of those fields isn’t editable.
- The API budget ran out. A panel shows Paused: API budget, and work resumes when the day resets or your org’s usage drops. 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. See Keep API usage in check.
- The daily note limit was reached. The click notes panel counts notes over the daily limit. JustAI doesn’t write those notes. Raise Notes a day if your sends regularly reach the limit.
Hand replies to a partner
Section titled “Hand replies to a partner”JustAI doesn’t read or answer replies. If a partner handles replies for you, set the Reply-to of the sender your journey uses to the address they gave you. See Delivery settings. To notify another system when a person reaches a step, add a Call Webhook step to the journey.
