Generate pipeline documentation
To generate documentation for a pipeline, follow these steps:- Open your pipeline in Prophecy.
- Click Chat in the left sidebar.
-
Prompt the Agent to document your pipeline.
For example:
Generate pipeline documentation using @custom_template. This generates a document for the pipeline that you have opened in your project.
pipeline-template.md.
If the default template exists, the Agent uses it. Otherwise, the Agent asks you to upload or specify a template.

Generate project documentation
To generate documentation for a project, including all of its pipelines, follow these steps:- Open your project in Prophecy.
- Open any pipeline or document entity.
- Click Chat in the left sidebar.
-
Prompt the Agent to document your project.
For example:
Generate project documentation using @custom_template. This generates a document that describes your project.
project-template.md.
If the default template exists, the Agent uses it. Otherwise, the Agent asks you to upload or specify a template.
How the Agent generates documentation
During generation, the Agent:- Displays a preparation checklist with progress.
- Analyzes pipeline or project components.
- References the template that defines the document structure.
- Generates the documentation.
- Saves the Markdown file to the
documentsdirectory in your project.

Update generated documentation
After the Agent generates your document, you can:- Edit the document in the visual editor (recommended). The visual editor displays the rendered Markdown file, including special components like pipeline frames.
- Switch to the Code tab to edit the Markdown code. In the Code tab, you may see encoded or complex strings that contain embedded data. Don’t edit them, as changes will break the visual output.
Documentation templates
Templates define how the Agent structures documentation output. Templates use Markdown for standard formatting and Copilot Template Language (CTL) markers to create special components that standard Markdown doesn’t support. You might create your template such that the Agent generates a completely static file, or you can incorporate components that allows users to fill in fields of the generated document. Once you have written the template file, you need to upload the file to your project:- Open the project where you want to upload the template.
- In the Project tab of the left sidebar, click Add Entity.
- Click Template. Your file browser opens.
- Select the Markdown file to upload.
- Click Open.
To create a custom template, you must upload a file from your local file system. You cannot create
a blank template from the project editor.
Enabling the Documentation Agent
The Documentation Agent runs in a dedicated project mode and requires the Transform Agent to be disabled. Projects can operate in either Transform Agent mode or Harmonization/Documentation mode, but not both simultaneously. To use the Documentation Agent:- Disable the v4 Agent for the team that owns the project by opening Metadata → Teams → Select team → Settings → Advanced.
- Click the Enable Transform Agent toggle.
- Return to your project.

