# Q-Remix Chatbot

### AI Chatbot

The AI Chatbot acts as a real-time coding assistant and learning companion, making development smoother and more interactive.

#### Access:

The AI Chatbot can be accessed by clicking the AI icon located in the bottom-right corner of the Q-Remix interface.

#### Key Functionalities:

* **Error Debugging:** Automatically analyzes your code and helps you identify and resolve errors or inconsistencies.
* **Solution Suggestions:** Recommends possible fixes or improvements for the code you are writing.
* **Code Generation:** Offers snippets or full code blocks based on the problem or prompt you provide.
* **Conceptual Explanations:** Explains Solidity concepts in simple terms to aid learning and understanding.

#### Conversational Features:

* **Context Memory:** The chatbot remembers the last 5 to 10 interactions in your session, which allows it to maintain context and provide relevant follow-up responses.
* **Prompt Suggestions:** If users are unsure how to begin, the assistant provides dynamic suggestions tailored to recent interactions or existing code.

#### Use Case:

Whether you're troubleshooting a contract or learning the basics of Solidity, the AI Chatbot can serve as both a knowledgeable coding partner and a personal tutor.

> *Use the chatbot as a coding partner or a personal tutor to understand or fix your Solidity code faster.*

<figure><img src="/files/A7oCb4QWfXbNzsbofpEw" alt="" width="438"><figcaption></figcaption></figure>

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

Other than just generating the code, the AI chatbot also provides a crisp description of it’s response to help user understand better.

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


---

# 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.qremix.org/solidity-modules/q-remix-chatbot.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.
