Updating docs in bulk with GitBook Agent
Find, replace, and update content across your GitBook docs with GitBook Agent
GitBook Agent can find and replace content across your documentation. It can also make broader, targeted updates in a change request.
Use GitBook Agent for routine bulk edits. It keeps changes together for review before you merge them.
Start a bulk update
To make a bulk update:
In your space, click the GitBook Agent icon next to Edit.
Describe the change, the pages it affects, and any exclusions.
Click Start change request.
In Changes, review every proposed edit.
Merge the change request when the updates are correct.
Write a focused prompt
If you want to make targeted changes to your documentation — such as a ‘find and replace’ process for an outdated or incorrect term — you can use a focused prompt.
Be sure to include these details in your prompt:
The text or content you want to change.
The replacement or intended outcome.
Any pages to include and content to exclude.
Here’s an simple example prompt you could copy and customize:
For larger changes, it’s a good idea to also state the goal and constraints. If there are pages pages that define the correct wording or structure, reference them in the prompt to point the Agent in the right direction.
Review bulk edits
GitBook Agent will make the updates in a change request. Be sure to review the change request and the diff before merging.
Pay particular attention to the following:
Each replacement has the intended meaning.
Links, formatting, and page structure remain correct.
The change request excludes content outside the requested scope.
FAQ
Last updated
Was this helpful?