# Ship your first docs pull request

import { Aside, Steps } from '@astrojs/starlight/components';

Ask the Docs Agent for a small change to your documentation, then merge the pull request it opens.

## Before you begin

- An EkLine account that is a member of your organization.
- A documentation repository connected to EkLine through [GitHub](/agent/github-app-setup/) or [GitLab](/agent/gitlab-setup/).
- Permission to merge pull requests in that repository, or a teammate who has it.

## Steps

<Steps>

1. Sign in to the [EkLine app](https://ekline.io/dashboard).

2. Click **New session** at the top of the sidebar. If the composer shows **Docs** and **Marketing**, select **Docs**.

   Or type your request into **Start a conversation** on the dashboard and send it.

3. Ask for one small, concrete change. Name the file if you know it:

   ```text
   Add a Troubleshooting section to README.md that covers the errors
   the CLI prints when the API key is missing or invalid.
   ```

4. Wait while the agent reads the repository and drafts. When it writes a file, the editor opens on the left with one tab per file, and the chat moves to the right.

5. Review the draft. If the agent changed an existing file, accept or reject its changes with **Accept All**, **Reject All**, or the check mark and cross on each change. Edit the text directly, or ask for changes in the chat. Enable **View All Changes** to see every change against the repository.

6. Click **Raise PR**. The chat box fills with `Open a pull request for` and your repository's name. Press Enter to send it, or add instructions first, for example who should review it.

7. When the agent has opened the pull request, the button becomes **View PR #N**. Click it to open the pull request in GitHub or GitLab.

8. Review and merge the pull request there, as you would any other.

</Steps>

For what the pull request contains, such as its branch, description, and reviewers, see [How EkLine opens pull requests](/agent/how-ekline-opens-pull-requests/).

## Check it worked

- The pull request is merged in your documentation repository, with the agent's change on your default branch.
- Back in the session, the toolbar shows the pull request's **Merged** badge.
- The session is listed under **Sessions** in the sidebar, so you can return to it. See [Find a past session](/agent/find-sessions/).

## Troubleshooting

| Problem | What to do |
| --- | --- |
| **New session** opens the Marketing Agent, which reads **What are we making?** | Select **Docs** in the composer before you send your request. |
| **Raise PR** is grayed out with "No changes to create a PR" | The session has no changed files yet. Ask the agent for a change first. |

## Write better prompts

The more context you give, the better the output.

| Instead of... | Try... |
|---------------|--------|
| "Write docs" | "Create a getting started guide for Python developers" |
| "Update the README" | "Add a Docker installation section to the README" |
| "Help with API docs" | "Document the POST /users endpoint in src/api/users.ts with request and response examples" |
| "Make release notes" | "Generate release notes for tickets ENG-100 through ENG-105, grouped by Features and Fixes" |

<Aside type="tip" title="Write better prompts">
- Reference specific files: `"Look at src/api/auth.ts"`.
- Mention your framework: `"This is a Next.js project"`.
- Specify the audience: `"Write for developers new to GraphQL"`.
- Point to style examples: `"Match the tone of docs/quickstart.md"`.
</Aside>

## Next

- [Work in the editor](/agent/editor/): review controls, **Update PR**, and stopping or queuing a turn.
- [Custom instructions](/agent/custom-instructions/): tell the agent your conventions once, for every session.
- [Start work from Jira tickets](/agent/jira-triggers/) or [Slack](/agent/slack-bot/): start sessions without opening the app.
- [Check your docs in CI](/reviewer/quickstart/): run the Docs Reviewer on every pull request.