The dialogflow package has the following named exports:
AgentsClient- Reference to v2.AgentsClientContextsClient- Reference to v2.ContextsClientEntityTypesClient- Reference to v2.EntityTypesClientIntentsClient- Reference to v2.IntentsClientSessionEntityTypesClient- Reference to v2.SessionEntityTypesClientSessionsClient- Reference to v2.SessionsClientv2- This is used for selecting or pinning a particular backend service version. It exports:AgentsClient- Reference to v2.AgentsClientContextsClient- Reference to v2.ContextsClientEntityTypesClient- Reference to v2.EntityTypesClientIntentsClient- Reference to v2.IntentsClientSessionEntityTypesClient- Reference to v2.SessionEntityTypesClientSessionsClient- Reference to v2.SessionsClient
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',
});
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 |
(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 |