Index
Agents
(interface)Contexts
(interface)EntityTypes
(interface)Environments
(interface)Fulfillments
(interface)Intents
(interface)SessionEntityTypes
(interface)Sessions
(interface)Agent
(message)Agent.ApiVersion
(enum)Agent.MatchMode
(enum)Agent.Tier
(enum)AnnotatedMessagePart
(message)AudioEncoding
(enum)BatchCreateEntitiesRequest
(message)BatchDeleteEntitiesRequest
(message)BatchDeleteEntityTypesRequest
(message)BatchDeleteIntentsRequest
(message)BatchUpdateEntitiesRequest
(message)BatchUpdateEntityTypesRequest
(message)BatchUpdateEntityTypesResponse
(message)BatchUpdateIntentsRequest
(message)BatchUpdateIntentsResponse
(message)Context
(message)ConversationEvent
(message)ConversationEvent.Type
(enum)CreateContextRequest
(message)CreateEntityTypeRequest
(message)CreateIntentRequest
(message)CreateSessionEntityTypeRequest
(message)DeleteAgentRequest
(message)DeleteAllContextsRequest
(message)DeleteContextRequest
(message)DeleteEntityTypeRequest
(message)DeleteIntentRequest
(message)DeleteSessionEntityTypeRequest
(message)DetectIntentRequest
(message)DetectIntentResponse
(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)GetAgentRequest
(message)GetContextRequest
(message)GetEntityTypeRequest
(message)GetFulfillmentRequest
(message)GetIntentRequest
(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.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.Text
(message)Intent.Parameter
(message)Intent.TrainingPhrase
(message)Intent.TrainingPhrase.Part
(message)Intent.TrainingPhrase.Type
(enum)Intent.WebhookState
(enum)IntentBatch
(message)IntentView
(enum)ListContextsRequest
(message)ListContextsResponse
(message)ListEntityTypesRequest
(message)ListEntityTypesResponse
(message)ListEnvironmentsRequest
(message)ListEnvironmentsResponse
(message)ListIntentsRequest
(message)ListIntentsResponse
(message)ListSessionEntityTypesRequest
(message)ListSessionEntityTypesResponse
(message)Message
(message)MessageAnnotation
(message)OriginalDetectIntentRequest
(message)OutputAudioConfig
(message)OutputAudioEncoding
(enum)Participant
(message)Participant.Role
(enum)QueryInput
(message)QueryParameters
(message)QueryResult
(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)SynthesizeSpeechConfig
(message)TextInput
(message)TrainAgentRequest
(message)UpdateContextRequest
(message)UpdateEntityTypeRequest
(message)UpdateFulfillmentRequest
(message)UpdateIntentRequest
(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.
|
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.
|
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). |
AnnotatedMessagePart
Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.
Fields | |
---|---|
text |
A part of a message possibly annotated with an entity. |
entity_type |
The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity. |
formatted_value |
The Dialogflow system entity formatted value of this message part. For example for a system entity of type { "amount": 5, "currency": "USD" } |
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. Format: 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. Format: 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. Format: 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. Format: 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. Format: 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. Format: 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
Fields | ||
---|---|---|
parent |
Required. The name of the agent to update or create intents in. Format: 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 intent_batch . The source of the intent batch. intent_batch can be only one of the following: |
||
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. Format: 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:
|
ConversationEvent
Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
Fields | |
---|---|
conversation |
The unique identifier of the conversation this notification refers to. Format: |
type |
The type of the event that this notification refers to. |
error_status |
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL. |
new_message_payload |
Payload of NEW_MESSAGE event. |
Type
Enumeration of the types of events available.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Type not set. |
CONVERSATION_STARTED |
A new conversation has been opened. This is fired when a telephone call is answered, or a conversation is created via the API. |
CONVERSATION_FINISHED |
An existing conversation has closed. This is fired when a telephone call is terminated, or a conversation is closed via the API. |
HUMAN_INTERVENTION_NEEDED |
An existing conversation has received notification from Dialogflow that human intervention is required. |
NEW_MESSAGE |
An existing conversation has received a new message, either from API or telephony. It is configured in ConversationProfile.new_message_event_notification_config |
UNRECOVERABLE_ERROR |
Unrecoverable error during a telephone call. In general non-recoverable errors only occur if something was misconfigured in the ConversationProfile corresponding to the call. After a non-recoverable error, Dialogflow may stop responding. We don't fire this event:
|
CreateContextRequest
The request message for Contexts.CreateContext
.
Fields | |
---|---|
parent |
Required. The session to create a context for. Format: Authorization requires the following IAM permission on the specified resource
|
context |
Required. The context to create. |
CreateEntityTypeRequest
The request message for EntityTypes.CreateEntityType
.
Fields | |
---|---|
parent |
Required. The agent to create a entity type for. Format: 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. Format: 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. |
CreateSessionEntityTypeRequest
The request message for SessionEntityTypes.CreateSessionEntityType
.
Fields | |
---|---|
parent |
Required. The session to create a session entity type for. Format: 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. Format: 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. 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. Format: 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. Format: Authorization requires the following IAM permission on the specified resource
|
DeleteSessionEntityTypeRequest
The request message for SessionEntityTypes.DeleteSessionEntityType
.
Fields | |
---|---|
name |
Required. The name of the entity type to delete. Format: 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. Format: For more information, see the API interactions guide. 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 |
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. |
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. Format: |
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. Format: |
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 |
Required. 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. Format: |
display_name |
Optional. The human-readable name of the fulfillment, unique within the agent. |
enabled |
Optional. Whether fulfillment is enabled. |
features[] |
Optional. 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 |
Optional. The user name for HTTP Basic authentication. |
password |
Optional. The password for HTTP Basic authentication. |
request_headers |
Optional. The HTTP request headers to send together with fulfillment requests. |
is_cloud_function |
Optional. Indicates if generic web service is created through Cloud Functions integration. Defaults to false. |
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. 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. Format: 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. Format: 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. Format: 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. |
GetSessionEntityTypeRequest
The request message for SessionEntityTypes.GetSessionEntityType
.
Fields | |
---|---|
name |
Required. The name of the session entity type. Format: 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 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_disabled |
Optional. Indicates whether Machine Learning is disabled for the intent. Note: If |
input_context_names[] |
Optional. The list of context names required for this intent to be triggered. Format: |
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 |
Read-only. The unique identifier of the root intent in the chain of followup intents. It identifies the correct followup intents chain for this intent. We populate this field only in the output. Format: |
parent_followup_intent_name |
Read-only after creation. 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[] |
Read-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
A rich response message. Corresponds to the intent Response
field in the Dialogflow console. For more information, see Rich response messages.
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 |
The text response. |
|
image |
The image response. |
|
quick_replies |
The quick replies response. |
|
card |
The card response. |
|
payload |
A custom platform-specific response. |
|
simple_responses |
The voice and text-only responses for Actions on Google. |
|
basic_card |
The basic card response for Actions on Google. |
|
suggestions |
The suggestion chips for Actions on Google. |
|
link_out_suggestion |
The link out suggestion chip for Actions on Google. |
|
list_select |
The list card response for Actions on Google. |
|
carousel_select |
The carousel card response for Actions on Google. |
|
browse_carousel_card |
Browse carousel card for Actions on Google. |
|
table_card |
Table card for Actions on Google. |
|
media_content |
The media content card for Actions on Google. |
BasicCard
The basic card message. Useful for displaying information.
Fields | |
---|---|
title |
Optional. The title of the card. |
subtitle |
Optional. The subtitle of the card. |
formatted_text |
Required, unless image is present. The body text of the card. |
image |
Optional. The image for the card. |
buttons[] |
Optional. The collection of card buttons. |
Button
The button object that appears at the bottom of a card.
Fields | |
---|---|
title |
Required. The title of the button. |
open_uri_action |
Required. Action to take when a user taps on the button. |
OpenUriAction
Opens the given URI.
Fields | |
---|---|
uri |
Required. The HTTP or HTTPS scheme URI. |
BrowseCarouselCard
Browse Carousel Card for Actions on Google. https://developers.google.com/actions/assistant/responses#browsing_carousel
Fields | |
---|---|
items[] |
Required. List of items in the Browse Carousel Card. Minimum of two items, maximum of ten. |
image_display_options |
Optional. Settings for displaying the image. Applies to every image in |
BrowseCarouselCardItem
Browsing carousel tile
Fields | |
---|---|
open_uri_action |
Required. Action to present to the user. |
title |
Required. Title of the carousel item. Maximum of two lines of text. |
description |
Optional. Description of the carousel item. Maximum of four lines of text. |
image |
Optional. Hero image for the carousel item. |
footer |
Optional. Text that appears at the bottom of the Browse Carousel Card. Maximum of one line of text. |
OpenUrlAction
Actions on Google action to open a given url.
Fields | |
---|---|
url |
Required. URL |
url_type_hint |
Optional. Specifies the type of viewer that is used when opening the URL. Defaults to opening via web browser. |
UrlTypeHint
Type of the URI.
Enums | |
---|---|
URL_TYPE_HINT_UNSPECIFIED |
Unspecified |
AMP_ACTION |
Url would be an amp action |
AMP_CONTENT |
URL that points directly to AMP content, or to a canonical URL which refers to AMP content via . |
ImageDisplayOptions
Image display options for Actions on Google. This should be used for when the image's aspect ratio does not match the image container's aspect ratio.
Enums | |
---|---|
IMAGE_DISPLAY_OPTIONS_UNSPECIFIED |
Fill the gaps between the image and the image container with gray bars. |
GRAY |
Fill the gaps between the image and the image container with gray bars. |
WHITE |
Fill the gaps between the image and the image container with white bars. |
CROPPED |
Image is scaled such that the image width and height match or exceed the container dimensions. This may crop the top and bottom of the image if the scaled image height is greater than the container height, or crop the left and right of the image if the scaled image width is greater than the container width. This is similar to "Zoom Mode" on a widescreen TV when playing a 4:3 video. |
BLURRED_BACKGROUND |
Pad the gaps between image and image frame with a blurred copy of the same image. |
Card
The card response message.
Fields | |
---|---|
title |
Optional. The title of the card. |
subtitle |
Optional. The subtitle of the card. |
image_uri |
Optional. The public URI to an image file for the card. |
buttons[] |
Optional. The collection of card buttons. |
Button
Contains information about a button.
Fields | |
---|---|
text |
Optional. The text to show on the button. |
postback |
Optional. The text to send back to the Dialogflow API or a URI to open. |
CarouselSelect
The card for presenting a carousel of options to select from.
Fields | |
---|---|
items[] |
Required. Carousel items. |
Item
An item in the carousel.
Fields | |
---|---|
info |
Required. Additional info about the option item. |
title |
Required. Title of the carousel item. |
description |
Optional. The body text of the card. |
image |
Optional. The image to display. |
ColumnProperties
Column properties for TableCard
.
Fields | |
---|---|
header |
Required. Column heading. |
horizontal_alignment |
Optional. Defines text alignment for all cells in this column. |
HorizontalAlignment
Text alignments within a cell.
Enums | |
---|---|
HORIZONTAL_ALIGNMENT_UNSPECIFIED |
Text is aligned to the leading edge of the column. |
LEADING |
Text is aligned to the leading edge of the column. |
CENTER |
Text is centered in the column. |
TRAILING |
Text is aligned to the trailing edge of the column. |
Image
The image response message.
Fields | |
---|---|
image_uri |
Optional. The public URI to an image file. |
accessibility_text |
Optional. A text description of the image to be used for accessibility, e.g., screen readers. |
LinkOutSuggestion
The suggestion chip message that allows the user to jump out to the app or website associated with this agent.
Fields | |
---|---|
destination_name |
Required. The name of the app or site this chip is linking to. |
uri |
Required. The URI of the app or site to open when the user taps the suggestion chip. |
ListSelect
The card for presenting a list of options to select from.
Fields | |
---|---|
title |
Optional. The overall title of the list. |
items[] |
Required. List items. |
subtitle |
Optional. Subtitle of the list. |
Item
An item in the list.
Fields | |
---|---|
info |
Required. Additional information about this option. |
title |
Required. The title of the list item. |
description |
Optional. The main text describing the item. |
image |
Optional. The image to display. |
MediaContent
The media content card for Actions on Google.
Fields | |
---|---|
media_type |
Optional. What type of media is the content (ie "audio"). |
media_objects[] |
Required. List of media objects. |
ResponseMediaObject
Response media object for media content card.
Fields | ||
---|---|---|
name |
Required. Name of media card. |
|
description |
Optional. Description of media card. |
|
content_url |
Required. Url where the media is stored. |
|
Union field image . Image to show with the media card. image can be only one of the following: |
||
large_image |
Optional. Image to display above media content. |
|
icon |
Optional. Icon to display above media content. |
ResponseMediaType
Format of response media type.
Enums | |
---|---|
RESPONSE_MEDIA_TYPE_UNSPECIFIED |
Unspecified. |
AUDIO |
Response media type is audio. |
Platform
The rich response message integration platform. See Integrations.
Enums | |
---|---|
PLATFORM_UNSPECIFIED |
Default platform. |
FACEBOOK |
Facebook. |
SLACK |
Slack. |
TELEGRAM |
Telegram. |
KIK |
Kik. |
SKYPE |
Skype. |
LINE |
Line. |
VIBER |
Viber. |
ACTIONS_ON_GOOGLE |
Google Assistant See Dialogflow webhook format |
GOOGLE_HANGOUTS |
Google Hangouts. |
QuickReplies
The quick replies response message.
Fields | |
---|---|
title |
Optional. The title of the collection of quick replies. |
quick_replies[] |
Optional. The collection of quick replies. |
SelectItemInfo
Additional info about the select item for when it is triggered in a dialog.
Fields | |
---|---|
key |
Required. A unique key that will be sent back to the agent if this response is given. |
synonyms[] |
Optional. A list of synonyms that can also be used to trigger this item in dialog. |