AI assisted form building

What it is

The AI Assistant is a design time capability in the form builder. You open it from the builder toolbar, describe what you want in plain language, and the assistant builds or changes the form you have open.

It is not a one shot generator. Every message starts a run that works the way a careful colleague would:

  1. It loads the form you currently have open.
  2. It sends out analysts in parallel to study your Salesforce schema, the structure and logic of the form, and the theme.
  3. It asks you about anything it cannot settle by looking something up.
  4. It puts a plan in front of you and waits for your approval.
  5. Only then does it edit the form, in small steps, validating after every change and looping until validation is clean.
  6. It applies the result to the builder canvas as an unsaved change and tells you what to check.

Nothing reaches Salesforce until you press Save in the builder, exactly as with any other builder edit.

There is no longer a separate Generate from PDF toolbar button. To build a form from an existing document, attach the document in the chat and ask for it, as described under "Building a form from an attached document" below.

Requirements

AI must be configured on the org. The AI Assistant toolbar button only appears when an AI endpoint is set. The relevant fields on the 3B Forms General Settings custom setting are:

Setting Purpose
3B AI Endpoint The managed AI proxy all AI calls route through. If this is blank, the AI Assistant button is hidden
AI Thinking Model The model used for form building (previously 3B AI Model Name)
AI Vision Model The model used for a turn that has a document or image attached. Falls back to AI Thinking Model when blank
AI Provider Which AI vendor to use: openai, azure, deepseek, gemini or claude
AI Supplier Key Your provider API key. Never exposed in plain text in the browser
Azure AI Endpoint Only required when the provider is azure
Azure AI Version Only used when the provider is azure

See Post install setup and Settings reference.

The designer also needs the usual builder access. See Permission sets.

A walkthrough

A typical session on an empty form looks like this.

1. Open the assistant. Click the AI Assistant button in the builder toolbar. The panel opens with the prompt: describe the form you want, ask for a change to the current one, or attach a PDF or image of a paper form.

2. Say what you want. For example:

Build a volunteer sign up form for Contact. Capture name, email, mobile, the areas they want to help with, their employer, and a repeating section for the shifts they are available for.

3. Watch the run. An activity card appears in the panel showing the current status, which agent is working, the list of steps with their durations, the latest reasoning, token usage with an indicative cost, and a Cancel button. The analysts run in parallel and appear as their own steps.

4. Answer the questions. The assistant asks about anything a lookup cannot settle, as a card with two to four options and a free text box. For example, which object the shifts should be stored on when several plausible child objects exist.

5. Approve the plan. The plan card lists what will change, the question to field mappings with exact API names, the questions that will have no Salesforce field, and the risks. Choose Approve plan, Request changes (with a note saying what to change) or Reject.

6. The form is built. After approval the assistant adds the pages, panels and questions in small steps, checking validation after each one. When validation is clean, the form is loaded onto the builder canvas as an unsaved change.

7. Read the closing message. It says what changed, which questions are not mapped to Salesforce and why, and what is worth a second look.

8. Keep going or save. Send a follow up message to refine, or press Save in the builder to persist the form.

What the assistant can do

You want to Example prompt
Build a new form from a description Build a patient intake form for the Contact object with personal details, GP details and consent.
Build a form from a document Attach a PDF and send Turn this paper form into a digital form on Case.
Extend an existing form Add a section for emergency contact details after the personal details page.
Change wording or behaviour Make the phone question required and change its title to Mobile number.
Map a question to a field Map the Nationality question to the Contact field Nationality__c.
Find the right field What Salesforce field should the "date you joined" question write to?
Change the context object This form should be about Lead, not Contact.
Add a parent record panel Add the volunteer's employer as an Account panel with name, phone and billing city.
Add a repeating child section Add a repeatable section for each shift the volunteer can work.
Add a record backed dropdown Make the Campaign question a searchable list of active campaigns.
Handle picklists Use the Salesforce picklist values for Status instead of my hard coded list.
Add conditional logic Only show the visa questions when Country is not United Kingdom.
Add document parsing Add a driver's licence upload that fills in the name, date of birth and licence number.
Add address lookup Add a UK address search that fills the mailing street, city and postcode.
Use merge tags Greet the person by first name at the top of page one.
Change form level settings Turn on save as draft, show a progress bar, and change the thank you message.
Translate the form Translate this form into French, Spanish and Brazilian Portuguese.
Change the look Make the theme dark with our brand blue as the primary colour and a rounded style.
Review the form What is wrong with this form, and which questions are not mapped to Salesforce?

A pure question, such as the last two examples, is answered without a plan and without changing anything.

The plan card explained

The plan card is the approval gate. Write actions are refused until you approve a plan, so nothing can be changed behind your back.

