Conversational Actions were deprecated on June 13, 2023. For more information, see Conversational Actions sunset.

Introduction to the Google Assistant Library

  • The Google Assistant Library for Python is a turnkey solution for integrating the Assistant into a project, supported on hardware like the Raspberry Pi 3.

  • The Google Assistant Library for Python is deprecated as of June 28th, 2019, and the Google Assistant Service should be used instead.

  • This page provides guides for getting the Google Assistant Library working on your project and extending its functionality.

  • Refer to the Compatibility and feature support table to understand the differences between the Google Assistant Library and the service.

The Google Assistant Library for Python is a turnkey solution for anyone who wants to quickly integrate the Assistant into a project. The library is written in Python and is supported on popular hardware such as the Raspberry Pi 3.

Get started

Once you have your hardware, read on to learn how to get the Google Assistant running on it!

Embed the Google Assistant

This section gets the Google Assistant Library working on your project:

  1. Set Up Hardware and Network Access
  2. Configure and Test the Audio
  3. Configure a Developer Project and Account Settings
  4. Register the Device Model
  5. Install the SDK and Sample Code
  6. Run the Sample Code
  7. Next Steps

Extend the Google Assistant

This section extends the Google Assistant Library to include Device Actions:

  1. Install Hardware
  2. Register Traits
  3. Handle Commands
  4. Add More Traits and Handlers
  5. Register Custom Device Actions

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024年09月18日 UTC.