> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/n4ze3m/page-assist/llms.txt
> Use this file to discover all available pages before exploring further.

# Copilot

> Select text on any webpage and perform AI-powered actions with built-in and custom copilot prompts

Sidebar Copilot is a powerful feature that allows you to select text from any webpage and perform AI-powered actions on it through the context menu.

## How it works

<Steps>
  <Step title="Select text">
    Highlight any text on a webpage that you want to process.
  </Step>

  <Step title="Right-click">
    Right-click on the selected text to open the context menu.
  </Step>

  <Step title="Choose action">
    Find **Page Assist** in the context menu and select one of the available actions.
  </Step>

  <Step title="View results">
    The AI will process the text and display results in the sidebar.
  </Step>
</Steps>

## Built-in copilot prompts

Page Assist comes with 5 built-in copilot prompts:

* **Summarize** - Get a concise summary of selected text
* **Rephrase** - Rewrite text with alternative vocabulary
* **Translate** - Translate text to English
* **Explain** - Get a detailed explanation of the text
* **Custom** - Use a custom prompt template

<Warning>
  The built-in "Custom" prompt will be removed in a future version. Please use **Custom Copilot Prompts** (see below) for better flexibility.
</Warning>

### Managing built-in prompts

You can customize or disable built-in prompts:

<Steps>
  <Step title="Open settings">
    Go to **Settings** → **Manage Prompts** → **Copilot** tab.
  </Step>

  <Step title="Toggle visibility">
    Use the switch next to each prompt to enable or disable it in the context menu.
  </Step>

  <Step title="Edit prompts">
    Click the edit icon to customize the prompt template. The `{text}` placeholder will be replaced with selected text.
  </Step>
</Steps>

<Note>
  Changes are applied immediately without requiring a browser restart.
</Note>

## Custom copilot prompts

Create unlimited custom copilot prompts tailored to your specific needs. These appear alongside built-in prompts in the context menu.

### Creating custom prompts

<Steps>
  <Step title="Navigate to settings">
    Go to **Settings** → **Manage Prompts** → **Custom Copilot** tab.
  </Step>

  <Step title="Add new prompt">
    Click the **Add** button.
  </Step>

  <Step title="Configure prompt">
    * **Title**: The name that appears in the context menu (e.g., "Simplify Text", "Find Grammar Errors")
    * **Prompt Template**: Your prompt with `{text}` as a placeholder for selected text
  </Step>

  <Step title="Save">
    Click **Save** to add the prompt to your context menu.
  </Step>
</Steps>

### Example custom prompts

<Accordion title="Grammar and style">
  **Title:** Fix Grammar

  **Prompt:**

  ```
  Review the following text for grammar, spelling, and punctuation errors. Provide the corrected version.

  {text}
  ```
</Accordion>

<Accordion title="Simplification">
  **Title:** Simplify Text

  **Prompt:**

  ```
  Rewrite the following text to be understood by a 10-year-old. Use simple words and short sentences.

  {text}
  ```
</Accordion>

<Accordion title="Code review">
  **Title:** Review Code

  **Prompt:**

  ```
  Review the following code for:
  - Potential bugs
  - Performance issues
  - Best practices
  - Readability improvements

  Code:
  {text}
  ```
</Accordion>

<Accordion title="Tone adjustment">
  **Title:** Make Professional

  **Prompt:**

  ```
  Rewrite the following text in a professional, formal tone suitable for business communication.

  {text}
  ```
</Accordion>

<Accordion title="Fact extraction">
  **Title:** Extract Facts

  **Prompt:**

  ```
  Extract all factual claims from the following text. List each claim and note if it needs verification.

  {text}
  ```
</Accordion>

## Prompt writing best practices

<Tip>
  The quality of your results depends heavily on how well you write your prompts.
</Tip>

### 1. Be specific and clear

```
❌ Bad: Make this better
✅ Good: Rewrite the following text to be more professional and formal:

{text}
```

### 2. Provide context

```
❌ Bad: {text}
✅ Good: You are a technical writing expert. Review the following text and suggest improvements for clarity and conciseness:

{text}
```

### 3. Specify the output format

```
❌ Bad: Check grammar: {text}
✅ Good: Review the following text for grammar and spelling errors.
List each error with:
- Original text
- Corrected text
- Explanation

Text:
{text}
```

### 4. Always use the {text} placeholder

The `{text}` placeholder is required and will be replaced with the selected text:

```
Analyze the sentiment of the following text and classify it as Positive, Negative, or Neutral. Provide reasoning for your classification.

Text:
{text}
```

### 5. Set constraints when needed

```
Summarize the following article in exactly 3 bullet points. Each bullet point should be no more than 20 words.

Article:
{text}
```

## Managing prompts

You can manage all your custom copilot prompts:

* **Edit**: Click the edit icon to modify the title or prompt template
* **Delete**: Click the delete icon to remove a prompt
* **Enable/Disable**: Toggle the switch to show or hide a prompt in the context menu

<Note>
  Changes are applied immediately without requiring a browser restart.
</Note>

## Use cases

### Academic research

* Summarize research papers
* Extract key findings
* Explain complex concepts
* Cite sources

### Content writing

* Improve grammar and style
* Adjust tone (formal, casual, technical)
* Expand or condense text
* Generate alternatives

### Programming

* Review code for bugs
* Explain algorithms
* Suggest optimizations
* Document code

### Language learning

* Translate text
* Explain idioms
* Check grammar
* Provide synonyms

### Business

* Draft professional emails
* Summarize meeting notes
* Extract action items
* Simplify jargon

## Next steps

<CardGroup cols={2}>
  <Card title="Prompts" icon="wand-magic-sparkles" href="/features/prompts">
    Learn about system and quick prompts
  </Card>

  <Card title="Sidebar" icon="sidebar" href="/features/sidebar">
    Explore other sidebar features
  </Card>

  <Card title="Chat with Webpage" icon="globe" href="/features/chat-with-webpage">
    Ask questions about page content
  </Card>

  <Card title="Configuration" icon="sliders" href="/configuration/settings">
    Configure copilot settings
  </Card>
</CardGroup>
