Dialogflow API

Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).

Service: dialogflow.googleapis.com

We recommend that you call this service using Google-provided client libraries. If your application needs to call this service using your own libraries, you should use the following information when making the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service may have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://dialogflow.googleapis.com

REST Resource: v2.projects

Methods
agent POST /v2/{agent.parent=projects/*}/agent
Creates/updates the specified agent.
deleteAgent DELETE /v2/{parent=projects/*}/agent
Deletes the specified agent.
getAgent GET /v2/{parent=projects/*}/agent
Retrieves the specified agent.

REST Resource: v2.projects.agent

Methods
export POST /v2/{parent=projects/*}/agent:export
Exports the specified agent to a ZIP file.
import POST /v2/{parent=projects/*}/agent:import
Imports the specified agent from a ZIP file.
restore POST /v2/{parent=projects/*}/agent:restore
Restores the specified agent from a ZIP file.
search GET /v2/{parent=projects/*}/agent:search
Returns the list of agents.
train POST /v2/{parent=projects/*}/agent:train
Trains the specified agent.

REST Resource: v2.projects.agent.entityTypes

Methods
batchDelete POST /v2/{parent=projects/*/agent}/entityTypes:batchDelete
Deletes entity types in the specified agent.
batchUpdate POST /v2/{parent=projects/*/agent}/entityTypes:batchUpdate
Updates/Creates multiple entity types in the specified agent.
create POST /v2/{parent=projects/*/agent}/entityTypes
Creates an entity type in the specified agent.
delete DELETE /v2/{name=projects/*/agent/entityTypes/*}
Deletes the specified entity type.
get GET /v2/{name=projects/*/agent/entityTypes/*}
Retrieves the specified entity type.
list GET /v2/{parent=projects/*/agent}/entityTypes
Returns the list of all entity types in the specified agent.
patch PATCH /v2/{entityType.name=projects/*/agent/entityTypes/*}
Updates the specified entity type.

REST Resource: v2.projects.agent.entityTypes.entities

Methods
batchCreate POST /v2/{parent=projects/*/agent/entityTypes/*}/entities:batchCreate
Creates multiple new entities in the specified entity type.
batchDelete POST /v2/{parent=projects/*/agent/entityTypes/*}/entities:batchDelete
Deletes entities in the specified entity type.
batchUpdate POST /v2/{parent=projects/*/agent/entityTypes/*}/entities:batchUpdate
Updates or creates multiple entities in the specified entity type.

REST Resource: v2.projects.agent.intents

Methods
batchDelete POST /v2/{parent=projects/*/agent}/intents:batchDelete
Deletes intents in the specified agent.
batchUpdate POST /v2/{parent=projects/*/agent}/intents:batchUpdate
Updates/Creates multiple intents in the specified agent.
create POST /v2/{parent=projects/*/agent}/intents
Creates an intent in the specified agent.
delete DELETE /v2/{name=projects/*/agent/intents/*}
Deletes the specified intent and its direct or indirect followup intents.
get GET /v2/{name=projects/*/agent/intents/*}
Retrieves the specified intent.
list GET /v2/{parent=projects/*/agent}/intents
Returns the list of all intents in the specified agent.
patch PATCH /v2/{intent.name=projects/*/agent/intents/*}
Updates the specified intent.

REST Resource: v2.projects.agent.sessions

Methods
deleteContexts DELETE /v2/{parent=projects/*/agent/sessions/*}/contexts
Deletes all active contexts in the specified session.
detectIntent POST /v2/{session=projects/*/agent/sessions/*}:detectIntent
Processes a natural language query and returns structured, actionable data as a result.

REST Resource: v2.projects.agent.sessions.contexts

Methods
create POST /v2/{parent=projects/*/agent/sessions/*}/contexts
Creates a context.
delete DELETE /v2/{name=projects/*/agent/sessions/*/contexts/*}
Deletes the specified context.
get GET /v2/{name=projects/*/agent/sessions/*/contexts/*}
Retrieves the specified context.
list GET /v2/{parent=projects/*/agent/sessions/*}/contexts
Returns the list of all contexts in the specified session.
patch PATCH /v2/{context.name=projects/*/agent/sessions/*/contexts/*}
Updates the specified context.

REST Resource: v2.projects.agent.sessions.entityTypes

Methods
create POST /v2/{parent=projects/*/agent/sessions/*}/entityTypes
Creates a session entity type.
delete DELETE /v2/{name=projects/*/agent/sessions/*/entityTypes/*}
Deletes the specified session entity type.
get GET /v2/{name=projects/*/agent/sessions/*/entityTypes/*}
Retrieves the specified session entity type.
list GET /v2/{parent=projects/*/agent/sessions/*}/entityTypes
Returns the list of all session entity types in the specified session.
patch PATCH /v2/{sessionEntityType.name=projects/*/agent/sessions/*/entityTypes/*}
Updates the specified session entity type.

REST Resource: v2.projects.locations.operations

Methods
cancel POST /v2/{name=projects/*/locations/*/operations/*}:cancel
Starts asynchronous cancellation on a long-running operation.
get GET /v2/{name=projects/*/locations/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v2/{name=projects/*/locations/*}/operations
Lists operations that match the specified filter in the request.

REST Resource: v2.projects.operations

Methods
cancel POST /v2/{name=projects/*/operations/*}:cancel
Starts asynchronous cancellation on a long-running operation.
get GET /v2/{name=projects/*/operations/*}
Gets the latest state of a long-running operation.
list GET /v2/{name=projects/*}/operations
Lists operations that match the specified filter in the request.
Var denne siden nyttig? Si fra hva du synes:

Send tilbakemelding om ...

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