HelpChatAI for Delphi

Related links: https://www.embarcadero.com/ - https://learndelphi.org/
An in-app AI help assistant for your VCL and FireMonkey applications
Your users do not read the manual: they ask. HelpChatAI puts a chat bubble in the corner of your application, answers "how do I export this grid?" from your own documentation, and knows which screen the user is on while answering. F1 opens it, through the standard Delphi help system, so the HelpKeyword you already wrote keeps working.
| Component | Description |
|---|---|
![]() | TVclHelpChatAI is the VCL component: drop it on the main form - or on any form that deserves an expert of its own - set Active, and you have the bubble, F1 contextual help and the chat panel (a WebView2 TEdgeBrowser), either in its own tool window or embedded in a container of yours. Colours follow the active VCL style. Available from Delphi 10.4 to Delphi 13 |
![]() | TFmxHelpChatAI is the FireMonkey twin (Delphi 12+): same settings, same engine, the chat in a TWebBrowser. F1 through the host form's OnKeyDown, light/dark theme instead of VCL styles. Available only from Delphi 12 to Delphi 13 |
Preview

The CRM demo with HelpChatAI: the assistant answers from the manual of the application, knows the screen the user is on, and fills a form through its actions.
Documentation
The Project Site has thirty-seven pages of documentation, from an empty form to a working chat in the Quick Start to a step-by-step anatomy of a conversation. They cover the VCL and FireMonkey components and their component editor, the providers and the models (Claude, OpenAI, Gemini, local models), several assistants with their profiles, the documentation index, the actions and the skills, attachments, PDF and clipboard, languages, theming, the configuration and its check, running the engine on a server, and security and privacy - with a reference of every property and setting, and the FAQ.
How it works
- You build a documentation index (
help-index.json) from the Markdown pages of your manual, with theHelpIndexBuildertool. - The user asks. The component adds the screen context — the active form, its caption, the
HelpKeyword/HelpContextof the focused control, the active tab. - A provider answers.
docsearchfinds the right page offline and quotes it, with no API key at all;claude,openaiandgeminiread the pages the retriever found and answer from those, citing the source and saying when they do not know. - The reply streams into the panel token by token, rendered as safe HTML. Nothing ever runs on the UI thread, and the user can stop it.
- If you let it, the assistant can also act: you register the actions your application allows, and it calls them on the main thread, asking the user first when they change data. Some it already knows, as skills you only have to name:
Settings.Skills := 'forms, commands, records, pages'lets it read and fill the form the user is on - every field with its label, type, rules and hint, data-aware ones included - press its buttons, find a record of its lists and show one of its tabs, always asking first and never saving: the user reviews and saves. - And it can read a document the user hands it: a paper clip next to the question box takes a PDF, an image or a text file. Together with an action, that is a PDF filling a form without anybody retyping it. Off until you turn it on, because an attachment leaves the machine.
- What it answered does not stay in the panel. Every answer, the whole conversation and every page of the manual can be copied — as text and as HTML, so a table pasted into Word is still a table — or saved as a PDF, laid out by a stylesheet of yours and headed with the name of your application, the user and the page number.
The engine knows nothing about the UI: it runs inside your application or on a HelpChatAI server, chosen in a configuration file, so the model API key never has to reach the user's machine. When it has to, every key has two nodes in the configuration: ApiKey in clear, which you develop with and the IDE reads, and ApiKeyEncrypted, which your application writes with its own cipher and decrypts in OnDecryptSecret at run time. A file you deploy carries only the encrypted one.
Providers
Provider | Needs | Streams | Actions |
|---|---|---|---|
docsearch | the documentation index, no key | no | no |
claude | ANTHROPIC_API_KEY | yes | yes |
openai | OPENAI_API_KEY, nothing for a local model | yes | yes |
gemini | GEMINI_API_KEY or GOOGLE_API_KEY | yes | yes |
openai is wider than its name: Chat Completions is the API that Azure OpenAI, Groq, OpenRouter, Mistral, DeepSeek, Ollama and LM Studio also speak, so BaseUrl and Model are enough to point the same provider at any of them — including a model running on the user's own machine, where nothing leaves the PC.
More than one model
Models in helpchatai.json lists the models the user may switch between from the panel: each one has a name, a provider, and the model, endpoint and key it adds to that provider's section when they differ — three local models on one Ollama are three entries on openai. SelectedModel names the one in use at start; the choice made in the panel is remembered per user. The header shows the icon of the model in use (deduced from the model name, then from the endpoint, then from the provider; Icon overrides it), with name and model as the tooltip, and with more than one model a click on it opens the list. With no list, Provider alone is the one model and nothing can be switched.
{
"SelectedModel": "Claude",
"Models": [
{ "Name": "Claude", "Provider": "claude", "Model": "claude-haiku-5-5" },
{ "Name": "Gemini", "Provider": "gemini", "Model": "gemini-3.5-flash-lite" },
{ "Name": "Gemma (local)", "Provider": "openai", "Model": "gemma4:12b", "BaseUrl": "http://localhost:11434/v1" }
]
}The icons of the providers and models are those of lobe-icons (MIT); the logos themselves are trademarks of their respective owners.
More than one assistant: profiles
A large application can have several assistants, each the expert of one part of it, and active at the same time: a general one on the main form, and one on the form of an important function - order entry, planning - with its own name, its own field of expertise and instructions, its own part of the manual, its own models and the actions only it may run.
- One component per form, one
Profileper assistant. The component lives on the form that owns it: its bubble is there, and F1 goes to the assistant of the active form - on a form with none (a dialog, a print preview), to the one whose form was active last.CurrentAssistantsays which one that is. One help viewer and one message hook serve them all. - One configuration file, a root and a section per assistant. The root holds what every assistant shares (keys, endpoints, the catalogue of models);
"Profiles"holds, under theProfileof each component, what that assistant changes, with the same keys. Within a file the profile wins over the root. - An expert knows an area of the manual. One manual, one index: the area of a page is its sub-folder (or the
areas:of its front matter), andDocAreassays which areas an assistant answers from. The pages of no area belong to everybody. - Actions belong to the form that registers them, plus those the whole application shares (
HelpChatSharedActions);AllowedActionsin a profile narrows them, and can never add one the code did not register. - Two windows of the same profile are one assistant: one engine, one conversation, the index loaded once, while an action still fills the window it was asked from. Each profile keeps its own conversation, choices and window position.
{
"Claude": { "ApiKey": "sk-ant-..." },
"Models": [
{ "Name": "Claude", "Provider": "claude", "Model": "claude-haiku-5-5" },
{ "Name": "Gemma (local)", "Provider": "openai", "Model": "gemma4:12b",
"BaseUrl": "http://localhost:11434/v1" }
],
"Profiles": {
"Orders": {
"AssistantName": "Jack",
"Expertise": "order management and shipping",
"Instructions": "Help the user enter orders, their lines, discounts and shipping.",
"DocAreas": ["Orders", "Customers"],
"Models": ["Claude"],
"AllowedActions": ["create_order", "open_screen"]
}
}
}All of this is edited from the IDE too: Configuration..., the first verb of both component editors (and what a double click opens), shows every setting with the value in force and where it comes from - the library, the component, a file and its root or profile - and writes it to the profile, to the root of a file or to the component. Its pages follow what you are deciding: Appearance (the icon, the name, the greeting and the style sheet, beside a live preview of the chat in the light or the dark theme), Settings, Prompt (the texts the model is told, in the order it reads them, beside the prompt they build), Models, Profiles and Documents (the PDF). It edits keys in their clear node only, and never puts one in the form file. The VCL and FireMonkey editors are two native views over one controller.
Commands
A line that starts with / in the question box is a command, answered without the model: /who (assistant, model, provider, endpoint), /use name and /retry [name] (switch, ask again), /lang code (the language of the chat), /search words (the pages the answer would be grounded on), /pages and /doc page, /context (the screen F1 knows), /actions (what the assistant can do here), /skills (its skills, what each does), /check (the configuration check), /stats, /clear, /pdf, /copy, /attach, /help. EnabledCommands on the component is the set the panel accepts: all of them by default except /prompt, which shows the instructions and excerpts the last question went with, and /run action name=value, which runs a registered action by hand (with the usual confirmation). Every answer starts with what it answers, e.g. "Available actions (/actions):".
Everything the panel does can be done from code on the component: ExecuteCommand(hccActions) shows an answer in the panel (any command, enabled or not), ExplainCommand(hccActions) returns it as text without opening anything, and ClearConversation, SelectModel, Models, RetryLastQuestion, SaveConversationPdf, CopyLastAnswer and AttachFile do what their buttons do.
Setup for automatic installation of components
An "Installer" ready to use is located in the Release area: Download the Installer.
The Installer automatically detects your Delphi versions, installs sources, builds and installs packages and adds source paths.

