Logic App Workflow Builder
Build Azure Logic Apps Standard workflows from an LLD, one step at a time. An AI engine (GitHub Copilot, Anthropic Claude, IBM watsonx or Google Gemini) recommends each trigger and action from your governed integration skills. You accept, refine or skip each one, and the workflow grows on a live canvas.
LLD (+ mapping sheets, HLD…) ──► PII redaction ──► Copilot: LLD outline + open questions
│
┌───────────────────────────────────────────────┘
▼
Recommend next step ──► you: Accept · pick an alternative · edit JSON · Refine · Skip
▲ │
└──────── appended to the canvas ◄──┘ … until done ──► Save (create-only) + GENERATION-REPORT
What it does
Documents. Add the LLD (Markdown, Word .docx, text) and optional supporting documents. Personal data is replaced with [PII:CAT-NN] placeholders before any text reaches Copilot. The extension uses the same categories and rules as Invoke-LldPiiRedaction.ps1 (skill rule LBO-12).
LLD outline. Copilot maps the LLD to workflows, a trigger and an ordered step list. Each step carries its LLD reference, target container (Try / Catch / …) and candidate catalog entries. The outline also lists open questions (BLOCKER / MAJOR / MINOR). Your answers are passed to Copilot for every following step.
Build step by step. For each step Copilot returns one recommendation plus up to two real alternatives. Each one shows:
- the catalog entry it is based on and that entry's verification tier (taken from the catalog, never from the model)
- the LLD reference, the rationale and the skill rule ids applied
- TODOs, app settings, connections, and the exact
workflow.json fragment
You can Add to workflow (Alt A), switch alternatives (Alt 1-3), edit the JSON, name or placement first, Refine with feedback (Alt R) or Skip (Alt S). Click any "Add next step here" slot on the canvas to choose where the next step goes.
Save. Writes src/<project>/<workflow>/workflow.json and GENERATION-REPORT-<workflow>.md. The report covers traceability, TODOs, UNVERIFIED items, assumed defaults, settings to provision and the decision log. Missing host.json, connections.json and Profile A settings files are created from catalog shapes. Existing files are never overwritten (LBO-01).
AI engines
Choose the engine in Settings → AI engine (gear icon, or Logic App Builder: Select AI Engine). It offers the same providers as the Liquid Template Debugger:
| Engine |
Setup |
Notes |
| GitHub Copilot (default) |
None. Uses your Copilot subscription through VS Code |
Any model Copilot offers |
| Anthropic Claude |
Anthropic API key |
Defaults to Claude Opus 5.5. Streams responses, uses adaptive thinking and high effort where the model supports them, and retries server-side on a different model (fallbacks: "default") if a safety classifier declines the request |
| IBM watsonx |
IBM Cloud API key, a watsonx project id and a region |
Granite models listed first; the model's context limit sets the prompt budget |
| Google Gemini |
AI Studio API key |
Asks for JSON output |
- Keys: stored in VS Code SecretStorage. They never reach the webview and are sent only to their provider.
- Connection tools: Test connection checks a key before you save it; Forget key removes it.
- Models: each provider remembers its own model choice. Switch models from the header chip at any time.
- Privacy: every engine receives the same PII-redacted document text.
Settings: themes, accent, language
- Themes: Auto follows your VS Code colour theme exactly. The named themes are Dark, Midnight, Dark cool, Dark warm, Glass dark, Light, Light cool, Light warm and Glass light.
- Accent colour: seven presets or any custom colour.
- Language: English, 中文 (简体), 中文 (繁體), Español, Français, Deutsch, 日本語, 한국어, Português (Brasil) and العربية (right-to-left), or Auto to follow VS Code's display language.
- The AI also writes titles, rationale and questions in the chosen language.
- Identifiers and workflow JSON stay in English.
Skills tracker (live)
Logic App Builder: Show Skills Tracker, the skills chip in the header, or the Skills tab shows, live, which governed skills and files the builder reads:
- Per activity: LLD analysis, each recommendation, the built-in checks, starting from the skeleton, save,
@logicapp chat and each Copilot agent tool call.
- For each: the skill, the file (e.g.
logicapps-catalog/assets/catalog/triggers.json), the entry or rule set used (e.g. trigger.serviceBus.queue.peekLock, LBO-DT-sections) and why (rules → prompt, catalog shape → prompt, ground recommendation, evidence registry…).
- While the AI is working: the skills it is reading appear as chips, and the header shows a live reading N counter.
- By skill: read counts per skill and per file, with the entries used. Each file opens in the editor.
- In the report: the GENERATION-REPORT has a Skills used table, so every saved workflow records which skill files shaped it.
Shared skills that learn from use
Configure a skills hub (Settings ▸ Learning, or logicAppBuilder.hub.kind = folder | github). The hub has the layout of the central integration-skills repo plus a learning/ folder. Logic App Builder: Create Skills Hub in Folder… creates one from the bundled skills and evals.
every user ──► managed skills (read-only, hash-verified copy of the hub)
│
└─ builds workflows ──► observations (sanitised) ──► hub learning/observations/
│
learning agent (one client at a time, hub lease) ◄──────┘
analyze: signals repeated by ≥ N observations from ≥ M users (policy)
propose: smallest skill edit (AI engine), as constrained operations
policy: never governance-* / anchor rules / rule levels / tier upgrades
eval gate: lint + SKILL.md render · security · skill_evals check / selftest / activation
· golden cases · scope · replay (only NEW findings fail)
publish: new skills version (+ CHANGELOG, AUDIT-LOG, proposal, rollback record, manifest)
folder hub: directly · GitHub hub: pull request gated by the central CI
watch: rolls a learned change back if outcomes do not improve
│
└──► every user syncs the new version
- Users cannot edit the skills.
- Managed copies are read-only, and every file is verified against the hub. A local edit is detected and the published copy restored.
- Users only contribute observations. Thresholds across distinct users and a per-user daily cap mean one user cannot force a change.
- Who controls what:
- The skill owners control
learning/policy.json, including approval: auto | owner, the evidence thresholds, protected skills and the risk limit.
- On a GitHub hub, branch protection and the central
ci.yml stay the final gate. Auto-merge happens only if the owners allow it.
- What is shared: catalog ids, the fields changed before accepting, skipped or refined steps, check and judge results.
- Nothing leaves the machine before it is sanitised: no document text, secrets, URLs, tenant ids or personal data.
- Show Observations Shared with the Skills Hub shows exactly what is shared.
- Judges: after each save, the product judge and LLM judge (
quality-judging) grade the workflow. They are advisory, and their failed criteria feed the loop.
- Evals: the gate runs TypeScript ports of the skills repo's own tools:
convert_skill_md.py, New-SkillsManifest.ps1, New-SkillsCatalogIndex.ps1, skill_evals.py (check, activation, selftest), and the relevant parts of Test-SkillsLint and Test-SkillsSecurity. Unit tests prove the ports reproduce the Python output.
GitHub Copilot integration
The extension uses GitHub Copilot through the VS Code Language Model API, the same way the Liquid Template Debugger does. It needs no API key: you need GitHub Copilot Chat installed and signed in. Choose the model in the panel header.
@logicapp in Copilot Chat:
/build: open the builder with the current or attached file as the LLD
/next: get the next recommendation; you decide in the panel
/catalog service bus peek lock: search the catalog and show the exact shape
/skill logicapps-triggers: show a skill's rules, decision tables and checklist
- a plain question gets an answer grounded on the matching catalog entries and skill rules
- Agent mode tools. Copilot's agent can use your skills directly:
#logicappCatalog, #logicappEntry, #logicappSkill: search the catalog, read one entry's exact shape, read one skill
#logicappDraft: the workflow being built
#logicappPropose: shows one proposed step in the builder panel. The tool waits for your decision (accept / refine / skip) and returns it to the agent, so agent mode follows the same one-step-at-a-time loop.
How the skills are used
The skills folder is found in this order:
- The
logicAppBuilder.skillsPath setting.
- The workspace's governed copy in
.github/skills, then integration-skills/skills, skills or .claude/skills.
- The copy bundled with the extension.
Skills are read-only: nothing is ever written into them.
| Skill content |
Used for |
standards-project, governance-grounding rules |
Every prompt (profiles, naming, "never invent operationIds / settings / endpoints", <TODO:...> for unknowns) |
orchestration-lld-build, design-intake, LBO-DT-sections, TRG-DT-choose |
LLD analysis |
logicapps-catalog entries (codeView, parameters, project defaults, standards, tier) |
The exact shapes Copilot copies; tier and catalog checks on every recommendation |
Topic skills named by the candidate entries (e.g. logicapps-triggers, logicapps-error-handling) |
Rules for the step being recommended |
standard.skeleton.profileA / profileB.http |
Starting workflow (Try/Catch or Scope-Try/Scope-Catch) |
governance-grounding/assets/verified-registry.json |
Built-in checks (ported from validate-logicapp.ps1) |
config.hostJson, connection.*, config.settingsFiles.profileA |
Project files created on save |
logicapps-validate/scripts/validate-logicapp.ps1 |
"Run logicapps-validate (pwsh)" after saving |
Every recommendation is checked before you see it:
- Is the catalog id real?
- Does the action type or operationId match the catalog shape?
- Does the step contain a
[PII:…] placeholder?
- Does the placement container exist, and is
runAfter valid?
- Does the name collide with an existing one?
runAfter is wired for you (GEN-06). A step appended to a container whose last action is a Response or Terminate is inserted before it.
Settings
| Setting |
Default |
|
logicAppBuilder.skillsPath |
(auto) |
Skills folder (contains logicapps-catalog/) |
logicAppBuilder.outputRoot |
src |
Where projects are written |
logicAppBuilder.defaultProjectName |
LogicApp |
Project folder |
logicAppBuilder.preferredModel |
(first) |
Copilot model id or family, used when no model was picked in Settings |
logicAppBuilder.piiAllowList |
[] |
Values the redaction keeps (e.g. a functional mailbox) |
logicAppBuilder.maxDocumentChars |
120000 |
Document text per Copilot request |
Workspace Trust
The builder supports Restricted Mode with limits:
- Skills shipped inside an untrusted workspace (
.github/skills, …) are not used; the bundled or hub skills are used instead.
- The PowerShell validator does not run.
- Workspace values of
skillsPath, outputRoot and logicAppBuilder.hub.* are ignored.
Limits
- PDF is not read. Export the LLD to
.docx or .md.
- The built-in checks cover single workflows. Run
validate-logicapp.ps1 (PowerShell 7) on the saved project for the full check: settings files, connections and maps.
- Building is create-only. Changing an existing workflow from a revised LLD is out of scope, as it is in
orchestration-lld-build.
- Copilot output is a recommendation. Review TODO and UNVERIFIED items in the report before deploying, and run quality-security-review and quality-gates.
Develop
npm install
npm run build # bundle skills → build webview → bundle extension
npm test # unit + end-to-end tests (mock VS Code) against ../integration-skills/skills
npm run test:ui # headless Chrome drives every screen of the built webview
npm run test:vscode # end-to-end inside a real, isolated VS Code
npm run package # .vsix
Press F5 in VS Code to run the extension. The webview can be previewed outside VS Code with cd webview-ui-src && npm run dev, which uses a mock host; pick a screen with #setup, #outline, #build, #thinking or #done.
Layout: src/ holds the extension host (skills/, builder/, ai/, chat/, docs/, panel/, controller.ts); webview-ui-src/ holds the React UI; test/ holds the node tests.
| |