> For the complete documentation index, see [llms.txt](https://guide.petoi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.petoi.com/product/quaddle-under-construction/control-and-program/ai-conversation/xiaozhi-ai.md).

# Xiaozhi AI

Quaddle's **AI core** board supports running Xiaozhi AI conversation programs. You can use tyutool to upload our latest **Xiaozhi** firmware to the AI ​​core board. Please follow these steps:

{% stepper %}
{% step %}

### Download the tyutool

Please [download ](https://tuyaopen.ai/tyutool#download)and install the version of **tyutool** that corresponds to your current operating system.
{% endstep %}

{% step %}

### Upload the firmware

You can connect the **AI ​​core** board to your computer using a **USB Type-C** data cable and upload the Tuya-based upgrade firmware as follows:<br>

<figure><img src="https://4130507397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXLpFdG7mubqEHWylLK3w%2Fuploads%2Fxxql9NObA3XxWYadTyud%2Fimage.png?alt=media&amp;token=4a736375-2a65-4c0a-bdb0-0ad2b40bf8b5" alt=""><figcaption></figcaption></figure>

<figure><img src="https://4130507397-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXLpFdG7mubqEHWylLK3w%2Fuploads%2FOxViRqJCzbtaVWiKOf2S%2Fimage.png?alt=media&amp;token=03f4a951-c637-4a00-8733-84438a35b606" alt=""><figcaption></figcaption></figure>

1. Select the **serial port device name** connected to the AI ​​core board.
2. Select the serial communication baud rate: **921600**
3. Select the chip platform: **ESP32-S3**
4. Select the option: **Flash**
5. Click the Browse... button to open the file browser and select the **.bin** file containing "**merged**" as shown in the image above.
6. Click the **Start flash** button.
   {% endstep %}
   {% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guide.petoi.com/product/quaddle-under-construction/control-and-program/ai-conversation/xiaozhi-ai.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