Section What it tells you
Summary Two or three sentences in plain language describing what the assistant intends to do
Changes Each change with a coloured action chip: Add, Modify, Remove, Context object, Relationship, Style or Translate, plus the target and the detail
Salesforce mappings A compact table of question to Object.Field, with exact API names the assistant verified against your org
Not mapped to Salesforce Every question that will appear on the form but has no Salesforce field, with the reason. Their answers are not saved to a field
Risks What could surprise you: removals, re-mappings, a context object change, filters that still need testing

Three buttons close the card:

The Not mapped to Salesforce list is the most valuable part of the card. Not every question needs a Salesforce field, and sometimes no suitable field exists. The assistant reports those questions rather than inventing a field API name, so this list is where you decide whether to create a field in Salesforce, pick a different one, or accept that the answer is captured on the response only.

Approving a plan applies to that message only. A follow up message starts a fresh plan cycle.

Clarifying questions

When something cannot be settled by looking it up, the assistant asks rather than guessing. The question arrives as a card with a short header, the question in your terms, two to four concrete options with the recommended one first, and a free text box for your own answer.

Typical questions are which object the form is really about, which of several similar looking fields to use, whether a repeating table on a document is a child object or just a layout, or a business rule only you know.

The assistant does not ask what a tool can answer, and it does not ask whether the plan is acceptable: that is what the plan card is for. If you dismiss a question without answering, the assistant continues only with what is unambiguous and tells you what it still needs.

Salesforce objects, panels and relationships

The assistant understands the platform's object model and the conventions the builder enforces. See Context, parent and child objects for the model itself.

Before it creates a panel, the assistant decides which record the section's answers belong to:

A grouping panel never changes the object, so another object's fields always need a bound panel. A parent panel or child section always changes the object, so context object fields must sit outside it.

Points worth knowing:

Example prompts for parent and child objects

Goal Example prompt
Parent panel Add a panel for the employer account with account name, phone and billing city.
Parent panel, specific relationship Add the reporting manager as a parent Contact panel using the ReportsTo relationship.
Child section Add a repeatable section for the applicant's previous employers, with employer, role, start and end date.
Child section options Show the previous employers as tabs, start with one entry, and title each entry "Employer {panelIndex}".
Child section with a filter Only pre load the open cases for this contact in the cases section.
Mixed Everything about the person stays on Contact, but the address questions should write to the related Account.

Fuzzy search and confirmation

The assistant searches your objects and fields approximately, so a partial name, a synonym or a typo still finds the right thing. When more than one object or field is a plausible match, it asks you to confirm which one you mean instead of picking the highest scoring one silently.

Building a form from an attached document

Attach a document in the chat composer with the paperclip button and ask the assistant to build or extend the form from it.

Rule Value
Accepted types PDF and images
Files per message Up to 5
Size per file Up to 10 MB

Files that are too large, too many or of the wrong type are rejected in the panel with an inline message, before anything is sent.

The document is treated as source material, not as instructions. The assistant reads its sections, questions, option lists, repeating tables and required marks, then follows the same procedure as any other request: analyse, ask, plan, build, validate.

Useful prompts:

The document is sent through the managed AI proxy to the provider you configured. Do not attach documents whose contents are not permitted to leave the org under your data policy.

Translations from chat

You can ask the assistant to translate the form:

Translate this form into French, German and Brazilian Portuguese.

It translates every string that has no translation yet into each named language and writes the result into the form definition, leaving existing translations alone. This is the same machine translation used by the builder's translation area, so the results behave identically on the live form. Translation is done last, after the structure is final. See AI translations.

If the provider fails during translation, nothing is translated and the form is left unchanged. The builder's own auto translate remains available as an alternative.

Theme changes from chat

You can ask the assistant to create or change the form's theme:

Make the theme light with our brand green as the primary colour, a larger base font and softly rounded corners.

It reads the current theme, proposes the smallest set of changes that achieves the look, and applies them to the theme as an unsaved change alongside any form changes. Theme changes arrive with the plan like any other change.

The assistant does not edit custom CSS. Custom CSS lives on a Form Style record and is still edited on that record's Salesforce record page. See Form theming and custom CSS.

Validation

After every single edit, and again before the turn can end, the draft is validated. The assistant cannot finish a turn while the draft still has errors it introduced. What is checked:

Check What it catches
Form definition Properties and values the builder itself would reject, and duplicate element names
Expression syntax Broken conditional expressions such as visible if, enable if, required if and calculated expressions, reported with the element name and the position of the error
Question types Use of a question type this builder does not enable
Parent and child bindings The binding value format and the naming convention for parent panels and child sections
Field existence Every mapped field must exist on the object the question actually resolves to: the context object, the parent panel's object or the child section's object
Field type The recorded field type must match the real Salesforce field type
Record backed dropdowns A dynamic dropdown that is missing its object, value field or label field

