Skip to content
Last updated

Redocly Writer

Plans:Enterprise

Redocly Writer is an AI agent that keeps your documentation up to date. It turns what your readers ask, search for, and report into pull requests that fix your docs. You review and merge every change.

Each kind of work the Writer does is a duty. You choose which duties run and when.

Early access

Redocly Writer is in early access. It may not be available for your organization yet, and its behavior may change before general availability.

To request access, visit the Redocly Writer page.

How the Writer delivers changes

The Writer never pushes to your default branch and never merges its pull requests. Every change arrives as a draft pull request in your project, and the people you choose as default reviewers are assigned to it.

The Writer acts only on real gaps. It compares each reader signal with your docs and your source code, and it opens no pull request when the docs already hold the answer.

After the Writer opens a pull request, it follows up on it: it answers your comments and fixes failed checks.

The Writer also works with remote content synced from a Git repository. When it changes remote content, it opens a draft pull request in the source repository of that content. If a change touches both your project and remote content, the Writer opens a separate pull request in each repository.

Before you begin

Make sure you have the following:

  • An Enterprise plan with early access to Redocly Writer
  • A project connected to a GitHub or GitLab repository (the Writer doesn't work with other Git providers)

The following sections are in setup order, and only Configure duties is required.

Connect sources

The Sources section of the Agent > Settings page holds the source code repositories, MCP servers, and support desks the Writer reads.

Connect a source code repository

Connect the repositories that hold your product's source code, so the Writer can read the code when it writes docs. A source code repository can be any repository in a Git provider your organization uses, not only the repository of your project.

Before you connect a repository, set up its Git provider for your organization:

To connect a source code repository:

  1. Open your project and select Agent > Settings.
  2. In the Source code card, select Add repository.
  3. Select the Git provider and authorize your account.
  4. Select the organization, repository, and branch.
  5. (Optional) Select a folder to connect only part of a monorepo.
  6. Select Add repository.

The Writer can read every connected repository by default. To limit the repositories a duty can read, configure the Writer duty.

To disconnect a repository, select Remove next to it and confirm.

Connect an MCP server

Connect a Model Context Protocol (MCP) server to give the agent access to other tools and data, such as your issue tracker. The agent can call the server while it works.

To add an MCP server:

  1. Open your project and select Agent > Settings.
  2. In the MCP card, select Add server.
  3. Enter a Name for the server. Use lowercase letters, digits, and dashes, for example issue-tracker.
  4. Enter the URL of the server's Streamable HTTP endpoint. The URL must start with https://.
  5. (Optional) Enter a Description that tells the agent when to use the server, for example Issues and pull requests of our product repositories.
  6. In Authentication, choose how the agent authenticates: Bearer token, API key header, or None.
  7. (Optional) Select Add header to send additional headers with each request. To hide a header value after you save, select Store as secret next to it.
  8. (Optional) Select Test connection to check the server and list its tools.
  9. Select Add server.

Redocly stores tokens, keys, and secret header values securely. You can't view them after you save, but you can replace them. Changes apply to the next run of the agent.

To change a server, select Edit next to it. To remove a server, select Remove next to it and confirm.

Connect a support desk

Connect a support desk to let the Writer learn from your support team. When a conversation is resolved, the support desk sends it to Redocly. With the Answer support conversations duty on, the Writer checks your docs for the answer the team gave and adds it when it's missing. Redocly ignores private conversations.

You can connect these support desks:

  • Front
  • ClearFeed

Create a Front app

To connect Front, you need the API token and the API secret of a Front app.

To create a Front app:

  1. In Front, open Settings > Developers and create an app.
  2. In the app, create an API token with read permissions. The Writer uses the token to read the conversations of your inboxes.
  3. Copy the API token and the API secret of the app. Enter them as the Front API token and the Front API secret when you connect the support desk.

Connect the support desk in Redocly

To connect a support desk:

  1. Open your project and select Agent > Settings.
  2. In the Support desk card, select Connect.
  3. Select the Support desk and enter a Name, for example Support inbox.
  4. Enter the credentials of the support desk:
    • For Front, enter the Front API token and the Front API secret of your Front app.
    • For ClearFeed, enter the ClearFeed API token and a Webhook secret: a long random value that you choose.
  5. Select Connect.
  6. Copy the webhook link. The link is shown only once. If you lose it, select New link next to the support desk.
  7. Paste the link in your support desk. For the steps, refer to Add the webhook link to a Front rule or Set up ClearFeed.

After you connect the support desk in Redocly, create a rule that sends each resolved conversation to the webhook link:

  1. In Front, open Settings > Rules and create a rule for the inboxes the Writer should learn from.
  2. Set When to Conversation archived. Archiving a conversation is how Front resolves it.
  3. Set Then to Send to webhook and paste the webhook link.
  4. Save the rule. When you save the rule, Front sends a signed request to check that the link responds.

Set up ClearFeed

To set up ClearFeed:

  1. In ClearFeed, open Automations and create an automation for the collections the Writer should learn from.
  2. Set the trigger to Request Update and add the condition Status is Solved.
  3. Add a Webhook action, paste the webhook link as the URL, and keep the default payload.
  4. Add the X-Webhook-Secret header with the webhook secret you entered in Redocly, and mark it Sensitive.

Turn off deliveries from a support desk

To stop receiving conversations from a support desk without removing it:

  1. Open your project and select Agent > Settings.
  2. In the Support desk card, select Edit next to the support desk.
  3. Turn off Receive deliveries.
  4. Select Save changes.

The support desk displays a Disabled tag. While deliveries are off, Redocly doesn't store the conversations the support desk sends, and the Writer doesn't act on them.

Add rules

Rules guide the Writer on when to act and how to write. The Writer applies them to every run, together with the additional instructions of each duty.

To add rules:

  1. Open your project and select Agent > Settings.
  2. In the Rules section, enter Custom rules that tell the agent when to act and when not to, for example Skip pages under /reference/.
  3. Enter Style guidance that tells the agent how to write, for example Use second person, never "the user".
  4. Select Save.

The Writer also follows the rule files that your repository holds for AI agents, such as AGENTS.md, CLAUDE.md, and .github/copilot-instructions.md.

Set up notifications

The agent can post updates about pull requests to a Slack channel.

To set up Slack notifications:

  1. Open your project and select Agent > Settings.
  2. If you haven't already, connect a Slack workspace:
    1. In the Notifications section, select Connect Slack.
    2. Sign in to Slack and add the Redocly app to your workspace.
  3. Select Configure next to Slack.
  4. Select the Channel where the agent posts.
  5. In Notify about, select New pull requests.

The agent posts a message when the Writer opens a pull request, and updates the same message when the pull request changes.

Disconnect Slack

To stop the notifications:

  1. Open your project and select Agent > Settings.
  2. Select Configure next to Slack.
  3. Select Disconnect workspace and confirm.

You can connect the workspace again at any time.

Configure duties

A duty is one kind of work the Writer does. Manage duties in the Writer section of the Agent > Duties page of your project.

Every new project starts with the agent active and the Writer duties off.

Writer duties

DutyWhat it doesWhen it runs by default
Fill gaps from assistant conversations & searchFinds what readers ask the AI assistant or search for most, then drafts pages to close the gaps.Daily at 14:00 UTC
Improve docs from page feedbackTurns page feedback into targeted content improvements. It acts on low ratings with a comment, negative feedback, and comments that aren't positive. It skips positive feedback and ratings without a comment.When readers leave page feedback
Answer support conversationsReads each conversation your support desk reports as resolved, and adds the answer the docs lacked. Connect a support desk to turn this duty on.When your support desk resolves a conversation

To turn a Writer duty on or off, use its toggle on the Agent > Duties page.

Choose default reviewers

Default reviewers are organization members assigned to every pull request the Writer opens in your project. They aren't assigned to pull requests the Writer opens in a remote content repository.

To choose default reviewers:

  1. Open your project and select Agent > Duties.
  2. Select the gear icon next to Writer.
  3. In Review, select the members.
  4. Select Save changes.

Configure a Writer duty

To configure a Writer duty:

  1. Open your project and select Agent > Duties.
  2. Select the gear icon on the duty.
  3. In When should this duty run?, choose a trigger:
    • Fill gaps from assistant conversations & search runs only on a Custom schedule.
    • Improve docs from page feedback runs On new feedback or on a Custom schedule.
    • Answer support conversations runs On resolved conversation or on a Custom schedule.
  4. (Optional) In Pull requests, turn off Follow up on its pull requests to stop the Writer from answering comments and fixing failed checks on the pull requests this duty opens. The option is on by default.
  5. (Optional) In Custom access to source repositories, choose the source code repositories the Writer can read during a run. By default, Allow access to all source repos is selected.
  6. (Optional) Enter Additional instructions for the duty. The Writer adds them to the duty's prompt every time it runs.
  7. Select Save changes.

Set a schedule

When a duty runs on a Custom schedule, choose one of the following options:

OptionWhen the duty runs
DailyEvery day at 14:00 UTC
WeeklyEvery Monday at 14:00 UTC
Every FridayEvery Friday at 14:00 UTC
Twice weeklyEvery Monday and Thursday at 14:00 UTC
CustomOn a cron schedule that you enter

For a Custom schedule, enter five cron fields in UTC: minute, hour, day of month, month, and day of week. The minute field must be a single number. For example, 0 9 * * 1-5 runs the duty at 09:00 UTC from Monday to Friday.

Below the schedule, the dialog shows the next run time in your time zone.

On a schedule, a duty works on the signals collected since its last run, for example new feedback or resolved conversations.

Review Writer pull requests

Review a pull request from the Writer the same way you review one from a teammate. Check that the changes are accurate and match your product. When the changes are ready, mark the pull request as ready for review and merge it.

Ask the Writer for changes

To change a pull request from the Writer, leave a comment or submit a review that says what to change. The Writer starts a fix for each relevant comment, pushes it to the same pull request, and replies to tell you what it changed. It also fixes the checks that fail because of its changes, for example a broken link.

GitLab projects

For a project connected to GitLab, the Writer reacts only to comments and reviews you leave on the pull request page in Reunite. It doesn't react to comments you leave in GitLab.

To turn off the follow-up for a duty, refer to Configure a Writer duty.

Pause or resume the agent

The top of the Agent > Settings page displays whether the agent is Active or Paused. Use the toggle there to pause or resume the agent.

While the agent is paused:

  • The Writer doesn't start new runs, but it finishes any run already in progress.
  • The agent ignores new signals, such as page feedback. When you resume the agent, it doesn't go back to the signals it missed.

Resources