Index
Agents
(interface)Contexts
(interface)Documents
(interface)EntityTypes
(interface)Environments
(interface)Fulfillments
(interface)Intents
(interface)KnowledgeBases
(interface)SessionEntityTypes
(interface)Sessions
(interface)Agent
(message)Agent.ApiVersion
(enum)Agent.MatchMode
(enum)Agent.Tier
(enum)AudioEncoding
(enum)BatchCreateEntitiesRequest
(message)BatchDeleteEntitiesRequest
(message)BatchDeleteEntityTypesRequest
(message)BatchDeleteIntentsRequest
(message)BatchUpdateEntitiesRequest
(message)BatchUpdateEntityTypesRequest
(message)BatchUpdateEntityTypesResponse
(message)BatchUpdateIntentsRequest
(message)BatchUpdateIntentsResponse
(message)Context
(message)CreateContextRequest
(message)CreateDocumentRequest
(message)CreateEntityTypeRequest
(message)CreateIntentRequest
(message)CreateKnowledgeBaseRequest
(message)CreateSessionEntityTypeRequest
(message)DeleteAgentRequest
(message)DeleteAllContextsRequest
(message)DeleteContextRequest
(message)DeleteDocumentRequest
(message)DeleteEntityTypeRequest
(message)DeleteIntentRequest
(message)DeleteKnowledgeBaseRequest
(message)DeleteSessionEntityTypeRequest
(message)DetectIntentRequest
(message)DetectIntentResponse
(message)Document
(message)Document.KnowledgeType
(enum)Document.ReloadStatus
(message)EntityType
(message)EntityType.AutoExpansionMode
(enum)EntityType.Entity
(message)EntityType.Kind
(enum)EntityTypeBatch
(message)Environment
(message)Environment.State
(enum)EventInput
(message)ExportAgentRequest
(message)ExportAgentResponse
(message)Fulfillment
(message)Fulfillment.Feature
(message)Fulfillment.Feature.Type
(enum)Fulfillment.GenericWebService
(message)GcsSource
(message)GetAgentRequest
(message)GetContextRequest
(message)GetDocumentRequest
(message)GetEntityTypeRequest
(message)GetFulfillmentRequest
(message)GetIntentRequest
(message)GetKnowledgeBaseRequest
(message)GetSessionEntityTypeRequest
(message)GetValidationResultRequest
(message)ImportAgentRequest
(message)InputAudioConfig
(message)Intent
(message)Intent.FollowupIntentInfo
(message)Intent.Message
(message)Intent.Message.BasicCard
(message)Intent.Message.BasicCard.Button
(message)Intent.Message.BasicCard.Button.OpenUriAction
(message)Intent.Message.BrowseCarouselCard
(message)Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem
(message)Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction
(message)Intent.Message.BrowseCarouselCard.BrowseCarouselCardItem.OpenUrlAction.UrlTypeHint
(enum)Intent.Message.BrowseCarouselCard.ImageDisplayOptions
(enum)Intent.Message.Card
(message)Intent.Message.Card.Button
(message)Intent.Message.CarouselSelect
(message)Intent.Message.CarouselSelect.Item
(message)Intent.Message.ColumnProperties
(message)Intent.Message.ColumnProperties.HorizontalAlignment
(enum)Intent.Message.Image
(message)Intent.Message.LinkOutSuggestion
(message)Intent.Message.ListSelect
(message)Intent.Message.ListSelect.Item
(message)Intent.Message.MediaContent
(message)Intent.Message.MediaContent.ResponseMediaObject
(message)Intent.Message.MediaContent.ResponseMediaType
(enum)Intent.Message.Platform
(enum)Intent.Message.QuickReplies
(message)Intent.Message.RbmCardContent
(message)Intent.Message.RbmCardContent.RbmMedia
(message)Intent.Message.RbmCardContent.RbmMedia.Height
(enum)Intent.Message.RbmCarouselCard
(message)Intent.Message.RbmCarouselCard.CardWidth
(enum)Intent.Message.RbmStandaloneCard
(message)Intent.Message.RbmStandaloneCard.CardOrientation
(enum)Intent.Message.RbmStandaloneCard.ThumbnailImageAlignment
(enum)Intent.Message.RbmSuggestedAction
(message)Intent.Message.RbmSuggestedAction.RbmSuggestedActionDial
(message)Intent.Message.RbmSuggestedAction.RbmSuggestedActionOpenUri
(message)Intent.Message.RbmSuggestedAction.RbmSuggestedActionShareLocation
(message)Intent.Message.RbmSuggestedReply
(message)Intent.Message.RbmSuggestion
(message)Intent.Message.RbmText
(message)Intent.Message.SelectItemInfo
(message)Intent.Message.SimpleResponse
(message)Intent.Message.SimpleResponses
(message)Intent.Message.Suggestion
(message)Intent.Message.Suggestions
(message)Intent.Message.TableCard
(message)Intent.Message.TableCardCell
(message)Intent.Message.TableCardRow
(message)Intent.Message.TelephonyPlayAudio
(message)Intent.Message.TelephonySynthesizeSpeech
(message)Intent.Message.TelephonyTransferCall
(message)Intent.Message.Text
(message)Intent.Parameter
(message)Intent.TrainingPhrase
(message)Intent.TrainingPhrase.Part
(message)Intent.TrainingPhrase.Type
(enum)Intent.WebhookState
(enum)IntentBatch
(message)IntentView
(enum)KnowledgeAnswers
(message)KnowledgeAnswers.Answer
(message)KnowledgeAnswers.Answer.MatchConfidenceLevel
(enum)KnowledgeBase
(message)KnowledgeOperationMetadata
(message)KnowledgeOperationMetadata.State
(enum)ListContextsRequest
(message)ListContextsResponse
(message)ListDocumentsRequest
(message)ListDocumentsResponse
(message)ListEntityTypesRequest
(message)ListEntityTypesResponse
(message)ListEnvironmentsRequest
(message)ListEnvironmentsResponse
(message)ListIntentsRequest
(message)ListIntentsResponse
(message)ListKnowledgeBasesRequest
(message)ListKnowledgeBasesResponse
(message)ListSessionEntityTypesRequest
(message)ListSessionEntityTypesResponse
(message)OriginalDetectIntentRequest
(message)OutputAudioConfig
(message)OutputAudioEncoding
(enum)QueryInput
(message)QueryParameters
(message)QueryResult
(message)ReloadDocumentRequest
(message)RestoreAgentRequest
(message)SearchAgentsRequest
(message)SearchAgentsResponse
(message)Sentiment
(message)SentimentAnalysisRequestConfig
(message)SentimentAnalysisResult
(message)SessionEntityType
(message)SessionEntityType.EntityOverrideMode
(enum)SetAgentRequest
(message)SpeechContext
(message)SpeechModelVariant
(enum)SpeechWordInfo
(message)SsmlVoiceGender
(enum)StreamingDetectIntentRequest
(message)StreamingDetectIntentResponse
(message)StreamingRecognitionResult
(message)StreamingRecognitionResult.MessageType
(enum)SubAgent
(message)SynthesizeSpeechConfig
(message)TelephonyDtmf
(enum)TelephonyDtmfEvents
(message)TextInput
(message)TrainAgentRequest
(message)UpdateContextRequest
(message)UpdateDocumentRequest
(message)UpdateEntityTypeRequest
(message)UpdateFulfillmentRequest
(message)UpdateIntentRequest
(message)UpdateKnowledgeBaseRequest
(message)UpdateSessionEntityTypeRequest
(message)ValidationError
(message)ValidationError.Severity
(enum)ValidationResult
(message)VoiceSelectionParams
(message)WebhookRequest
(message)WebhookResponse
(message)
Agents
Service for managing Agents
.
DeleteAgent | |
---|---|
Deletes the specified agent.
|
ExportAgent | |
---|---|
Exports the specified agent to a ZIP file. Operation <response:
|
GetAgent | |
---|---|
Retrieves the specified agent.
|
GetValidationResult | |
---|---|
Gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.
|
ImportAgent | |
---|---|
Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from Operation <response:
|
RestoreAgent | |
---|---|
Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call Operation <response:
|
SearchAgents | |
---|---|
Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to List Sub-Collections.
|
SetAgent | |
---|---|
Creates/updates the specified agent.
|
TrainAgent | |
---|---|
Trains the specified agent. Operation <response:
|
Contexts
Service for managing Contexts
.
CreateContext | |
---|---|
Creates a context. If the specified context already exists, overrides the context.
|
DeleteAllContexts | |
---|---|
Deletes all active contexts in the specified session.
|
DeleteContext | |
---|---|
Deletes the specified context.
|
GetContext | |
---|---|
Retrieves the specified context.
|
ListContexts | |
---|---|
Returns the list of all contexts in the specified session.
|
UpdateContext | |
---|---|
Updates the specified context.
|
Documents
Service for managing knowledge Documents
.
CreateDocument | |
---|---|
Creates a new document. Note: The
|
DeleteDocument | |
---|---|
Deletes the specified document. Note: The
|
GetDocument | |
---|---|
Retrieves the specified document. Note: The
|
ListDocuments | |
---|---|
Returns the list of all documents of the knowledge base. Note: The
|
ReloadDocument | |
---|---|
Reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes. Note: If the document source is Google Cloud Storage URI, its metadata will be replaced with the custom metadata from Google Cloud Storage if the Note: The
|
UpdateDocument | |
---|---|
Updates the specified document. Note: The
|
EntityTypes
Service for managing EntityTypes
.
BatchCreateEntities | |
---|---|
Creates multiple new entities in the specified entity type. Operation <response:
|
BatchDeleteEntities | |
---|---|
Deletes entities in the specified entity type. Operation <response:
|
BatchDeleteEntityTypes | |
---|---|
Deletes entity types in the specified agent. Operation <response:
|
BatchUpdateEntities | |
---|---|
Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request. Operation <response:
|
BatchUpdateEntityTypes | |
---|---|
Updates/Creates multiple entity types in the specified agent. Operation <response:
|
CreateEntityType | |
---|---|
Creates an entity type in the specified agent.
|
DeleteEntityType | |
---|---|
Deletes the specified entity type.
|
GetEntityType | |
---|---|
Retrieves the specified entity type.
|
ListEntityTypes | |
---|---|
Returns the list of all entity types in the specified agent.
|
UpdateEntityType | |
---|---|
Updates the specified entity type.
|
Environments
Service for managing Environments
.
ListEnvironments | |
---|---|
Returns the list of all non-draft environments of the specified agent.
|
Fulfillments
Service for managing Fulfillments
.
GetFulfillment | |
---|---|
Retrieves the fulfillment.
|
UpdateFulfillment | |
---|---|
Updates the fulfillment.
|
Intents
Service for managing Intents
.
BatchDeleteIntents | |
---|---|
Deletes intents in the specified agent. Operation <response:
|
BatchUpdateIntents | |
---|---|
Updates/Creates multiple intents in the specified agent. Operation <response:
|
CreateIntent | |
---|---|
Creates an intent in the specified agent.
|
DeleteIntent | |
---|---|
Deletes the specified intent and its direct or indirect followup intents.
|
GetIntent | |
---|---|
Retrieves the specified intent.
|
ListIntents | |
---|---|
Returns the list of all intents in the specified agent.
|
UpdateIntent | |
---|---|
Updates the specified intent.
|
KnowledgeBases
Service for managing KnowledgeBases
.
CreateKnowledgeBase | |
---|---|
Creates a knowledge base. Note: The
|
DeleteKnowledgeBase | |
---|---|
Deletes the specified knowledge base. Note: The
|
GetKnowledgeBase | |
---|---|
Retrieves the specified knowledge base. Note: The
|
ListKnowledgeBases | |
---|---|
Returns the list of all knowledge bases of the specified agent. Note: The
|
UpdateKnowledgeBase | |
---|---|
Updates the specified knowledge base. Note: The
|
SessionEntityTypes
Service for managing SessionEntityTypes
.
CreateSessionEntityType | |
---|---|
Creates a session entity type. If the specified session entity type already exists, overrides the session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
|
DeleteSessionEntityType | |
---|---|
Deletes the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
|
GetSessionEntityType | |
---|---|
Retrieves the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
|
ListSessionEntityTypes | |
---|---|
Returns the list of all session entity types in the specified session. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
|
UpdateSessionEntityType | |
---|---|
Updates the specified session entity type. This method doesn't work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.
|
Sessions
A service used for session interactions.
For more information, see the API interactions guide.
DetectIntent | |
---|---|
Processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries. Note: Always use agent versions for production traffic. See Versions and environments.
|
StreamingDetectIntent | |
---|---|
Processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST). Note: Always use agent versions for production traffic. See Versions and environments.
|
Agent
A Dialogflow agent is a virtual agent that handles conversations with your end-users. It is a natural language understanding module that understands the nuances of human language. Dialogflow translates end-user text or audio during a conversation to structured data that your apps and services can understand. You design and build a Dialogflow agent to handle the types of conversations required for your system.
For more information about agents, see the Agent guide.
Fields | |
---|---|
parent |
Required. The project of this agent. Format: |
display_name |
Required. The name of this agent. |
default_language_code |
Required. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the |
supported_language_codes[] |
Optional. The list of all languages supported by this agent (except for the |
time_zone |
Required. The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris. |
description |
Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected. |
avatar_uri |
Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration. |
enable_logging |
Optional. Determines whether this agent should log conversation queries. |
match_mode |
Optional. Determines how intents are detected from user queries. |
classification_threshold |
Optional. To filter out false positive results and still get variety in matched natural language inputs for your agent, you can tune the machine learning classification threshold. If the returned score value is less than the threshold value, then a fallback intent will be triggered or, if there are no fallback intents defined, no intent will be triggered. The score values range from 0.0 (completely uncertain) to 1.0 (completely certain). If set to 0.0, the default of 0.3 is used. |
api_version |
Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version. |
tier |
Optional. The agent tier. If not specified, TIER_STANDARD is assumed. |
ApiVersion
API version for the agent.
Enums | |
---|---|
API_VERSION_UNSPECIFIED |
Not specified. |
API_VERSION_V1 |
Legacy V1 API. |
API_VERSION_V2 |
V2 API. |
API_VERSION_V2_BETA_1 |
V2beta1 API. |
MatchMode
Match mode determines how intents are detected from user queries.
Enums | |
---|---|
MATCH_MODE_UNSPECIFIED |
Not specified. |
MATCH_MODE_HYBRID |
Best for agents with a small number of examples in intents and/or wide use of templates syntax and composite entities. |
MATCH_MODE_ML_ONLY |
Can be used for agents with a large number of examples in intents, especially the ones using @sys.any or very large custom entities. |
Tier
Represents the agent tier.
Enums | |
---|---|
TIER_UNSPECIFIED |
Not specified. This value should never be used. |
TIER_STANDARD |
Standard tier. |
TIER_ENTERPRISE |
Enterprise tier (Essentials). |
TIER_ENTERPRISE_PLUS |
Enterprise tier (Plus). |
AudioEncoding
Audio encoding of the audio content sent in the conversational query request. Refer to the Cloud Speech API documentation for more details.
Enums | |
---|---|
AUDIO_ENCODING_UNSPECIFIED |
Not specified. |
AUDIO_ENCODING_LINEAR_16 |
Uncompressed 16-bit signed little-endian samples (Linear PCM). |
AUDIO_ENCODING_FLAC |
FLAC (Free Lossless Audio Codec) is the recommended encoding because it is lossless (therefore recognition is not compromised) and requires only about half the bandwidth of LINEAR16 . FLAC stream encoding supports 16-bit and 24-bit samples, however, not all fields in STREAMINFO are supported. |
AUDIO_ENCODING_MULAW |
8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law. |
AUDIO_ENCODING_AMR |
Adaptive Multi-Rate Narrowband codec. sample_rate_hertz must be 8000. |
AUDIO_ENCODING_AMR_WB |
Adaptive Multi-Rate Wideband codec. sample_rate_hertz must be 16000. |
AUDIO_ENCODING_OGG_OPUS |
Opus encoded audio frames in Ogg container (OggOpus). sample_rate_hertz must be 16000. |
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE |
Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, OGG_OPUS is highly preferred over Speex encoding. The Speex encoding supported by Dialogflow API has a header byte in each block, as in MIME type audio/x-speex-with-header-byte . It is a variant of the RTP Speex encoding defined in RFC 5574. The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. sample_rate_hertz must be 16000. |
BatchCreateEntitiesRequest
The request message for EntityTypes.BatchCreateEntities
.
Fields | |
---|---|
parent |
Required. The name of the entity type to create entities in. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
entities[] |
Required. The entities to create. |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
BatchDeleteEntitiesRequest
The request message for EntityTypes.BatchDeleteEntities
.
Fields | |
---|---|
parent |
Required. The name of the entity type to delete entries for. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
entity_values[] |
Required. The reference |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
BatchDeleteEntityTypesRequest
The request message for EntityTypes.BatchDeleteEntityTypes
.
Fields | |
---|---|
parent |
Required. The name of the agent to delete all entities types for. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
entity_type_names[] |
Required. The names entity types to delete. All names must point to the same agent as |
BatchDeleteIntentsRequest
The request message for Intents.BatchDeleteIntents
.
Fields | |
---|---|
parent |
Required. The name of the agent to delete all entities types for. Supported formats:
Authorization requires the following IAM permission on the specified resource
|
intents[] |
Required. The collection of intents to delete. Only intent |
BatchUpdateEntitiesRequest
The request message for EntityTypes.BatchUpdateEntities
.
Fields | |
---|---|
parent |
Required. The name of the entity type to update or create entities in. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
entities[] |
Required. The entities to update or create. |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
update_mask |
Optional. The mask to control which fields get updated. |
BatchUpdateEntityTypesRequest
The request message for EntityTypes.BatchUpdateEntityTypes
.
Fields | ||
---|---|---|
parent |
Required. The name of the agent to update or create entity types in. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
|
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
|
update_mask |
Optional. The mask to control which fields get updated. |
|
Union field For each entity type in the batch:
|
||
entity_type_batch_uri |
The URI to a Google Cloud Storage file containing entity types to update or create. The file format can either be a serialized proto (of EntityBatch type) or a JSON object. Note: The URI must start with "gs://". |
|
entity_type_batch_inline |
The collection of entity types to update or create. |
BatchUpdateEntityTypesResponse
The response message for EntityTypes.BatchUpdateEntityTypes
.
Fields | |
---|---|
entity_types[] |
The collection of updated or created entity types. |
BatchUpdateIntentsRequest
The request message for Intents.BatchUpdateIntents
.
Fields | ||
---|---|---|
parent |
Required. The name of the agent to update or create intents in. Supported formats:
Authorization requires the following IAM permission on the specified resource
|
|
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
|
update_mask |
Optional. The mask to control which fields get updated. |
|
intent_view |
Optional. The resource view to apply to the returned intent. |
|
Union field For each intent in the batch:
|
||
intent_batch_uri |
The URI to a Google Cloud Storage file containing intents to update or create. The file format can either be a serialized proto (of IntentBatch type) or JSON object. Note: The URI must start with "gs://". |
|
intent_batch_inline |
The collection of intents to update or create. |
BatchUpdateIntentsResponse
The response message for Intents.BatchUpdateIntents
.
Fields | |
---|---|
intents[] |
The collection of updated or created intents. |
Context
Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it needs to be provided with context in order to correctly match an intent.
Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and output contexts, which are identified by string names. When an intent is matched, any configured output contexts for that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured with input contexts that correspond to the currently active contexts.
For more information about context, see the Contexts guide.
Fields | |
---|---|
name |
Required. The unique identifier of the context. Supported formats: - The If The following context names are reserved for internal use by Dialogflow. You should not use these contexts or create contexts with these names:
|
lifespan_count |
Optional. The number of conversational query requests after which the context expires. The default is |
parameters |
Optional. The collection of parameters associated with this context. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
|
CreateContextRequest
The request message for Contexts.CreateContext
.
Fields | |
---|---|
parent |
Required. The session to create a context for. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
context |
Required. The context to create. |
CreateDocumentRequest
Request message for Documents.CreateDocument
.
Fields | |
---|---|
parent |
Required. The knowledge base to create a document for. Format: Authorization requires the following IAM permission on the specified resource
|
document |
Required. The document to create. |
import_gcs_custom_metadata |
Whether to import custom metadata from Google Cloud Storage. Only valid when the document source is Google Cloud Storage URI. |
CreateEntityTypeRequest
The request message for EntityTypes.CreateEntityType
.
Fields | |
---|---|
parent |
Required. The agent to create a entity type for. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
entity_type |
Required. The entity type to create. |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
CreateIntentRequest
The request message for Intents.CreateIntent
.
Fields | |
---|---|
parent |
Required. The agent to create a intent for. Supported formats:
Authorization requires the following IAM permission on the specified resource
|
intent |
Required. The intent to create. |
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
intent_view |
Optional. The resource view to apply to the returned intent. |
CreateKnowledgeBaseRequest
Request message for KnowledgeBases.CreateKnowledgeBase
.
Fields | |
---|---|
parent |
Required. The project to create a knowledge base for. Format: Authorization requires the following IAM permission on the specified resource
|
knowledge_base |
Required. The knowledge base to create. |
CreateSessionEntityTypeRequest
The request message for SessionEntityTypes.CreateSessionEntityType
.
Fields | |
---|---|
parent |
Required. The session to create a session entity type for. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
session_entity_type |
Required. The session entity type to create. |
DeleteAgentRequest
The request message for Agents.DeleteAgent
.
Fields | |
---|---|
parent |
Required. The project that the agent to delete is associated with. Format: Authorization requires the following IAM permission on the specified resource
|
DeleteAllContextsRequest
The request message for Contexts.DeleteAllContexts
.
Fields | |
---|---|
parent |
Required. The name of the session to delete all contexts from. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
DeleteContextRequest
The request message for Contexts.DeleteContext
.
Fields | |
---|---|
name |
Required. The name of the context to delete. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
DeleteDocumentRequest
Request message for Documents.DeleteDocument
.
Fields | |
---|---|
name |
Required. The name of the document to delete. Format: Authorization requires the following IAM permission on the specified resource
|
DeleteEntityTypeRequest
The request message for EntityTypes.DeleteEntityType
.
Fields | |
---|---|
name |
Required. The name of the entity type to delete. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
DeleteIntentRequest
The request message for Intents.DeleteIntent
.
Fields | |
---|---|
name |
Required. The name of the intent to delete. If this intent has direct or indirect followup intents, we also delete them. Supported formats:
Authorization requires the following IAM permission on the specified resource
|
DeleteKnowledgeBaseRequest
Request message for KnowledgeBases.DeleteKnowledgeBase
.
Fields | |
---|---|
name |
Required. The name of the knowledge base to delete. Format: Authorization requires the following IAM permission on the specified resource
|
force |
Optional. Force deletes the knowledge base. When set to true, any documents in the knowledge base are also deleted. |
DeleteSessionEntityTypeRequest
The request message for SessionEntityTypes.DeleteSessionEntityType
.
Fields | |
---|---|
name |
Required. The name of the entity type to delete. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
DetectIntentRequest
The request to detect user's intent.
Fields | |
---|---|
session |
Required. The name of the session this query is sent to. Supported formats: - If Note: Always use agent versions for production traffic. See Versions and environments. Authorization requires the following IAM permission on the specified resource
|
query_params |
The parameters of this query. |
query_input |
Required. The input specification. It can be set to:
|
output_audio_config |
Instructs the speech synthesizer how to generate the output audio. If this field is not set and agent-level speech synthesizer is not configured, no output audio is generated. |
output_audio_config_mask |
Mask for If unspecified or empty, |
input_audio |
The natural language speech audio to be processed. This field should be populated iff |
DetectIntentResponse
The message returned from the DetectIntent method.
Fields | |
---|---|
response_id |
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues. |
query_result |
The selected results of the conversational query or event processing. See |
alternative_query_results[] |
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing |
webhook_status |
Specifies the status of the webhook request. |
output_audio |
The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content. |
output_audio_config |
The config used by the speech synthesizer to generate the output audio. |
Document
A knowledge document to be used by a KnowledgeBase
.
For more information, see the knowledge base guide.
Note: The projects.agent.knowledgeBases.documents
resource is deprecated; only use projects.knowledgeBases.documents
.
Fields | ||
---|---|---|
name |
Optional. The document resource name. The name must be empty when creating a document. Format: |
|
display_name |
Required. The display name of the document. The name must be 1024 bytes or less; otherwise, the creation request fails. |
|
mime_type |
Required. The MIME type of this document. |
|
knowledge_types[] |
Required. The knowledge type of document content. |
|
enable_auto_reload |
Optional. If true, we try to automatically reload the document every day (at a time picked by the system). If false or unspecified, we don't try to automatically reload the document. Currently you can only enable automatic reload for documents sourced from a public url, see Reload status can be tracked in If a reload fails with internal errors, the system will try to reload the document on the next day. If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the system will not try to reload the document anymore. You need to manually reload the document successfully by calling |
|
latest_reload_status |
Output only. The time and status of the latest reload. This reload may have been triggered automatically or manually and may not have succeeded. |
|
Union field source . The source of this document. source can be only one of the following: |
||
content_uri |
The URI where the file content is located. For documents stored in Google Cloud Storage, these URIs must have the form NOTE: External URLs must correspond to public webpages, i.e., they must be indexed by Google Search. In particular, URLs for showing documents in Google Cloud Storage (i.e. the URL in your browser) are not supported. Instead use the |
|
content |
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types. Note: This field is in the process of being deprecated, please use raw_content instead. |
|
raw_content |
The raw content of the document. This field is only permitted for EXTRACTIVE_QA and FAQ knowledge types. |
KnowledgeType
The knowledge type of document content.
Enums | |
---|---|
KNOWLEDGE_TYPE_UNSPECIFIED |
The type is unspecified or arbitrary. |
FAQ |
The document content contains question and answer pairs as either HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats may fail to be parsed. CSV must have questions in the first column and answers in the second, with no header. Because of this explicit format, they are always parsed accurately. |
EXTRACTIVE_QA |
Documents for which unstructured text is extracted and used for question answering. |
ReloadStatus
The status of a reload attempt.
Fields | |
---|---|
time |
Output only. The time of a reload attempt. This reload may have been triggered automatically or manually and may not have succeeded. |
status |
Output only. The status of a reload attempt or the initial load. |
EntityType
Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is extracted.
Dialogflow provides predefined system entities that can match many common types of data. For example, there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your own custom entities for matching custom data. For example, you could define a vegetable entity that can match the types of vegetables available for purchase with a grocery store agent.
For more information, see the Entity guide.
Fields | |
---|---|
name |
The unique identifier of the entity type. Required for |
display_name |
Required. The name of the entity type. |
kind |
Required. Indicates the kind of entity type. |
auto_expansion_mode |
Optional. Indicates whether the entity type can be automatically expanded. |
entities[] |
Optional. The collection of entity entries associated with the entity type. |
enable_fuzzy_extraction |
Optional. Enables fuzzy entity extraction during classification. |
AutoExpansionMode
Represents different entity type expansion modes. Automated expansion allows an agent to recognize values that have not been explicitly listed in the entity (for example, new kinds of shopping list items).
Enums | |
---|---|
AUTO_EXPANSION_MODE_UNSPECIFIED |
Auto expansion disabled for the entity. |
AUTO_EXPANSION_MODE_DEFAULT |
Allows an agent to recognize values that have not been explicitly listed in the entity. |
Entity
An entity entry for an associated entity type.
Fields | |
---|---|
value |
Required. The primary value associated with this entity entry. For example, if the entity type is vegetable, the value could be scallions. For
For
|
synonyms[] |
Required. A collection of value synonyms. For example, if the entity type is vegetable, and For
|
Kind
Represents kinds of entities.
Enums | |
---|---|
KIND_UNSPECIFIED |
Not specified. This value should be never used. |
KIND_MAP |
Map entity types allow mapping of a group of synonyms to a reference value. |
KIND_LIST |
List entity types contain a set of entries that do not map to reference values. However, list entity types can contain references to other entity types (with or without aliases). |
KIND_REGEXP |
Regexp entity types allow to specify regular expressions in entries values. |
EntityTypeBatch
This message is a wrapper around a collection of entity types.
Fields | |
---|---|
entity_types[] |
A collection of entity types. |
Environment
You can create multiple versions of your agent and publish them to separate environments.
When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent.
When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for:
- testing
- development
- production
- etc.
For more information, see the versions and environments guide.
Fields | |
---|---|
name |
Output only. The unique identifier of this agent environment. Supported formats: - |
description |
Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected. |
agent_version |
Optional. The agent version loaded into this environment. Supported formats: - |
state |
Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods. |
update_time |
Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods. |
State
Represents an environment state. When an environment is pointed to a new agent version, the environment is temporarily set to the LOADING
state. During that time, the environment keeps on serving the previous version of the agent. After the new agent version is done loading, the environment is set back to the RUNNING
state.
Enums | |
---|---|
STATE_UNSPECIFIED |
Not specified. This value is not used. |
STOPPED |
Stopped. |
LOADING |
Loading. |
RUNNING |
Running. |
EventInput
Events allow for matching intents by event name instead of the natural language input. For instance, input <event: { name: "welcome_event",
parameters: { name: "Sam" } }>
can trigger a personalized welcome response. The parameter name
may be used by the agent in the response: "Hello #welcome_event.name! What can I do for you today?"
.
Fields | |
---|---|
name |
Required. The unique identifier of the event. |
parameters |
The collection of parameters associated with the event. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs:
|
language_code |
Required. The language of this query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |
ExportAgentRequest
The request message for Agents.ExportAgent
.
Fields | |
---|---|
parent |
Required. The project that the agent to export is associated with. Format: Authorization requires the following IAM permission on the specified resource
|
agent_uri |
Optional. The Google Cloud Storage URI to export the agent to. The format of this URI must be |
ExportAgentResponse
The response message for Agents.ExportAgent
.
Fields | ||
---|---|---|
Union field agent . The exported agent. agent can be only one of the following: |
||
agent_uri |
The URI to a file containing the exported agent. This field is populated only if |
|
agent_content |
Zip compressed raw byte content for agent. |
Fulfillment
By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday.
For more information, see the fulfillment guide.
Fields | |
---|---|
name |
Required. The unique identifier of the fulfillment. Supported formats: - |
display_name |
The human-readable name of the fulfillment, unique within the agent. |
enabled |
Whether fulfillment is enabled. |
features[] |
The field defines whether the fulfillment is enabled for certain features. |
generic_web_service |
Configuration for a generic web service. |
Feature
Whether fulfillment is enabled for the specific feature.
Fields | |
---|---|
type |
The type of the feature that enabled for fulfillment. |
Type
The type of the feature.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Feature type not specified. |
SMALLTALK |
Fulfillment is enabled for SmallTalk. |
GenericWebService
Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications: - Basic authentication with username and password. - Authentication with additional authentication headers. More information could be found at: https://cloud.google.com/dialogflow/docs/fulfillment-configure.
Fields | |
---|---|
uri |
Required. The fulfillment URI for receiving POST requests. It must use https protocol. |
username |
The user name for HTTP Basic authentication. |
password |
The password for HTTP Basic authentication. |
request_headers |
The HTTP request headers to send together with fulfillment requests. |
is_cloud_function |
Indicates if generic web service is created through Cloud Functions integration. Defaults to false. |
GcsSource
Google Cloud Storage location for single input.
Fields | |
---|---|
uri |
Required. The Google Cloud Storage URIs for the inputs. A URI is of the form: gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on the use case. |
GetAgentRequest
The request message for Agents.GetAgent
.
Fields | |
---|---|
parent |
Required. The project that the agent to fetch is associated with. Format: Authorization requires the following IAM permission on the specified resource
|
GetContextRequest
The request message for Contexts.GetContext
.
Fields | |
---|---|
name |
Required. The name of the context. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
GetDocumentRequest
Request message for Documents.GetDocument
.
Fields | |
---|---|
name |
Required. The name of the document to retrieve. Format Authorization requires the following IAM permission on the specified resource
|
GetEntityTypeRequest
The request message for EntityTypes.GetEntityType
.
Fields | |
---|---|
name |
Required. The name of the entity type. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
GetFulfillmentRequest
The request message for Fulfillments.GetFulfillment
.
Fields | |
---|---|
name |
Required. The name of the fulfillment. Supported formats: - Authorization requires the following IAM permission on the specified resource
|
GetIntentRequest
The request message for Intents.GetIntent
.
Fields | |
---|---|
name |
Required. The name of the intent. Supported formats:
Authorization requires the following IAM permission on the specified resource
|
language_code |
Optional. The language used to access language-specific data. If not specified, the agent's default language is used. For more information, see Multilingual intent and entity data. |
intent_view |
Optional. The resource view to apply to the returned intent. |
GetKnowledgeBaseRequest
Request message for KnowledgeBases.GetKnowledgeBase
.
Fields | |
---|---|
name |
Required. The name of the knowledge base to retrieve. Format Authorization requires the following IAM permission on the specified resource
|
GetSessionEntityTypeRequest
The request message for SessionEntityTypes.GetSessionEntityType
.
Fields | |
---|---|
name |
Required. The name of the session entity type. Supported formats: - If Authorization requires the following IAM permission on the specified resource
|
GetValidationResultRequest
The request message for Agents.GetValidationResult
.
Fields | |
---|---|
parent |
Required. The project that the agent is associated with. Format: Authorization requires the following IAM permission on the specified resource
|
language_code |
Optional. The language for which you want a validation result. If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used. |
ImportAgentRequest
The request message for Agents.ImportAgent
.
Fields | ||
---|---|---|
parent |
Required. The project that the agent to import is associated with. Format: Authorization requires the following IAM permission on the specified resource
|
|
Union field agent . Required. The agent to import. agent can be only one of the following: |
||
agent_uri |
The URI to a Google Cloud Storage file containing the agent to import. Note: The URI must start with "gs://". |
|
agent_content |
Zip compressed raw byte content for agent. |
InputAudioConfig
Instructs the speech recognizer on how to process the audio content.
Fields | |
---|---|
audio_encoding |
Required. Audio encoding of the audio content to process. |
sample_rate_hertz |
Required. Sample rate (in Hertz) of the audio content sent in the query. Refer to Cloud Speech API documentation for more details. |
language_code |
Required. The language of the supplied audio. Dialogflow does not do translations. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. |
enable_word_info |
If |
phrase_hints[] |
A list of strings containing words and phrases that the speech recognizer should recognize with higher likelihood. See the Cloud Speech documentation for more details. This field is deprecated. Please use speech_contexts instead. If you specify both phrase_hints and speech_contexts, Dialogflow will treat the phrase_hints as a single additional SpeechContext. |
speech_contexts[] |
Context information to assist speech recognition. See the Cloud Speech documentation for more details. |
model |
Which Speech model to select for the given request. Select the model best suited to your domain to get best results. If a model is not explicitly specified, then we auto-select a model based on the parameters in the InputAudioConfig. If enhanced speech model is enabled for the agent and an enhanced version of the specified model for the language does not exist, then the speech is recognized using the standard version of the specified model. Refer to Cloud Speech API documentation for more details. |
model_variant |
Which variant of the |
single_utterance |
If |
Intent
An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as an end-user expression or end-user input, Dialogflow matches the end-user input to the best intent in your agent. Matching an intent is also known as intent classification.
For more information, see the intent guide.
Fields | |
---|---|
name |
Optional. The unique identifier of this intent. Required for
|
display_name |
Required. The name of this intent. |
webhook_state |
Optional. Indicates whether webhooks are enabled for the intent. |
priority |
Optional. The priority of this intent. Higher numbers represent higher priorities.
|
is_fallback |
Optional. Indicates whether this is a fallback intent. |
ml_enabled |
Optional. Indicates whether Machine Learning is enabled for the intent. Note: If
|
ml_disabled |
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If |
end_interaction |
Optional. Indicates that this intent ends an interaction. Some integrations (e.g., Actions on Google or Dialogflow phone gateway) use this information to close interaction with an end user. Default is false. |
input_context_names[] |
Optional. The list of context names required for this intent to be triggered. Formats:
|
events[] |
Optional. The collection of event names that trigger the intent. If the collection of input contexts is not empty, all of the contexts must be present in the active user session for an event to trigger this intent. Event names are limited to 150 characters. |
training_phrases[] |
Optional. The collection of examples that the agent is trained on. |
action |
Optional. The name of the action associated with the intent. Note: The action name must not contain whitespaces. |
output_contexts[] |
Optional. The collection of contexts that are activated when the intent is matched. Context messages in this collection should not set the parameters field. Setting the |
reset_contexts |
Optional. Indicates whether to delete all contexts in the current session when this intent is matched. |
parameters[] |
Optional. The collection of parameters associated with the intent. |
messages[] |
Optional. The collection of rich messages corresponding to the |
default_response_platforms[] |
Optional. The list of platforms for which the first responses will be copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform). |
root_followup_intent_name |
Output only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. Format: |
parent_followup_intent_name |
Optional. The unique identifier of the parent intent in the chain of followup intents. You can set this field when creating an intent, for example with It identifies the parent followup intent. Format: |
followup_intent_info[] |
Output only. Information about all followup intents that have this intent as a direct or indirect parent. We populate this field only in the output. |
FollowupIntentInfo
Represents a single followup intent in the chain.
Fields | |
---|---|
followup_intent_name |
The unique identifier of the followup intent. Format: |
parent_followup_intent_name |
The unique identifier of the followup intent's parent. Format: |
Message
Corresponds to the Response
field in the Dialogflow console.
Fields | ||
---|---|---|
platform |
Optional. The platform that this message is intended for. |
|
Union field message . Required. The rich response message. message can be only one of the following: |
||
text |
Returns a text response. |
|
image |
Displays an image. |
|
quick_replies |
Displays quick replies. |
|