# Chat Interaction

<figure><img src="/files/NCXawugNbzOw0K1aBeHy" alt=""><figcaption></figcaption></figure>

### 3.1 Code Mode

By default, papertlab operates in "Code" mode, where it can suggest and make changes to your code.

### 3.2 Ask Mode

To switch to "Ask" mode:

1. Click the dropdown next to the input field.
2. Select "Ask".

In this mode, papertlab will answer questions about your code without making changes.

### 3.3 Autopilot Mode (Beta)

For autonomous code changes:

1. Select "Autopilot" from the mode dropdown.
2. Provide a high-level description of the changes you want.

Autopilot will attempt to make multiple changes to achieve the desired result.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.papert.in/papertlab-ui/chat-interaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
