Stay organized with collectionsSave and categorize content based on your preferences.
This page shows how to get started with the Cloud Client Libraries for the
Conversational Insights API. Client libraries make it easier to access
Google Cloud APIs from a supported language. Although you can use
Google Cloud APIs directly by making raw requests to the server, client
libraries provide simplifications that significantly reduce the amount of code
you need to write.
Read more about the Cloud Client Libraries
and the older Google API Client Libraries inClient libraries explained.
To authenticate calls to Google Cloud APIs, client libraries supportApplication Default Credentials (ADC);
the libraries look for credentials in a set of defined locations and use those credentials
to authenticate requests to the API. With ADC, you can make
credentials available to your application in a variety of environments, such as local
development or production, without needing to modify your application code.
For production environments, the way you set up ADC depends on the service
and context. For more information, seeSet up Application Default Credentials.
For a local development environment, you can set up ADC with the credentials
that are associated with your Google Account:
Installthe Google Cloud CLI.
After installation,initializethe Google Cloud CLI by running the following command:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eCloud Client Libraries simplify accessing Google Cloud APIs, reducing the amount of code needed compared to direct server requests.\u003c/p\u003e\n"],["\u003cp\u003eInstallation instructions are provided for C++, Java, Node.js, and Python, including package management tools like Maven, Gradle, sbt, npm, and pip.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code plugins for VS Code, IntelliJ, and Cloud Tools for Eclipse offer additional functionalities like key management and can be used to add client libraries to your project.\u003c/p\u003e\n"],["\u003cp\u003eApplication Default Credentials (ADC) are supported for authenticating API calls, simplifying credential management in various environments, including local and production.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive resources, including API references, best practices, issue trackers, Stack Overflow links, and source code repositories, are provided for each supported language.\u003c/p\u003e\n"]]],[],null,["This page shows how to get started with the Cloud Client Libraries for the\nConversational Insights API. Client libraries make it easier to access\nGoogle Cloud APIs from a supported language. Although you can use\nGoogle Cloud APIs directly by making raw requests to the server, client\nlibraries provide simplifications that significantly reduce the amount of code\nyou need to write.\n\nRead more about the Cloud Client Libraries\nand the older Google API Client Libraries in\n[Client libraries explained](/apis/docs/client-libraries-explained).\n\nInstall the client library \n\nC++\n\nSee [Setting up a C++ development environment](/cpp/docs/setup)\nfor details about this client library's requirements and install dependencies.\n\nJava\n\nIf you are using [Maven](https://maven.apache.org/), add\nthe following to your `pom.xml` file. For more information about\nBOMs, see [The Google Cloud Platform Libraries BOM](https://cloud.google.com/java/docs/bom). \n\n \u003cdependencyManagement\u003e\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003elibraries-bom\u003c/artifactId\u003e\n \u003cversion\u003e26.66.0\u003c/version\u003e\n \u003ctype\u003epom\u003c/type\u003e\n \u003cscope\u003eimport\u003c/scope\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n \u003c/dependencyManagement\u003e\n\n \u003cdependencies\u003e\n \u003cdependency\u003e\n \u003cgroupId\u003ecom.google.cloud\u003c/groupId\u003e\n \u003cartifactId\u003egoogle-cloud-contact-center-insights\u003c/artifactId\u003e\n \u003c/dependency\u003e\n \u003c/dependencies\u003e\n\nIf you are using [Gradle](https://gradle.org/),\nadd the following to your dependencies: \n\n implementation 'com.google.cloud:google-cloud-contact-center-insights:2.72.0'\n\nIf you are using [sbt](https://www.scala-sbt.org/), add\nthe following to your dependencies: \n\n libraryDependencies += \"com.google.cloud\" % \"google-cloud-contact-center-insights\" % \"2.72.0\"\n\nIf you're using Visual Studio Code, IntelliJ, or Eclipse, you can add client libraries to your\nproject using the following IDE plugins:\n\n- [Cloud Code for VS Code](/code/docs/vscode/client-libraries)\n- [Cloud Code for IntelliJ](/code/docs/intellij/client-libraries)\n- [Cloud Tools for Eclipse](/eclipse/docs/libraries)\n\nThe plugins provide additional functionality, such as key management for service accounts. Refer\nto each plugin's documentation for details.\n\nFor more information, see [Setting Up a Java Development Environment](/java/docs/setup).\n\nNode.js \n\n```\nnpm install @google-cloud/contact-center-insights\n```\n\nFor more information, see [Setting Up a Node.js Development Environment](/nodejs/docs/setup).\n\nPython \n\n```\npip install virtualenv\nvirtualenv your-env\nsource your-env/bin/activate\nyour-env/bin/pip install google-cloud-contact-center-insights\n```\n\nFor more information, see [Setting Up a Python Development Environment](/python/docs/setup).\n\n\u003cbr /\u003e\n\nSet up authentication To authenticate calls to Google Cloud APIs, client libraries support [Application Default Credentials (ADC)](/docs/authentication/application-default-credentials); the libraries look for credentials in a set of defined locations and use those credentials to authenticate requests to the API. With ADC, you can make credentials available to your application in a variety of environments, such as local development or production, without needing to modify your application code.\n\nFor production environments, the way you set up ADC depends on the service\nand context. For more information, see [Set up Application Default Credentials](/docs/authentication/provide-credentials-adc).\n\nFor a local development environment, you can set up ADC with the credentials\nthat are associated with your Google Account:\n\n1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n2.\n\n If you're using a local shell, then create local authentication credentials for your user\n account:\n\n ```bash\n gcloud auth application-default login\n ```\n\n You don't need to do this if you're using Cloud Shell.\n\n\n If an authentication error is returned, and you are using an external identity provider\n (IdP), confirm that you have\n [signed in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n A sign-in screen appears. After you sign in, your credentials are stored in the\n [local credential file used by ADC](/docs/authentication/application-default-credentials#personal).\n\nUse the client library\n\n\nThe following example shows how to use the client library. \n\n\u003cbr /\u003e\n\nAdditional resources \n\nC++\n\nThe following list contains links to more resources related to the\nclient library for C++:\n\n- [API reference](/cpp/docs/reference/contactcenterinsights/latest)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/google-cloud-cpp/issues)\n- [`google-cloud-conversational-insights` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-conversational-insights%5D%5Bc%2B%2B%5D)\n- [Source code](https://github.com/googleapis/google-cloud-cpp)\n\nJava\n\nThe following list contains links to more resources related to the\nclient library for Java:\n\n- [API reference](/java/docs/reference)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/java-contact-center-insights/issues)\n- [`google-cloud-conversational-insights` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-conversational-insights%5D+%5Bjava%5D)\n- [Source code](https://github.com/googleapis/java-contact-center-insights)\n\nNode.js\n\nThe following list contains links to more resources related to the\nclient library for Node.js:\n\n- [API reference](https://googleapis.dev/nodejs/contactcenterinsights/latest/index.html)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/nodejs-contact-center-insights/issues)\n- [`google-cloud-conversational-insights` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-conversational-insights%5D+%5Bnode.js%5D)\n- [Source code](https://github.com/googleapis/nodejs-contact-center-insights)\n\nPython\n\nThe following list contains links to more resources related to the\nclient library for Python:\n\n- [API reference](/python/docs/reference/contactcenterinsights/latest)\n- [Client libraries best practices](/apis/docs/client-libraries-best-practices)\n- [Issue tracker](https://github.com/googleapis/python-contact-center-insights/issues)\n- [`google-cloud-conversational-insights` on Stack Overflow](https://stackoverflow.com/search?q=%5Bgoogle-cloud-conversational-insights%5D+%5Bpython%5D)\n- [Source code](https://github.com/googleapis/python-contact-center-insights)\n\n\u003cbr /\u003e"]]