To do it by hand instead:
- open the group project of your version under
packages/—Delphi13,Delphi12,Delphi11orDelphi10.4 - build it and install
dclHelpChatAIVcl(anddclHelpChatAIFmx, from Delphi 12), then addsourceandExt/MarkdownProcessor/sourceto the library path.
packages/BuildAllPackages.ps1 builds them from a command line, every installed version or the ones named with -DelphiVersion D13,D12; BuildAllPackagesD13.ps1 (and D12, D11, D10.4, D10.3, D10.2) does one version.
On Delphi 10.2 and 10.3 only the engine and the server can be used: packages/Delphi10.2 and packages/Delphi10.3 hold HelpChatAI and HelpChatAIServer, for an application that drives the engine from code - with a user interface of its own, or as a server.
Ship WebView2Loader.dll (Redist/WebView2/x86|x64) next to your executable; the WebView2 runtime itself is already part of Windows 11 and of every machine with Edge.
Installation with DPM (Delphi Package Manager)
The library is also published on delphi.dev as the package EtheaDev.HelpChatAI (Delphi 10.4 to 13, Win32 and Win64): you can install it with DPM, the Delphi Package Manager, as an alternative to the Setup. From the IDE, right click on your project in the Project Manager and choose Manage DPM Packages, or from the command line:
dpm install EtheaDev.HelpChatAI <path of your project>.dprojDPM downloads the package, builds it for the Delphi version and the platforms of your project and adds it to the project. Its dependencies are installed automatically: EtheaDev.MarkdownProcessor from delphi.dev and Indy from your Delphi installation.
Supported Delphi versions
| Framework | Versions | Verified |
|---|---|---|
| Engine (RTL only) and server | Delphi 10.2 Tokyo → 13 Florence | packages built with each compiler from 10.3 on; 10.2 is not verified |
VCL (TEdgeBrowser) | Delphi 10.4 → 13 | built on all four, run on 13 |
FMX (TWebBrowser) | Delphi 12 → 13 | built on both, run on Windows |
FireMonkey compiles for macOS, iOS and Android, but only Windows has been tried so far.
Packages
One folder per Delphi version, the same .dpk for all of them from 10.4 on; 10.2 and 10.3 have only the two engine packages, with their own library suffix (250, 260).
| Package | Requires | Contents |
|---|---|---|
HelpChatAI (runtime) | rtl, dbrtl, MarkdownProcessor | the engine, the index builder, the panel page, the rules of the skills |
HelpChatAIServer (runtime) | HelpChatAI, Indy | the transports: local server, remote server, remote client, host channel |
HelpChatAIVcl (runtime) | HelpChatAIServer, vcl, vclwinx, vcledge, dbrtl, vcldb | TVclHelpChatAI, the chat control, VCL style theming, the VCL skills |
dclHelpChatAIVcl (design-time) | HelpChatAIVcl, designide | palette, splash and About box, component editor with the configuration editor and the live preview, property editors |
HelpChatAIFmx (runtime) | HelpChatAIServer, fmx, dbrtl | TFmxHelpChatAI and its chat control, the FireMonkey skills |
dclHelpChatAIFmx (design-time) | HelpChatAIFmx, designide | palette, component editor with the configuration editor, the live preview and the configuration check |
Demo and tests
CRM Demo is the Windows 10 CRM demo of Embarcadero with HelpChatAI in it: a real little application — leads, accounts, proposals — with a manual of sixteen pages in CRM Demo\Help and the assistant answering from it. Press F1 on any screen, or ask it to open a screen, create a lead or prepare a proposal. All of them name the four skills too, so they can fill, on any window, the fields no action was written for.
There are four demos: the application in both frameworks, each in two editions, all sharing one data module, one database and one manual, located in CRM Demo:
| Project | Delphi | What it is | |
|---|---|---|---|
| VCL | VCL_CRMDemo.dproj | 10.4→13 | The whole application, with one assistant: seven pages, the lead and proposal windows, and all four actions |
| FMX | FMX_CRMDemo.dproj | 12→13 | The same application in FireMonkey: the seven pages, the lead, proposal and draft windows, and the same four actions |
| VCL, multi-assistant | VCL_CRMDemo_MultiAgent.dproj | 10.4→13 | The same sources with MULTIAGENT defined: a general assistant on the main form and a Sales one on the lead window, each answering from its own area of the manual, and an action (draft_proposal) that only the Sales assistant may use |
| FMX, multi-assistant | FMX_CRMDemo_MultiAgent.dproj | 12→13 | The same two assistants in FireMonkey |
Start from the plain editions; the multi-assistant ones show profiles at work, and that the configuration, not the code, decides which assistant may use an action.
None of them keeps the API key in clear: CRM Demo\common\uAppSecret.pas encrypts it with DCPcrypt (an svn:external of the demo, no package of the library requires it) and the License activation window asks for it the first time, when no key is found anywhere. Tools\ResetDemoKey.ps1 puts that back to "no key", to show it again.
CRM Demo\BuildAllDemos.ps1 builds all four with every Delphi it finds, Win32 and Win64: twenty-four builds, and the FireMonkey ones are reported N/A below Delphi 12 rather than failed.
Test/Delphi13/HelpChatAITests.dproj is a DUnitX suite of 616 tests that runs without network: store, worker pool, cancellation, index scoring and the areas of a manual, Markdown safety, profiles and the configuration editor's controller, several assistants on real forms and the engine they share, the skills on real forms over an in-memory data set, the SSE parsing and request building of each model provider, the configuration check, both transports over real HTTP, the actions from a real worker thread, the secrets of the settings and the printable document - the last two of which write a real PDF with the WebView2 runtime of the machine, and skip themselves where there is none.
Test\Bin\Win32\HelpChatAITests.exe --exitbehavior:ContinueRelease Notes
2 Dec 2026: ver. 2.4.0
- VCL skills,
commands: the buttons and the navigators of a third-party library are taught withRegisterHelpChatVclCommandAdapter(THelpChatVclCommandAdapter), as fields already were. A navigator says what each button does (THelpChatNavigateKind) and gets the rules of aTDBNavigator: nothing that moves, inserts or reloads while a record is being edited, and a post is a save. An application that registers nothing lists the buttons it listed before - VCL skills,
records:HelpChatVclSkills.OnDescribeListcorrects or hides each list of records before the model hears of it - the caption, and the fieldsfind_recordsearches for a grid that is not aTDBGrid - VCL skills,
forms:THelpChatVclDataAwareAdapteris public, to be inherited by the adapter of a third-party data-aware control;HelpChatPropObject,HelpChatPropString,HelpChatPropOrdinalandHelpChatHasPropread a published property by name; theItemsof a control with a publishedMapListset are read as "text shown, tab, value stored" - Index builder: a table of contents may be a table with the menu path in the first cell ("Tables › Base tables › Ports") and the link in another one - the path becomes the title and the keywords of the page, and a page reached from several menu items gathers them all. A link whose target is percent-encoded (
Base%20tables/ports.md) now matches its page, in a list too: such pages used to be reported "not referenced". The index of a manual whose table of contents already worked is unchanged - Skills:
fill_formkeeps the lines of a memo (the model separates them with a line feed, a VCL memo wants CR LF)
All the release notes: README on GitHub
License
Apache License 2.0 — Copyright (c) 2026 Ethea S.r.l.
The Ethea MarkdownProcessor, which the engine package requires, keeps its own license (Apache 2.0 / BSD, see Delphi-MarkdownProcessor).