Two things stop this being obstructive:

When problems cannot be resolved

If the assistant cannot get to a clean result, it does not throw the work away and it does not apply it silently. You get a Review changes card instead: a structural diff of what would change, grouped into Added, Modified and Removed, together with Unresolved validation issues listing the rules the draft still fails and, where relevant, a note that the run stopped early.

Choose Apply changes to load the work onto the canvas and fix the listed issues by hand, or Discard to leave the form exactly as it was. This is usually faster than starting again, because the listed issues are typically a handful of specific questions rather than the whole form.

Salesforce security and field level security

See Security architecture.

Nothing is saved until you press Save

Everything the assistant produces arrives as an unsaved builder change:

Until you press Save, nothing has been written to Salesforce. Leaving the builder without saving discards the assistant's work, exactly like any other unsaved edit. Cancelling a run is always safe: work happens on a private draft, so a cancelled run applies nothing.

Because the assistant takes a copy of the form when your message starts and writes its finished copy back when it applies, manual edits you make on the canvas while a run is in progress can be replaced when the result is applied. Let a run finish, or cancel it, before editing the canvas by hand.

The conversation

Providers and models

All providers route through the managed AI proxy configured in 3B Forms General Settings. How the assistant talks to them differs:

Provider How tools are called Practical notes
openai Native tool calling Recommended
azure Native tool calling Also set Azure AI Endpoint and Azure AI Version
deepseek Native tool calling Newly selectable. deepseek reads images but not PDFs: the AI Assistant sends the selectable text of an attached PDF instead of the file itself, and images go to the AI Vision Model (for example deepseek-flash). A scanned PDF (no selectable text) is rejected with a message; attach it as an image
claude Native tool calling Recommended
gemini Structured fallback Works, but noticeably slower: the assistant proceeds in smaller steps and long runs take more model calls

Guidance that applies whatever you pick:

Limits

Why a run stops

The activity card and the closing message name the reason in plain words.

Reason What it means What to do
Cancelled You pressed Cancel Nothing was applied. Send the request again, more narrowly if it was large
The AI provider failed The provider or the proxy returned an error, or the stream ended early Nothing is applied. Check the provider settings and key, then retry
Repeating without progress The assistant made the same call or hit the same problem three times running Read its last message: it usually names what is blocking. Answer that, or make the request more specific
Step limit reached The run used its allowance of steps Split the request into smaller ones. Consider a more capable model
The reply was cut off The model's output exceeded its length limit twice Ask for less in one message, for example one page at a time

When a run stops early but the draft has already been changed, you are offered the Review changes card rather than losing the work.

Troubleshooting

Symptom Likely cause and fix
The AI Assistant button is not in the toolbar No AI endpoint is configured on 3B Forms General Settings. See Settings reference
There is no Generate from PDF button any more Expected. Attach the PDF in the chat instead and ask for the form to be built from it
Questions were created but nothing is mapped to Salesforce The form has no context object, or no suitable fields are accessible. Ask the assistant to set the context object, then check field level security
A field you expect is never offered It is not visible to the running user, or it is a field the builder cannot place on a form. Grant read access and try again
The plan maps a question to the wrong field Choose Request changes and say which field to use. The plan is revised rather than rebuilt
The assistant keeps asking questions It is refusing to guess. Answer with the option closest to your intent, or give the exact object and field API names in your message
The plan never arrives A pure question needs no plan. If it was a change request, the run probably stopped early: check the reason on the activity card
A run is waiting and nothing is happening It is waiting for you. Answer the question or plan card at the bottom of the panel
Review changes appeared with unresolved validation issues The assistant could not reach a clean result. Apply and fix the listed rules by hand, or discard and retry with a narrower request
Manual edits disappeared They were made on the canvas while a run was in progress and were replaced when the result was applied. Wait for the run to finish before editing by hand
Questions in a panel cannot be mapped to the fields you expect A panel's binding decides the object. Questions in a grouping panel map to the enclosing object, and questions in a parent panel or child section map to that related object. Ask the assistant to bind the panel to the parent or child object, or to move the questions out of it
A child section filter does not filter anything Select the section in the builder and press the Test button, which is what activates the filter
Attached PDF appears to be ignored The selected model may have no file input. Check the model against the provider table above
Everything is slow and takes many steps The provider is gemini, which uses the structured fallback, or the model is a weak one. Try a more capable model
Reported cost looks wrong The figure is an indicative estimate for guidance only. Use your provider's own billing for actual spend
The run vanished after a browser refresh Expected. Runs do not resume across a reload. Send the message again

Tips