The auto-docs flow
An event in one of the source systems becomes a drafted, cited wiki page โ normalized, routed, written by an LLM, and opened as a pull request for a human owner to review.
Pipeline
event โ normalizer (Service Bus docs.changes) โ n8n router โ AI drafter (+front-matter +citation) โ pull request โ owner review โ publish
- PR-gated โ nothing publishes on its own;
git revertrolls any generated page back. - Restricted / confidential content is link-only, never mirrored into the wiki.
- Every generated page carries a source citation and lives only under
/_generatedโ a CI hand-edit guard keeps humans out of that tree. - Alert โ runbook naming is preserved end to end, so the page you expect is the page you get.
Drive it live โ the flow API
The whole pipeline is exposed as a dependency-free HTTP API. It runs offline against a mock provider by default, so you can drive it end to end on your laptop before pointing it at a live model.
Run it
Endpoints: GET /health ยท GET /example ยท POST /draft ยท POST /pipeline
The ServiceNow fix
Change automation now branches on the state model, not on free text โ so it fires exactly once, on the right transition, keyed on a value that never changes.
The rule
The old check parsed the typed status string ("Implementing", and its typos) and keyed on the record name, so it missed changes when the wording drifted and made duplicate pages when a record was renamed. Branching on the numeric state and keying on the immutable sys_id removes both failure modes.
The moving parts
Three layers do the work: adapters turn source systems into normalized events, the core routes and drafts them into a PR, and a pluggable LLM layer writes the prose.
Docs & where to go next
Read the design behind the pipeline, walk the full setup, or step across into the neighbouring sections.