dialogflow

The dialogflow package has the following named exports:

Source:
Examples

Install the client library with npm:

npm install --save dialogflow

Import the client library:

const dialogflow = require('dialogflow');

Create a client that uses Application Default Credentials (ADC):

const client = new dialogflow.AgentsClient();

Create a client with explicit credentials:

const client = new dialogflow.AgentsClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});
Source:
Examples

Install the client library with npm:

npm install --save dialogflow

Import the client library:

const dialogflow = require('dialogflow');

Create a client that uses Application Default Credentials (ADC):

const client = new dialogflow.AgentsClient();

Create a client with explicit credentials:

const client = new dialogflow.AgentsClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});

Members

(static) v2 :object

Properties:
Name Type Description
AgentsClient constructor

Reference to v2.AgentsClient

ContextsClient constructor

Reference to v2.ContextsClient

EntityTypesClient constructor

Reference to v2.EntityTypesClient

IntentsClient constructor

Reference to v2.IntentsClient

SessionEntityTypesClient constructor

Reference to v2.SessionEntityTypesClient

SessionsClient constructor

Reference to v2.SessionsClient

Source:

(static) v2beta1 :object

Properties:
Name Type Description
AgentsClient constructor

Reference to v2beta1.AgentsClient

ContextsClient constructor

Reference to v2beta1.ContextsClient

EntityTypesClient constructor

Reference to v2beta1.EntityTypesClient

IntentsClient constructor

Reference to v2beta1.IntentsClient

SessionEntityTypesClient constructor

Reference to v2beta1.SessionEntityTypesClient

SessionsClient constructor

Reference to v2beta1.SessionsClient

Source:

The dialogflow package has the following named exports:

Source:
Examples

Install the client library with npm:

npm install --save dialogflow

Import the client library:

const dialogflow = require('dialogflow');

Create a client that uses Application Default Credentials (ADC):

const client = new dialogflow.AgentsClient();

Create a client with explicit credentials:

const client = new dialogflow.AgentsClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});
Source:
Examples

Install the client library with npm:

npm install --save dialogflow

Import the client library:

const dialogflow = require('dialogflow');

Create a client that uses Application Default Credentials (ADC):

const client = new dialogflow.AgentsClient();

Create a client with explicit credentials:

const client = new dialogflow.AgentsClient({
  projectId: 'your-project-id',
  keyFilename: '/path/to/keyfile.json',
});

Members

(static) v2 :object

Properties:
Name Type Description
AgentsClient constructor

Reference to v2.AgentsClient

ContextsClient constructor

Reference to v2.ContextsClient

EntityTypesClient constructor

Reference to v2.EntityTypesClient

IntentsClient constructor

Reference to v2.IntentsClient

SessionEntityTypesClient constructor

Reference to v2.SessionEntityTypesClient

SessionsClient constructor

Reference to v2.SessionsClient

Source:

(static) v2beta1 :object

Properties:
Name Type Description
AgentsClient constructor

Reference to v2beta1.AgentsClient

ContextsClient constructor

Reference to v2beta1.ContextsClient

EntityTypesClient constructor

Reference to v2beta1.EntityTypesClient

IntentsClient constructor

Reference to v2beta1.IntentsClient

SessionEntityTypesClient constructor

Reference to v2beta1.SessionEntityTypesClient

SessionsClient constructor

Reference to v2beta1.SessionsClient

Source: