> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable automatic question detection

<div style={{ display: "flex", alignItems: "center", gap: "6px" }}>
  <Badge color="outline-provider" size="sm" shape="pill" icon="github">GitHub</Badge>
  <Badge color="outline-provider" size="sm" shape="pill" icon="gitlab">GitLab</Badge>
</div>

Let Qodo automatically recognize questions written in pull request comments. When enabled, Qodo scans comments and replies when it detects a question related to the code or PR discussion.

This is useful for more natural conversations during code reviews.

#### How it works

* You write a comment that includes a question (for example: *“Why are we handling retries here instead of the caller?”*)
* Qodo detects the question
* Qodo replies using the relevant pull request context

#### Enable automatic question recognition

To enable this behavior, add the following to your [configuration file](/code-review/get-started/configuration-overview/configuration-file):

```bash theme={null}
[pr_code_suggestions]
enable_chat_in_code_suggestions = true
```

Default: `true`

Once enabled, Qodo will automatically respond to recognized questions in PR comments.

<Tabs>
  <Tab title="Asking for more details">
    <Frame>
      <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/ask-explain-code-answer.png?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=eefbba5daaad80ad15d4d289337e5d13" alt="Qodo automatic response providing detailed code explanation in pull request comment" width="1167" height="614" data-path="images/code-review/ask-explain-code-answer.png" />
    </Frame>
  </Tab>

  <Tab title="Implementing suggestions">
    <Frame>
      <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/ask-save-suggestion-answer.png?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=ed1728bc5449589c5ace8f3f975b764c" alt="Qodo automatic response showing suggestion implementation in pull request comment" width="768" height="759" data-path="images/code-review/ask-save-suggestion-answer.png" />
    </Frame>
  </Tab>

  <Tab title="Providing additional help">
    <Frame>
      <img src="https://mintcdn.com/qodo/8f9QSVoLIbSaCs56/images/code-review/ask-simplify-method-answer.png?fit=max&auto=format&n=8f9QSVoLIbSaCs56&q=85&s=958740dbdbf76f7fc5ecbabfa1dc4533" alt="Qodo automatic response providing additional code quality help in pull request comment" width="804" height="905" data-path="images/code-review/ask-simplify-method-answer.png" />
    </Frame>
  </Tab>
</Tabs>

#### Tips for better automatic responses

* Phrase your comment clearly as a question
* Use words like *why*, *how*, *what*, or *can we*
* Keep questions focused on the code or changes in the PR
