Speaking to ChatGPT through Google Home Mini devices and Home Assistant

Currently, I have the following setup:

  • Nabu Casa Home Assistant Cloud with Google Assistant configuration. I can ask Google through Google Home Minis to, for example, turn on or off lights or activate scripts.

  • ChatGPT plus subscription

I wonder if the following is possible: query ChatGPT through Home Mini devices and receive a spoken response.

Use case would be, for example. “Hey Google, ask ChatGPT what are fun ideas snacks on a movie night”

Unsure on how to do this or if it is possible.

1 Like

Same situation, Google mini is not accurate or to say helpfull enough. For that reason I hope to find a chatgpt solution

Has somebody implemented something like this?

ChatGPT plus subscription will not work for this case, you should use open ai API.

I have a telegram bot with chat GPT integration and it seems that I need to launch a similar service just for Google Home to make it work.
It is what suggest to do chatgpt:
"To enable ChatGPT using Google Home (like a Google Nest Mini) and integrate it with Home Assistant, you will need to use a combination of services and integrations. Here’s a simplified overview of how you can set this up:

  1. Home Assistant Setup:

    • Ensure that you have Home Assistant up and running with access to your network and devices.
  2. Create a Webhook in Home Assistant:

    • In your Home Assistant, create an automation that can respond to a webhook. This will be used to trigger actions in Home Assistant when a command is received.
    • Navigate to “Configuration” > “Automations” and create a new automation.
    • Use the “Webhook” trigger type and assign a unique identifier for the webhook.
  3. Integrate with a Communication Platform:

    • Use a communication platform to enable interaction with ChatGPT. A common approach is to use a chatbot service that integrates with OpenAI’s API to make requests to ChatGPT.
    • You can use platforms like Google Dialogflow, which can handle dialogue management and integrate with Google Assistant.
  4. Develop and Deploy a Service to Handle Requests:

    • Develop a service (using a cloud function or a small server) that can receive requests from Google Assistant and make API requests to OpenAI’s GPT-3.
    • This service should be able to parse commands and decide whether to trigger a Home Assistant webhook or respond with information.
  5. Use Google Assistant with Your Service:

    • Set up a Google Action using the Google Actions Console that connects Google Assistant (on your Google Home) to your deployed service.
    • Design the interaction model in Google Actions and link it to Dialogflow if you are using it.
  6. Linking Everything Together:

    • Use the service you developed to interpret voice commands from your Google Home, decide if they should interact with ChatGPT or control something via Home Assistant, and then execute the appropriate action.
    • For voice commands intended to control Home Assistant, ensure your service triggers the correct webhook in Home Assistant.
  7. Testing and Troubleshooting:

    • Test the setup with various commands to ensure that Google Assistant can successfully process requests, interact with ChatGPT, and trigger Home Assistant automations when necessary.

Remember, this setup involves integrating multiple services and may require some technical expertise, particularly in setting up APIs and cloud services. If you are not comfortable with coding, you may need more detailed guidance or assistance from someone with experience in these areas."