Configure and run
Run the CLI against the product you want to document. Builder settings live under
.aisupport/ in that project — not in your app’s .env.
Project files
| Path | Commit? | Purpose |
|---|---|---|
.aisupport/.env |
No | Builder key, LLM key, mode, model |
.aisupport/ignore |
Yes | Extra folders and globs not to send to the LLM |
.aisupport/prompt.txt |
Yes | Extra instructions appended to the platform prompts |
.aisupport/state.yml |
No | Incremental build progress (created automatically) |
The download zip includes copies under examples/. Copy them into
.aisupport/ in the project you scan, then rename:
env.example → .env,
ignore.example → ignore,
prompt.txt.example → prompt.txt.
Secrets (.aisupport/.env)
AISUPPORT_API_KEY=
AISUPPORT_LLM_MODE=byok
AISUPPORT_LLM_MODEL=gpt-4o-mini
OPENAI_API_KEY=
# OPENAI_API_BASE=
| Variable | Required | Purpose |
|---|---|---|
AISUPPORT_API_KEY |
Yes |
Secret builder key created on the project (shown once). Needed even
without --upload, because the CLI fetches prompts from the API.
See API keys.
|
AISUPPORT_LLM_MODE |
No | Defaults to byok (Bring Your Own Key). Set platform only if source may leave your machine. Platform mode needs prepaid credits. |
AISUPPORT_LLM_MODEL |
No | Defaults to gpt-4o-mini. |
OPENAI_API_KEY |
For BYOK (Bring Your Own Key) | Your LLM key. Source is sent to this provider, not to Acta. |
You can export the same variables in the shell or CI instead of using a file.
The CLI only loads --dir/.aisupport/.env. It does not read your product
.env.
Ignore extra files
The CLI already skips node_modules, .git, binaries,
.aisupport/, and paths in your .gitignore.
Add .aisupport/ignore for folders you still want in git but not in the knowledge source
(docs, e2e tests, Storybook, generated code).
docs
e2e
**/*.stories.*
generated/
One pattern per line. A bare name like docs skips that folder and everything inside it.
Prefer ignore rules over prompt text when you simply do not want those files read. Skipping them is cheaper and more reliable.
Extra prompt
Put additional LLM instructions in .aisupport/prompt.txt. They are appended
to the ingest and finalize prompts (BYOK and platform mode).
Do not document Storybook stories or generated API reference pages.
Focus on signed-in customer flows.
What --dir is
--dir is the project folder to scan — your app root, not the folder
where you installed the CLI. Default is . (the current directory).
From that folder the CLI:
- Reads
.aisupport/.env,.aisupport/ignore, and.aisupport/prompt.txt - Walks source files (honoring
.gitignoreplus your extra ignore list) - Uses git history so later runs only process changed files
- Writes
aisupport.knowledge.md - Saves progress in
.aisupport/state.yml
Commands
Already inside your project:
aisupport-build --dir .
Same thing, because . is the default:
aisupport-build
Scan another project without changing directory:
aisupport-build --dir /path/to/your-app
Build and upload to your Acta project:
aisupport-build --dir . --upload --project <project-uuid> --name react-frontend
Flags
| Flag | Meaning |
|---|---|
--dir |
Folder to scan. Default . |
--name |
Knowledge source name on the platform (for example react-frontend).
If omitted, the folder name is used. When the project has more than one source,
the widget source should match the app where the widget is embedded.
|
--upload |
Upload the generated markdown after the build. |
--project |
Project UUID. Required when you pass --upload. |
After a successful run
aisupport.knowledge.mdis in the scanned folder.- If you used
--upload, that file is stored on the project and indexed. - Open the project and choose Generate actions after the sources are uploaded. Upload only indexes the markdown.
- With one knowledge source, leave widget
sourceunset. With several, setsourceto the name of the app where the widget runs.
Incremental rebuilds use git. The first run processes files it can read; later runs
skip files already recorded in .aisupport/state.yml unless they changed
since the last commit that was processed.