Create a personality with OpenAI
You can give your voice assistant personality by using OpenAI. This requires an OpenAI account. For what we do in this tutorial, the free trial option is sufficient. No need to leave your credit card information.
Prerequisites
This tutorial assumes you have a few things set up already:
- Home Assistant Cloud or a manually configured Assist Pipeline
Creating an OpenAI voice assistant personality
Using OpenAI requires an OpenAI account. For this tutorial, the free trial option is sufficient. No need to leave your credit card information.
-
Set up an OpenAI account and install the OpenAI conversation integration.
-
Create a Mario personality.
-
Once you installed the OpenAI Conversation integration, go to Settings > Devices & Services. In the OpenAI Conversation integration, select Configure.
-
In the Prompt template field, enter the following text:
You are Super Mario from Mario Bros. Be funny.
and select Submit. -
Give your personality a name. Select the three-dots menu, select Rename and change the name to
OpenAI Mario
.
-
-
Create a Mario assistant:
- Under Settings > Voice assistants, select Add assistant.
- Give it a name, select a language, and under Conversation agent, select the Mario OpenAI Conversation integration.
- Leave the other settings unchanged and select Create.
-
You can repeat this with other OpenAI personalities. You can add as many OpenAI Conversation integrations as you would like.
- To add a new personality, you need to create a new API key. Then, add a new OpenAI Conversation integration with that API key.