Java Client Library

This page provides reference documentation and related resources for the Dialogflow Java client library.

Resource Description
Library reference Dialogflow Java library reference
Language guide General guide for using Java with GCP
GitHub repository Source code and additional documentation for this library
Quickstart Introduction to using this library
Stack Overflow Questions tagged with Dialogflow and Java

Installation

To install the client library:

If you are using Maven, add the following to your pom.xml file:
<dependency>
  <groupId>com.google.cloud</groupId>
  <artifactId>google-cloud-dialogflow</artifactId>
  <version>0.97.0-alpha</version>
</dependency>
If you are using Gradle, add the following to your dependencies:
compile 'com.google.cloud:google-cloud-dialogflow:0.97.0-alpha'
If you are using SBT, add the following to your dependencies:
libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.97.0-alpha"

If you're using IntelliJ or Eclipse, you can add client libraries to your project using the following IDE plugins:

The plugins provide additional functionality, such as key management for service accounts. Refer to each plugin's documentation for details.

V2Beta1 client library

Dialogflow's V2Beta1 API offers new features that are not yet available with the V2 API. To use the V2Beta1 client library:

  • Enable beta features. See agent general settings.
  • Specify the V2Beta1 API in your code by using the following import statement:

    import com.google.cloud.dialogflow.v2beta1.*;
    
Var denne siden nyttig? Si fra hva du synes:

Send tilbakemelding om ...

Dialogflow Documentation
Trenger du hjelp? Gå til brukerstøttesiden vår.