AI Agent with ESP32-S3-BOX-3

Technical solutionClassic + AI Agent
Use caseAppliances & Controls

A voice-enabled firmware example for S3 Box that lets users have natural conversations, manage reminders, control device settings, and interact with ESP RainMaker devices through a friendly virtual agent. To learn more about Private AI Agents platform, read this blog here.

Overview

ProcessorESP32-S3
ConnectivityWi-Fi + BLE
Vcc5V
IDF VersionESP-IDF v5.5.2 and newer

What you can try

Try it on a real board

Get an official DevKit from Espressif or one of its distributors, then flash this example straight from this page. Shop Espressif DevKits

Flash and try it

Runs on the public ESP RainMaker Classic deployment. Hosted by Espressif for evaluation. Free, with nothing to set up. Keep ESP RainMaker Classic when you sign in to the Home App.

Device Setup Instructions

1. Prerequisites

    Hardware
    1 x Linux, macOS or Windows-based computer
    1 x ESP-S3-BOX-3 DevKit
    1 x USB cable
    1 x iOS or Android mobile device

    Software
    - ESP RainMaker Home App (Download from App Store or Google Play)
    - ESP Private Agents account (Go to https://agents.espressif.com/ and click on "Try Now" to sign up or sign in)

2. Connect and Flash your device

  1. Connect your S3 Box device to the computer using a USB cable, then click the Connect button located in the top-left corner above the terminal.
  2. Select the right port and click connect.
  3. Click Flash Device above the terminal and choose Erase and flash. Wait for the erase_flash process to finish before the firmware is written.
  4. Wait for the firmware flashing process to complete.

3. Configure the Device

  1. Install and launch the ESP RainMaker Home app on your mobile device. The app will ask for Bluetooth/Location permission, which is necessary to detect unconfigured devices.
  2. In the ESP RainMaker Home app, click on the "+" icon at the top right, and select the option to add a new device. Select "Scan QR Code" and scan the QR code displayed on the device.
  3. Once the app detects the device, it will ask for your Wi-Fi SSID and password.
  4. After the device is configured, it will connect to your Wi-Fi network and is ready to be used.
  5. If the device remains in provisioning mode or does not connect, restart the device and repeat the provisioning steps.

4. Using the Device

  1. Once the device is configured and connected to your Wi-Fi network, you can wake it up by saying the wake word (e.g., "Hi, ESP") or by using the device's wake button if available.
  2. The device will indicate it's ready for conversation (e.g., with a chime or LED). When the device is listening, you may ask it any questions and it will respond to you.
  3. You can interrupt the agent anytime using the device's touch/button control.
  4. When response playback stops, you can ask your next question.
  5. The device may go to sleep after a period of inactivity. You can wake it again with the wake word or button.

5. Default Agent Capabilities

    The device comes with a friend-like conversational agent out of the box with the following capabilities:
    • Having fun conversations
    • Knowing local time at your location
    • Setting reminders
    • Adjusting volume of your device
    • Controlling your ESP RainMaker devices

6. Reset to Factory

    You can factory reset your device using any of the following methods:
    1. Use the device's factory reset procedure (e.g., hold the reset button for 10 seconds as per device documentation).
    2. Reflash the firmware by following step 2.
    3. Open the ESP RainMaker Home app → Tap the "Espressif AI Agent" or S3 Box device → Tap the Settings icon in the top-right corner → Tap "Remove Device".

7. Create your own custom AI Agent and configure it onto the Device (In Step 8)

  1. Go to the Agents Dashboard here and click "Manage Agents".
  2. When in the Agents Dashboard, click "+ New Agent" to create an agent from a template or from scratch.
  3. Configure the agent as needed, then click "Create Agent" to save it.
  4. Your newly created agent will appear in the Agents Dashboard; click the share icon under the Actions column to view its QR code and unique link.
  5. Scan the QR code with your phone's camera app or Google Lens; it will launch the ESP RainMaker Home app.

8. Configure your custom AI Agent onto the Device

  1. In the ESP RainMaker Home app, you will see a list of devices; choose a device to configure with this agent.
  2. You can configure the agent to the Chat device that exists on the phone app as "Chat Assistant" or configure it to the "Espressif AI Agent" device or any other compatible device that supports the ESP Private Agents platform.
  3. To configure the agent on the S3 Box (Espressif AI Agent) device, select "Espressif AI Agent" or your S3 Box device from the list of devices and click "Update Device".
  4. After selecting your device, a pop up notification will appear confirming that the Agent ID has been updated onto the selected device.
  5. Select the device in the app and confirm that the Agent name is the same as the one you created in the Agents Dashboard.
  6. You can now start using your newly customized agent.

Having trouble connecting?