Java Client Library

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

References

The following links provide reference documentation for the client library:

Installation

To install the client library:

If you are using Maven, add this to your pom.xml file:

<dependency>
    <groupId>com.google.cloud</groupId>
    <artifactId>google-cloud-dialogflow</artifactId>
    <version>0.80.1-alpha</version>
</dependency>

If you are using Gradle, add this to your dependencies:

compile 'com.google.cloud:google-cloud-dialogflow:0.80.1-alpha'

If you are using SBT, add this to your dependencies:

libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "0.80.1-alpha"

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

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

Quickstart

For an introduction to using this library, see the Quickstart.

Language guide

The GCP documentation provides a general language guide for using Java.

GitHub repositories

The following links provide source code and issue trackers for the client library:

Get help

You can browse and ask questions about this client library at Stack Overflow.

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.*;
    
Was this page helpful? Let us know how we did:

Send feedback about...

Dialogflow Enterprise Edition Documentation