Onboard a Salesforce org for AI jobs

A jobs credential lets a Salesforce org submit work to the 3B AI service and collect the results later. A 3B administrator issues it for the customer's org and region. If you've already received yours, go to Configure 3B Onboarding in Salesforce.

Before you start

Issue the credential

  1. Open the Customer onboarding page for the customer's region and sign in when the browser prompts you. On the standard 3B AI service, open Customer onboarding.
  2. Paste the customer's org ID into Salesforce org ID. Check it against the target org before issuing.
  3. In Expires in (days), keep the default of 365 or enter a positive whole number. For example, enter 30 for a 30-day evaluation. Leave the field blank only if the credential should have no expiration.
  4. Select Issue credential. On Credential issued, check Salesforce org and Region. Record the Credential ID and Expires (UTC) for renewal or revocation. A credential without an expiration displays Never.
  5. Select Copy credential and deliver the full Jobs API credential to the customer's Salesforce administrator through your approved secure channel. If the browser selects the text instead, use its copy command. Copy the value before closing the page or selecting Onboard another org.

Configure 3B Onboarding in Salesforce

  1. In the customer org, open Setup > Custom Settings. Select Manage beside Onboarding Default Settings (b3o__Onboarding_Default_Settings__c).
  2. Edit the Default Organization Level Value. If the org has no default yet, select New at the organization level.
  3. Paste the complete copied value into AI Service Credential (b3o__AI_Service_Credential__c). Paste it as issued. The integration adds the Bearer prefix when it sends a request.
  4. Check AI Provider and AI Supplier Key for the provider the bots use. For the standard service, AI Endpoint defaults to https://ai.3bapi.com/ai. For a regional service, enter the endpoint supplied by 3B and allow its host in Setup > Remote Site Settings. The packaged X3B_AI remote site covers the standard host.
  5. Select Save. If a bot run was paused because its credential was missing or expired, resume the run after saving.

Verify access without submitting a job

From a server-side integration or an API client, request one finished result from the same regional host that issued the credential. This read-only check does not call an AI provider or acknowledge any results.

GET /v1/jobs/results?limit=1 HTTP/1.1
Host: <your-ai-service-host>
Authorization: Bearer <your-jobs-credential>

HTTP 200 confirms the service accepted the credential. For a newly onboarded org with no results waiting, expect this response.

{ "results": [], "more": false }

If a result is already waiting, the response can contain it. Leave it for the integration that submitted the job.

Use the credential in a custom integration

3B Onboarding bots submit jobs and collect their results automatically. If you're building a custom integration, use the same bearer header for every jobs request. For example, an org using OpenAI can submit a short summary request with its own configured model and encrypted supplier key.

POST /v1/jobs HTTP/1.1
Host: <your-ai-service-host>
Authorization: Bearer <your-jobs-credential>
Content-Type: application/json
Idempotency-Key: <unique-work-item-key>

{
  "vendor": "openai",
  "apiKey": "<your-encrypted-supplier-key>",
  "model": "<your-configured-model>",
  "maxTokens": 256,
  "messages": [
    { "role": "user", "content": "Summarize this update in one sentence: the induction is complete and the start date is confirmed." }
  ]
}
Action Request What to do with the response
Submit work POST /v1/jobs Save the jobId returned with HTTP 202. When retrying the same submission, reuse its Idempotency-Key. While the job is retained, the service returns HTTP 200 and the original jobId.
Check one job GET /v1/jobs/<job-id> Check status. A queued or active job is still in progress. A completed or failed job includes its result.
Collect finished work GET /v1/jobs/results Verify each signed result before acting on it. Track processed job IDs so reading the same result twice does not repeat an action.
Acknowledge saved results POST /v1/jobs/ack After saving the outcome, send {"jobIds":["<job-id>"]}. Acknowledgement removes the stored job and result.
Cancel a job DELETE /v1/jobs/<job-id> HTTP 204 confirms removal. If the provider call is already running, it can finish and its result is discarded.

Renew or revoke a credential

To renew access, issue a new credential for the same org and region before the recorded UTC expiration. Replace AI Service Credential in the organization defaults and repeat the access check with the new value. Each credential has its own ID and expiration. To retire the old credential, give its Credential ID to the 3B administrator responsible for revocation.

If a credential was sent to the wrong recipient or may have been exposed, request revocation immediately. Share the Credential ID with support and keep the full jobs credential in your secure handoff channel.

Troubleshooting

What you see What to do
The onboarding form rejects the org ID. Confirm you have the target org's full 18-character ID starting with 00D.
The browser asks you to sign in again, or the page says Admin access is not configured. Confirm you opened the AI admin page for the intended region. Ask the 3B service administrator to confirm your admin access.
You left Credential issued before copying the value. Issue a replacement. If you recorded the unused credential's ID, give it to the 3B administrator to retire.
The access check returns 401 INVALID_CREDENTIAL. Check the regional host and the UTC expiration. Copy the full Jobs API credential into the bearer header. The Credential ID is only a reference. If access is still denied, request a replacement.
A bot reports that AI Service Credential must be set. Open the organization-level Onboarding Default Settings in the org running the bot, save the issued value and resume the run.
The access check succeeds, but a job reports a provider authentication error. Check AI Provider and AI Supplier Key for the customer's provider account. The access check tests only the connection to the 3B jobs service.