How to write documentation with AI
Use GitBook Agent to work on your docs with an AI teammate that has the full context of your existing docs site
Last updated
Was this helpful?
Use GitBook Agent to work on your docs with an AI teammate that has the full context of your existing docs site
GitBook Agent is your AI teammate that helps you write, update, review, and maintain documentation โ directly inside GitBook.
This video and guide will take you through GitBook Agent, covering:
What GitBook Agent is, and common use cases
Where to find GitBook Agent
Working with GitBook Agent in comments
How to manage change requests opened by GitBook Agent
GitBook Agent is an AI assistant built into GitBook. It helps keep docs accurate and current.
It works mainly through change requests. Thatโs where your team already reviews and collaborates.
Click Edit on your docs. Then click Agent in the upper right corner to start chatting with GitBook Agent.
Describe what you want in plain language. Tag pages or sections if you want tighter context.
If youโre new to the branching workflow, start with change requests.
Use the Changes tab (aka diff view) to review the full diff before anything goes live.
If you need tweaks, ask GitBook Agent for another pass inside the same change request.
Open the GitBook Agent panel any time inside a change request.
Ask for focused work like rewriting a section, tightening tone, or fixing typos.
The Agent also works in comments. Mention it with @gitbook to request help on a specific block or paragraph.
Accept the suggestion if itโs correct. Ignore it if it isnโt.
In any change request, open Request a review and select GitBook Agent. You can also request a review on work it didnโt create. The Agent can flag issues and check consistency.
Open the Change Requests dashboard from the left sidebar to triage work across your organization.
Filter by status (draft, in review, merged, archived). Inspect titles, reviewers, participants, and merge rules. Merge directly from the dashboard if you have permission.
Filter change requests by author to separate human edits from AI-assisted ones:
Created by you
Created by GitBook Agent
Last updated
Was this helpful?