Create a personality with AI

You can give your voice assistant personality by using an AI conversation agent.

What can I do in Assist with AI exactly?

  • Pick the LLM provider of your choice, either local or cloud, as long as it las a conversational agent.
  • Select a personality based on a prompt.
  • Get replies with the character’s personality you defined.
  • Perform Home Assistant intents (turn on-off lights, etc), as long as Assist is correctly configured as per our best practices.

Check this 1-minute clip showing how Assist is using AI to control a smart home.

What LLM providers are available?

LLM-based agents are evolving constantly, and Home Assistant supports most of them. If you’d like to get a deeper knowledge on how to pick the best choice for your setup, here is a comparison study you can check.

There are cloud agents provided by Open AI or Anthropic and local ones provided by Ollama, and both cases are supported by Home Assistant.

Prerequisites

  • Home Assistant and Assist is configured following our best practices.
  • An account in the conversational agent of the LLM provider of your choice. If you want to test the process, you can create a free account on Open AI.
  • In case of a local LLM solution, you need to have the model installed.

Creating a voice assistant personality with an LLM-based conversation agent

  1. Go to Settings > Devices & Services Add Integration, find your LLM provider and set it up with your API key.

    • In case of a provider of local agents like Ollama, you need to configure the local URL where the agent is installed. Follow the specific integration recommendations in this case.
  2. Go to Settings > Voice Assistants > Add Assistant. Give it a name and pick a conversation agent from your AI’s option. In this example we are using Antropic and the agent picked is Claude.

    Add Claude agent to Assist

  3. Be mindful of your Text-to-speech and Speech-to-text configurations. These are not handled by the IA and should stay as you want them configured for Assist.

  4. Configure the agent (gear icon next to the agent’s name).

    • In the Prompt template field, enter a text that will prompt the AI to become the character. For example:: You are Super Mario from Mario Bros. Be funny.

    • Define if the voice assistant is allowed to control the devices in your home.

      • No control: you can talk to the agent, but it cannot control devices.
      • Assist: you can talk to the agent and it can control devices. For example, it could turn on the lights.
        • Assist can only control entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] that are exposed to it. Agent with recommended model settings
    • Once your Assist agent has been created, you can go to Voice assistants and the three dots menu of your personality, and define if you want Home Assistant’s model to be the priority response, and therefore Assist would prefer to handling commands locally . Fallback toggle

      • If you keep this option selected, if the intent can be answered by Home Assistant it will. It will not have the personality, but the response will be fast and efficient (since it doesn’t require to go through the LLM). This is recommended in cases where you can accept not having the IA character reply sometimes and would rather your lights are turned on faster.
      • If you deselect the option, all the intents will go through the agent. This is recommended when efficiency is not an issue and you need the agent never to break character (for example if your Assist personality is Santa Claus).
  5. You can uncheck Recommended model settings, hit Submit and it will unblock extra customization. In the specific example of OpenAI, here a brief summary of the other settings.

  6. You can test the agent directly from the Voice assistants panel, selecting Start a conversation from the agent’s menu. It will control your Home Assistant and reply exactly as it will do with any voice hardware.

  7. In case you need troubleshooting with your LLM provider, check any specifics from your IA in our integrations documentation

Tutorial: Setting up Assist with OpenAI

Step-by-step tutorial with some background information, from the Home Assistant Release Party 2024.6 live stream.

Using the AI voice assistant on your devices

To learn how to use the AI assistant with your devices, refer to one of the following tutorials, depending on the hardware you want to use to interact with it:

Demos

Check this interview with an AI Mario personality