The AI form component embeds an externally hosted, n8n-driven AI form inside Salesforce and 3B Portals experiences. It renders a specific n8n form by id inside the onboarding surface. Like the AI chat component, it is a thin embed: it does no Salesforce Apex work of its own, it simply displays the remote form. All of the form's logic, its questions, conditional branching, AI-assisted capture, validation, and where the responses are stored, lives in the n8n workflow you build.
Use it when an onboarding step is better served by a conversational or AI-driven intake than by a standard 3B form: dynamic questioning, guided data capture, or an intake that needs the same AI backend as your support assistant. The form appears inline in the candidate journey (portal page, Experience site, record page, or utility bar) with no bespoke per-placement code.
For how to build and host the n8n side, see n8n: AI automation, AI support agents and integration.
Some onboarding intake does not fit a fixed field-by-field form: you want dynamic follow-up questions, AI-assisted extraction, or a guided conversational flow, and you want to iterate on it fast without redeploying Salesforce. Rebuilding that inside the org each time is slow and rigid.
The AI form component lets you author the intake once in n8n and drop it into the candidate journey by id. Because the form runs in n8n, the same platform that powers your AI support assistant and integration middleware, you get one place to build AI-driven experiences and one place to route the captured data (into Salesforce via the API, or onward to another system).
| Placement | What to use |
|---|---|
| Lightning App Builder / record page / utility bar / Experience page | The native AI Form Lightning component. Its placement targets are Lightning record pages, Community/Experience pages, and the utility bar. In the Experience/Community editor it shows a preview placeholder instead of loading the live form, and it auto-sizes to the form's height at runtime. |
| Visualforce page | The managed AIFormComponent Visualforce page (/apex/b3o__AiFormComponent?formId=<id>) hosts the form directly. Use this for a standalone URL or to iframe elsewhere. |
| 3B Portals | The b3p__Portal_Block.AI_Form_Component portal block (category Interactions, web component tag ai-form-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 a form id plus the org-level endpoint. There is no custom object or Apex behind this app; the target form is resolved as the n8n endpoint plus the form id.
The n8n base URL comes from the custom setting
b3o__Onboarding_Default_Settings__c, field b3o__N8N_Endpoint__c ("N8N
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.
| Property | Default | What it does |
|---|---|---|
| Form Id | (required) | The production form id from n8n. This is how you point the component at a specific form. |
| Height | 500px |
Panel height in pixels (the component also auto-sizes to the form content at runtime). |
| Theme Type | light |
light or dark; other values fall back to light. See Design system and theming. |
The AI_Form_Component portal block exposes:
| Trait | Default | Purpose |
|---|---|---|
record-id |
{{contactUser.Id}} |
The record the form relates to (defaults to the portal candidate's Contact). |
form-id |
blank | The n8n production form 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. |
The AI form component is a session app.
As with the AI chat component, the form itself is served from n8n, not through Salesforce. Access control and authentication for the form and its submitted data are the responsibility of the n8n workflow; secure the endpoint in n8n. See n8n: AI automation, AI support agents and integration.
b3o__Onboarding_Default_Settings__c (endpoint + site URL). The
form id is the only value that reaches n8n from the embed.Remember to grant any new objects or fields you add on the
Onboarding_Admin_Full_Permission permission set.