AI Agent with ESP32-S3-BOX-3
| Technical solution | Classic + AI Agent |
|---|---|
| Use case | Appliances & 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
| Processor | ESP32-S3 |
|---|---|
| Connectivity | Wi-Fi + BLE |
| Vcc | 5V |
| IDF Version | ESP-IDF v5.5.2 and newer |
What you can try
- Natural Voice Conversations: Have natural, human-like conversations with your voice agent.
- Set Reminders: Ask your agent to remind you about your tasks and events.
- Volume Control: Control the device volume through voice commands.
- Local Time Awareness: The agent is aware of the time at your timezone.
- ESP RainMaker Device Control: The default "friend" agent can control your ESP RainMaker devices, allowing you to manage your smart home ecosystem through voice commands.
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
- Connect your S3 Box device to the computer using a USB cable, then click the
Connectbutton located in the top-left corner above the terminal. - Select the right port and click
connect. - Click
Flash Deviceabove the terminal and choose Erase and flash. Wait for theerase_flashprocess to finish before the firmware is written. - Wait for the firmware flashing process to complete.
3. Configure the Device
- 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.
- 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.
- Once the app detects the device, it will ask for your Wi-Fi SSID and password.
- After the device is configured, it will connect to your Wi-Fi network and is ready to be used.
- If the device remains in provisioning mode or does not connect, restart the device and repeat the provisioning steps.
4. Using the Device
- 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.
- 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.
- You can interrupt the agent anytime using the device's touch/button control.
- When response playback stops, you can ask your next question.
- 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)
- Go to the Agents Dashboard here and click "Manage Agents".
- When in the Agents Dashboard, click "+ New Agent" to create an agent from a template or from scratch.
- Configure the agent as needed, then click "Create Agent" to save it.
- 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.
- 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
- In the ESP RainMaker Home app, you will see a list of devices; choose a device to configure with this agent.
- 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.
- 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".
- After selecting your device, a pop up notification will appear confirming that the Agent ID has been updated onto the selected device.
- Select the device in the app and confirm that the Agent name is the same as the one you created in the Agents Dashboard.
- You can now start using your newly customized agent.
Having trouble connecting?
- Ensure your device is properly connected via USB
- Check if the correct drivers are installed
- Try a different USB port or cable
- Verify that your device is in flashing mode
- Get the latest ESP RainMaker phone application here