AI Agent with ESP-VoCat

Technical solutionClassic + AI Agent
Use caseAppliances & Controls

A voice-enabled firmware example 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-VoCat device
    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 ESP-VoCat 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. The ESP-VoCat device will display a QR code on its screen.
  3. In the ESP RainMaker Home app, click on the "+" icon at the top right, and select 'Scan QR Code'. Use your phone's camera to scan the QR code displayed on the device.
  4. Once the app detects the device, it will ask for your Wi-Fi SSID and password.
  5. After the device is configured, it will connect to your Wi-Fi network and is ready to be used.
  6. If the device screen remains stuck on the QR code (provision screen), restart the device by power cycling it (press the power button twice) or by unplugging and reconnecting the USB cable.

4. Using the Device

  1. Once the device is in configured mode and connected to your Wi-Fi network, you can wake it up by saying "Hi, ESP" or by gently tapping once on the top of the device.
  2. The device will play a chime, indicating it's ready for conversation. When the device shows the listening icon, you may ask it any questions and it will respond to you.
  3. You can see the response on the device screen (displayed in green color).
  4. You can interrupt the agent anytime by touching the top of the device.
  5. When response playback stops, you can ask your next question.
  6. The device goes to sleep after 15 seconds of inactivity. You can wake it again by saying "Hi, ESP".

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
    • Updating the emoji on display based on mood of the conversation
    • Controlling your ESP RainMaker devices

6. Reset to Factory

    You can factory reset your device using any of the following methods:
    1. Touch and hold the top of the device for 10 seconds. The screen will indicate that the reset is in progress.
    2. Touch and hold the on screen for 10 seconds. The change in displayed emotion will indicate that the reset is in progress.
    3. Reflash the firmware by following step 2.
    4. Open the ESP RainMaker Home app → Tap the "Espressif AI Agent" 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 ESP-VoCat (Espressif AI Agent) device, select "Espressif AI Agent" 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 "Espressif AI Agent" 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?