How to Get Google Assistant for PC

Hate Cortana? Try 'OK, Google' instead

What to Know

  • First, create a Google account if you don't already have one.
  • On a Windows computer, use Python, Google Cloud Platform, and the Google Assistant API to install Google Assistant.
  • On a Chromebook or Chrome OS device, enable Google Assistant in Settings.

There is no Google Assistant app for Windows, but this article describes a workaround to access Google Assistant on a Windows 10 computer, as well as the method to enable the Assistant on. a Chromebook or Chrome OS device.

How to Get Google Assistant on Windows

To get started using Google Assistant:

  1. Download and install Python for Windows.

    Check the box next to Add Python 3.7 to PATH before you select Install Now. This step essential for getting Google Assistant up and running.

    Download Python for Windows from
  2. Open Windows File Explorer and navigate to the main drive directory (usually C:), then select the New Folder icon and create a new folder named GoogleAssistant.

    Don't include a space in the folder name. This will be important in future steps.

    Windows File Explore, create new folder in C: directory
  3. Open Google Cloud Platform in a web browser (preferably Chrome) and select Create Project. Sign in with your Google account if prompted.

    Google Cloud Platform page, showing Create Project button
  4. Enter WinGoogleAssistant as your project name, then write down the Project-ID underneath. Select Create.

    You will need the Project-ID later to use Google Assistant. Typically, the Project-ID consists of two words and a string of numbers separated by dashes.

    Google Cloud Platform New Project screen
  5. Open Google Assistant APIs in another browser tab, then select Enable to enable the Google Assistant API for your project.

    Google Assistant API with ENABLE button displayed
  6. Select Create Credentials.

    Assistant API screen with Create Credentials button visible
  7. On the Add credentials to your project screen, choose the following three responses:

    • For Which API are you using? choose Google Assistant API.
    • For Where will you be calling the API from? choose Other UI (e.g., Windows, CLI tool).
    • For What data will you be accessing? choose User data.

    Select What credentials do I need? when finished.

    Set up credentials for your Google Cloud Platform project.
  8. Select Set up consent screen.

    Set up OAuth consent screen" for a Google API
  9. Change the Application Type to Internal, type WinGoogleAssistant in the Application name field, then scroll to the bottom of the screen and select Save.

    OAuth consent screen options, with INTERNAL selected, and Application name as "WinGoogleAssistant"
  10. Select Create credentials, then select Help me choose. On the next screen, select the same options as you did in step 7 above.

    API Credentials, with drop down. Choose "Help me choose"
  11. Type WGAcredentials in the Name box under Create an OAuth 2.0 client ID, then select Create OAuth client ID.

    Google API "Add credentials to your project" page, with credential name of "WGAcredentials"
  12. Select Done after the option to download the credentials displays.

    completed Add credentials to your project page, with Done button displayed.
  13. Select the down arrow to the right of the credentials you just created. It should display Download JSON when you hover over the option. Save the JSON file in the Google Assistant folder you created in step 2.

    OAuth 2.0 client ID credentials, ready to download
  14. Open the Windows Command Prompt and enter the following:

    py -m pip install google-assistant-sdk[samples]
    Screenshot of Command Prompt instructions to install Google Assistant SDK
  15. Wait for the installation to complete, then enter:

    py -m pip install --upgrade google-auth-oauthlib[tool]
    Screenshot of Command Prompt to install Google OAuth tool
  16. Open Windows File Explorer and navigate to the JSON file you saved earlier (i.e., in the Google Assistant folder you created). Right-click the file and select Properties.

    right-click in Windows File Explorer to view Client_Secret properties
  17. Click in the file name field and press Ctrl+A to select all, then press Ctrl+C to copy the file name.

    detailed client_secret file name properties
  18. Switch back to the Command Prompt window and type:

    google-oauthlib-tool --client-secrets C:\GoogleAssistant\

    Then, press Ctrl+V to paste in the file name you copied in the last step. Press the space bar, and then type:

    --scope --save --headless

    Finally, press Enter.

    Screenshot of Command Prompt command to add Google OAuth client secret
  19. You’ll next see a URL displayed with a prompt to Enter the authorization code. Highlight the entire URL, starting with https://, and press Ctrl+C to copy the URL.

    Screenshot of Command Prompt screen with long URL (https://) selected
  20. Open a new browser tab and paste the copied URL into the URL field. Select the same Google account you used earlier to create credentials.

    page that appears after you paste the link into your browser omnibox
  21. Choose Allow to give the application access to Google Assistant.

    "WinGoogleAssistant wants to access your Google Account", with Allow button displayed
  22. Next, you should see a long string of letters and numbers. Click on the box to the right of these to copy the characters.

    an authorization code, with option to click on an icon to copy the code
  23. Switch back to the Command Prompt window, press Ctrl+V to paste the authorization code into the prompt, and then press Enter. You should see a credentials saved message.

    Screenshot of Command Prompt screen after authorization code is pasted. Shows message "credentials saved"
  24. To test that things are working as expected, enter:

    py -m googlesamples.assistant.grpc.audio_helpers

    Your computer should record 5 seconds of audio and play it back to you.

    Screenshot of Command Prompt typed command to test Google Assistant
  25. Retrieve the Project-ID that you wrote down in step 4 (the letters and numbers that displayed when you created your Cloud Platform project), then type the following in Command Prompt window and press Enter:

    cd C:\GoogleAssistant

    Next, type the following:

    googlesamples-assistant-devicetool --project-id

    Press the spacebar and type your Project-ID, then press the spacebar again and type:

    register-model --manufacturer “Assistant SDK developer” --product-name “Assistant SDK light” --type LIGHT --model “GA4W”

    Finally, press Enter to finish the set up process.

    Install Google Assistant on Windows from the Control Prompt.
  26. To initiate the Google Assistant with push to talk capabilities, type the command below followed by a space and your Project-ID:

    py -m googlesamples.assistant.grpc.pushtotalk --device-model-id “GA4W” --project-id
    Activate voice commands for Google Assistant on Windows.

With this configuration, after you press Enter, you can ask Google Assistant questions directly. You don’t have to say the traditional “OK, Google” command. Instead, just press Enter while the program is active, then speak.

Google Assistant for Windows doesn't have all of the capabilities that Cortana offers for navigating Windows, but you can ask it almost any question and get an answer if you're connected to the internet.

Don't lose your Project-ID because you will need it each time you want to activate Google Assistant from the Command Prompt. You can always go to your Google Cloud projects to view it.

How to Get Google Assistant for Chromebook

If you have a Chromebook or Chrome OS device, you can enable Google Assistant.

  1. Go to Settings.

    Viewing apps on Chromebook.
  2. Scroll down to Search and Assistant and select Google Assistant.

    Setting in Chromebook.
  3. Make sure the slider is set to On.

    Google Assistant Settings in Chromebook.
  4. Enable the OK Google setting to allow the system to listen for and respond to that voice command. (Adjust any other options, as desired.)

    Enabling Ok Google in Chromebook.

Your Best Bets

If your goal is easy access to Google Assistant, the simplest approach is to purchase a Google Home device and set it up next to your computer. You can also install the Google Assistant app (for Android or iOS) on a phone or tablet. For a more do-it-yourself experience, buy and build the Google Voice Kit.

Was this page helpful?