The AI chat component embeds a conversational AI support-agent panel into Salesforce and 3B Portals experiences. It renders a chat widget that talks directly to an external n8n workflow (the AI orchestration lives entirely in n8n), so there is no Salesforce Apex chat controller in the middle. You point the widget at an n8n chat workflow, and candidate context rides along on every message so the workflow knows who it is talking to.
Use it wherever a candidate or an internal user needs an always-on assistant: onboarding help ("what do I still need to complete?"), policy Q&A, record-scoped questions, or first-line support that deflects load from the recruiting team. The answer quality, tone, tools, and any record automation are all defined in the n8n workflow, not in Salesforce, so you can change the assistant's behaviour without touching the org.
For the full picture of building and hosting the n8n side, see n8n: AI automation, AI support agents and integration.
Candidates going through credentialling generate a large volume of repetitive questions, and staffing teams do not scale by answering them one by one. Building a bespoke chatbot backend inside Salesforce is expensive and hard to iterate on.
The AI chat component gives you a drop-in assistant surface that delegates all the hard parts (language model calls, conversation memory, knowledge retrieval, and any follow-on actions) to an n8n workflow you control. Salesforce stays a thin, configurable embed: you decide where the widget appears and which workflow it talks to, and n8n does the thinking. Because n8n is the same platform used across b3o for AI automation and integration middleware, one AI backend can serve the chat widget, the AI form component, and your wider automations.
| Placement | What to use |
|---|---|
| Lightning App Builder / record page / utility bar / Experience page | The native AI Agent Chat Lightning component. Its placement targets are Lightning record pages, Community/Experience pages, and the utility bar (so the assistant follows the user across the app). |
| Visualforce page | The managed AIChatComponent Visualforce page hosts the widget directly. Use this for a standalone URL or to iframe into another surface. |
| 3B Portals | The b3p__Portal_Block.AI_Chat_Component portal block (category Interactions, web component tag ai-chat-component). Drag it onto a Portals page and set the traits below. |
| Digital Experience | Embed the Visualforce page in an Experience Cloud page for community/guest candidates. |
Configuration is entirely properties/traits plus one org-level custom setting for the endpoint. There is no custom object or Apex behind this app.
The n8n base URL comes from the custom setting
b3o__Onboarding_Default_Settings__c, field b3o__N8N_Endpoint__c ("N8N
Endpoint"). This is injected into the widget as the AI endpoint. Set it once per
org to your n8n instance. The same setting's b3o__Site_URL__c should also be
populated. See
n8n: AI automation, AI support agents and integration
for how to stand up the endpoint.
| Property | Default | What it does |
|---|---|---|
| Chat Id | (required) | The id of the AI chat workflow in n8n that this widget talks to. This is how you point the widget at a specific assistant. |
| Title | blank | Header title shown above the conversation. |
| Sub Title | blank | Header subtitle. |
| Height | 500px |
Panel height in pixels. |
| Theme Type | light |
light or dark; other values fall back to light. See Design system and theming. |
| Initial Message | blank | A pre-set opening message so the assistant starts the conversation. |
| Input Placeholder | Start typing... |
Placeholder text in the message box. |
| Allow File Uploads | false |
Set true to let the user attach files to the conversation (handled by the n8n workflow). |
| Allowed Files Mime Types | blank | Comma-separated list of MIME types to accept when uploads are allowed. |
The AI_Chat_Component portal block exposes the same options plus the context and
endpoint fields:
| Trait | Default | Purpose |
|---|---|---|
record-id |
{{contactUser.Id}} |
The record the conversation is about (defaults to the portal candidate's Contact). Passed to n8n as context. |
chat-id |
blank | The n8n AI chat workflow id (as above). |
ai-endpoint |
https://n8n.3bapi.com |
The n8n base URL. Override the org default here if this portal targets a different instance. |
title / subtitle |
blank | Header text. |
object-name |
Contact |
The API name of the object record-id refers to; passed to n8n as context. |
action-name |
portal_chat |
A label identifying this conversation surface; passed to n8n so the workflow can branch on where the chat came from. |
initial-message |
Hello! |
Pre-set opening message. |
input-placeholder |
Start typing... |
Message box placeholder. |
allow-file-uploads |
false |
Enable attachments. |
allowed-files-mime-types |
blank | Accepted MIME types. |
On every message the widget sends the conversation context to the workflow so it
can personalise responses and take record-scoped actions. This includes the user
type, the user id, the org id, and the target record (record-id /
object-name) plus the action-name label. Design your n8n workflow to read this
context; see
n8n: AI automation, AI support agents and integration.
The AI chat component is a session app.
Important: the chat messages themselves do not travel through Salesforce, they go directly from the widget to your n8n endpoint. Access control and authentication for the AI backend are therefore the responsibility of the n8n workflow (for example validating the passed context, or requiring a token). Treat the endpoint as a public integration surface and secure it in n8n. Guidance on securing the n8n side is in n8n: AI automation, AI support agents and integration.
b3o__Onboarding_Default_Settings__c (endpoint + site URL) and,
as passed context, the target record (typically Contact).Remember to grant any new objects or fields you add on the
Onboarding_Admin_Full_Permission permission set.