yoshi-code-bot | a8b35b9 | 2021-03-31 13:33:30 -0700 | [diff] [blame^] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="dialogflow_v2.html">Dialogflow API</a> . <a href="dialogflow_v2.projects.html">projects</a> . <a href="dialogflow_v2.projects.conversationProfiles.html">conversationProfiles</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#close">close()</a></code></p> |
| 79 | <p class="firstline">Close httplib2 connections.</p> |
| 80 | <p class="toc_element"> |
| 81 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 85 | <p class="firstline">Deletes the specified conversation profile.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Retrieves the specified conversation profile.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Returns the list of all conversation profiles in the specified project.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
| 97 | <p class="firstline">Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API.</p> |
| 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
| 100 | <code class="details" id="close">close()</code> |
| 101 | <pre>Close httplib2 connections.</pre> |
| 102 | </div> |
| 103 | |
| 104 | <div class="method"> |
| 105 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
| 106 | <pre>Creates a conversation profile in the specified project. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API. |
| 107 | |
| 108 | Args: |
| 109 | parent: string, Required. The project to create a conversation profile for. Format: `projects//locations/`. (required) |
| 110 | body: object, The request body. |
| 111 | The object takes the form of: |
| 112 | |
| 113 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 114 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 115 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 116 | }, |
| 117 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 118 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 119 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 120 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 121 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 122 | { # Config for suggestion features. |
| 123 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 124 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 125 | }, |
| 126 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 127 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 128 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 129 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 130 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 131 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 132 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 133 | }, |
| 134 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 135 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 136 | }, |
| 137 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 138 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 139 | "A String", |
| 140 | ], |
| 141 | }, |
| 142 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 143 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 144 | "A String", |
| 145 | ], |
| 146 | }, |
| 147 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 148 | }, |
| 149 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 150 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 151 | }, |
| 152 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 153 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 154 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 155 | }, |
| 156 | }, |
| 157 | ], |
| 158 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 159 | }, |
| 160 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 161 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 162 | }, |
| 163 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 164 | "messageFormat": "A String", # Format of message. |
| 165 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 166 | }, |
| 167 | }, |
| 168 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 169 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 170 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 171 | }, |
| 172 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 173 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 174 | "messageFormat": "A String", # Format of message. |
| 175 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 176 | }, |
| 177 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 178 | "messageFormat": "A String", # Format of message. |
| 179 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 180 | }, |
| 181 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 182 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 183 | }, |
| 184 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 185 | } |
| 186 | |
| 187 | x__xgafv: string, V1 error format. |
| 188 | Allowed values |
| 189 | 1 - v1 error format |
| 190 | 2 - v2 error format |
| 191 | |
| 192 | Returns: |
| 193 | An object of the form: |
| 194 | |
| 195 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 196 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 197 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 198 | }, |
| 199 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 200 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 201 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 202 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 203 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 204 | { # Config for suggestion features. |
| 205 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 206 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 207 | }, |
| 208 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 209 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 210 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 211 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 212 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 213 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 214 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 215 | }, |
| 216 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 217 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 218 | }, |
| 219 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 220 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 221 | "A String", |
| 222 | ], |
| 223 | }, |
| 224 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 225 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 226 | "A String", |
| 227 | ], |
| 228 | }, |
| 229 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 230 | }, |
| 231 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 232 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 233 | }, |
| 234 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 235 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 236 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 237 | }, |
| 238 | }, |
| 239 | ], |
| 240 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 241 | }, |
| 242 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 243 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 244 | }, |
| 245 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 246 | "messageFormat": "A String", # Format of message. |
| 247 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 248 | }, |
| 249 | }, |
| 250 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 251 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 252 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 253 | }, |
| 254 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 255 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 256 | "messageFormat": "A String", # Format of message. |
| 257 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 258 | }, |
| 259 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 260 | "messageFormat": "A String", # Format of message. |
| 261 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 262 | }, |
| 263 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 264 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 265 | }, |
| 266 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 267 | }</pre> |
| 268 | </div> |
| 269 | |
| 270 | <div class="method"> |
| 271 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 272 | <pre>Deletes the specified conversation profile. |
| 273 | |
| 274 | Args: |
| 275 | name: string, Required. The name of the conversation profile to delete. Format: `projects//locations//conversationProfiles/`. (required) |
| 276 | x__xgafv: string, V1 error format. |
| 277 | Allowed values |
| 278 | 1 - v1 error format |
| 279 | 2 - v2 error format |
| 280 | |
| 281 | Returns: |
| 282 | An object of the form: |
| 283 | |
| 284 | { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`. |
| 285 | }</pre> |
| 286 | </div> |
| 287 | |
| 288 | <div class="method"> |
| 289 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 290 | <pre>Retrieves the specified conversation profile. |
| 291 | |
| 292 | Args: |
| 293 | name: string, Required. The resource name of the conversation profile. Format: `projects//locations//conversationProfiles/`. (required) |
| 294 | x__xgafv: string, V1 error format. |
| 295 | Allowed values |
| 296 | 1 - v1 error format |
| 297 | 2 - v2 error format |
| 298 | |
| 299 | Returns: |
| 300 | An object of the form: |
| 301 | |
| 302 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 303 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 304 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 305 | }, |
| 306 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 307 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 308 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 309 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 310 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 311 | { # Config for suggestion features. |
| 312 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 313 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 314 | }, |
| 315 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 316 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 317 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 318 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 319 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 320 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 321 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 322 | }, |
| 323 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 324 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 325 | }, |
| 326 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 327 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 328 | "A String", |
| 329 | ], |
| 330 | }, |
| 331 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 332 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 333 | "A String", |
| 334 | ], |
| 335 | }, |
| 336 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 337 | }, |
| 338 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 339 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 340 | }, |
| 341 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 342 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 343 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 344 | }, |
| 345 | }, |
| 346 | ], |
| 347 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 348 | }, |
| 349 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 350 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 351 | }, |
| 352 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 353 | "messageFormat": "A String", # Format of message. |
| 354 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 355 | }, |
| 356 | }, |
| 357 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 358 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 359 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 360 | }, |
| 361 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 362 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 363 | "messageFormat": "A String", # Format of message. |
| 364 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 365 | }, |
| 366 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 367 | "messageFormat": "A String", # Format of message. |
| 368 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 369 | }, |
| 370 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 371 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 372 | }, |
| 373 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 374 | }</pre> |
| 375 | </div> |
| 376 | |
| 377 | <div class="method"> |
| 378 | <code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 379 | <pre>Returns the list of all conversation profiles in the specified project. |
| 380 | |
| 381 | Args: |
| 382 | parent: string, Required. The project to list all conversation profiles from. Format: `projects//locations/`. (required) |
| 383 | pageSize: integer, The maximum number of items to return in a single page. By default 100 and at most 1000. |
| 384 | pageToken: string, The next_page_token value returned from a previous list request. |
| 385 | x__xgafv: string, V1 error format. |
| 386 | Allowed values |
| 387 | 1 - v1 error format |
| 388 | 2 - v2 error format |
| 389 | |
| 390 | Returns: |
| 391 | An object of the form: |
| 392 | |
| 393 | { # The response message for ConversationProfiles.ListConversationProfiles. |
| 394 | "conversationProfiles": [ # The list of project conversation profiles. There is a maximum number of items returned based on the page_size field in the request. |
| 395 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 396 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 397 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 398 | }, |
| 399 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 400 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 401 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 402 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 403 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 404 | { # Config for suggestion features. |
| 405 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 406 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 407 | }, |
| 408 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 409 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 410 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 411 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 412 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 413 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 414 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 415 | }, |
| 416 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 417 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 418 | }, |
| 419 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 420 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 421 | "A String", |
| 422 | ], |
| 423 | }, |
| 424 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 425 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 426 | "A String", |
| 427 | ], |
| 428 | }, |
| 429 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 430 | }, |
| 431 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 432 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 433 | }, |
| 434 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 435 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 436 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 437 | }, |
| 438 | }, |
| 439 | ], |
| 440 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 441 | }, |
| 442 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 443 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 444 | }, |
| 445 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 446 | "messageFormat": "A String", # Format of message. |
| 447 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 448 | }, |
| 449 | }, |
| 450 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 451 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 452 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 453 | }, |
| 454 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 455 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 456 | "messageFormat": "A String", # Format of message. |
| 457 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 458 | }, |
| 459 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 460 | "messageFormat": "A String", # Format of message. |
| 461 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 462 | }, |
| 463 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 464 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 465 | }, |
| 466 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 467 | }, |
| 468 | ], |
| 469 | "nextPageToken": "A String", # Token to retrieve the next page of results, or empty if there are no more results in the list. |
| 470 | }</pre> |
| 471 | </div> |
| 472 | |
| 473 | <div class="method"> |
| 474 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 475 | <pre>Retrieves the next page of results. |
| 476 | |
| 477 | Args: |
| 478 | previous_request: The request for the previous page. (required) |
| 479 | previous_response: The response from the request for the previous page. (required) |
| 480 | |
| 481 | Returns: |
| 482 | A request object that you can call 'execute()' on to request the next |
| 483 | page. Returns None if there are no more items in the collection. |
| 484 | </pre> |
| 485 | </div> |
| 486 | |
| 487 | <div class="method"> |
| 488 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
| 489 | <pre>Updates the specified conversation profile. ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren't populated in the response. You can retrieve them via GetConversationProfile API. |
| 490 | |
| 491 | Args: |
| 492 | name: string, The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. (required) |
| 493 | body: object, The request body. |
| 494 | The object takes the form of: |
| 495 | |
| 496 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 497 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 498 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 499 | }, |
| 500 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 501 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 502 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 503 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 504 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 505 | { # Config for suggestion features. |
| 506 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 507 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 508 | }, |
| 509 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 510 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 511 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 512 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 513 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 514 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 515 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 516 | }, |
| 517 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 518 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 519 | }, |
| 520 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 521 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 522 | "A String", |
| 523 | ], |
| 524 | }, |
| 525 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 526 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 527 | "A String", |
| 528 | ], |
| 529 | }, |
| 530 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 531 | }, |
| 532 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 533 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 534 | }, |
| 535 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 536 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 537 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 538 | }, |
| 539 | }, |
| 540 | ], |
| 541 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 542 | }, |
| 543 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 544 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 545 | }, |
| 546 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 547 | "messageFormat": "A String", # Format of message. |
| 548 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 549 | }, |
| 550 | }, |
| 551 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 552 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 553 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 554 | }, |
| 555 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 556 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 557 | "messageFormat": "A String", # Format of message. |
| 558 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 559 | }, |
| 560 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 561 | "messageFormat": "A String", # Format of message. |
| 562 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 563 | }, |
| 564 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 565 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 566 | }, |
| 567 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 568 | } |
| 569 | |
| 570 | updateMask: string, Required. The mask to control which fields to update. |
| 571 | x__xgafv: string, V1 error format. |
| 572 | Allowed values |
| 573 | 1 - v1 error format |
| 574 | 2 - v2 error format |
| 575 | |
| 576 | Returns: |
| 577 | An object of the form: |
| 578 | |
| 579 | { # Defines the services to connect to incoming Dialogflow conversations. |
| 580 | "automatedAgentConfig": { # Defines the Automated Agent to connect to a conversation. # Configuration for an automated agent to use with this profile. |
| 581 | "agent": "A String", # Required. ID of the Dialogflow agent environment to use. This project needs to either be the same project as the conversation or you need to grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent` role in this project. Format: `projects//locations//agent/environments/`. If environment is not specified, the default `draft` environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details. |
| 582 | }, |
| 583 | "createTime": "A String", # Output only. Create time of the conversation profile. |
| 584 | "displayName": "A String", # Required. Human readable name for this profile. Max length 1024 bytes. |
| 585 | "humanAgentAssistantConfig": { # Defines the Human Agent Assist to connect to a conversation. # Configuration for agent assistance to use with this profile. |
| 586 | "humanAgentSuggestionConfig": { # Detail human agent assistant config. # Configuration for agent assistance of human agent participant. |
| 587 | "featureConfigs": [ # Configuration of different suggestion features. One feature can have only one config. |
| 588 | { # Config for suggestion features. |
| 589 | "conversationModelConfig": { # Custom conversation models used in agent assist feature. Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY. # Configs of custom conversation model. |
| 590 | "model": "A String", # Required. Conversation model resource name. Format: `projects//conversationModels/`. |
| 591 | }, |
| 592 | "enableEventBasedSuggestion": True or False, # Automatically iterates all participants and tries to compile suggestions. Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST. |
| 593 | "queryConfig": { # Config for suggestion query. # Configs of query. |
| 594 | "confidenceThreshold": 3.14, # Confidence threshold of query result. Agent Assist gives each suggestion a score in the range [0.0, 1.0], based on the relevance between the suggestion and the current conversation context. A score of 0.0 has no relevance, while a score of 1.0 has high relevance. Only suggestions with a score greater than or equal to the value of this field are included in the results. For a baseline model (the default), the recommended value is in the range [0.05, 0.1]. For a custom model, there is no recommended value. Tune this value by starting from a very low value and slowly increasing until you have desired results. If this field is not set, it defaults to 0.0, which means that all suggestions are returned. Supported features: ARTICLE_SUGGESTION. |
| 595 | "contextFilterSettings": { # Settings that determine how to filter recent conversation context when generating suggestions. # Determines how recent conversation context is filtered when generating suggestions. If unspecified, no messages will be dropped. |
| 596 | "dropHandoffMessages": True or False, # If set to true, the last message from virtual agent (hand off message) and the message before it (trigger message of hand off) are dropped. |
| 597 | "dropIvrMessages": True or False, # If set to true, all messages from ivr stage are dropped. |
| 598 | "dropVirtualAgentMessages": True or False, # If set to true, all messages from virtual agent are dropped. |
| 599 | }, |
| 600 | "dialogflowQuerySource": { # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST. # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST. |
| 601 | "agent": "A String", # Required. The name of a Dialogflow virtual agent used for end user side intent detection and suggestion. Format: `projects//locations//agent`. When multiple agents are allowed in the same Dialogflow project. |
| 602 | }, |
| 603 | "documentQuerySource": { # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE. # Query from knowledge base document. It is used by: SMART_REPLY, SMART_COMPOSE. |
| 604 | "documents": [ # Required. Knowledge documents to query from. Format: `projects//locations//knowledgeBases//documents/`. Currently, at most 5 documents are supported. |
| 605 | "A String", |
| 606 | ], |
| 607 | }, |
| 608 | "knowledgeBaseQuerySource": { # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ. # Query from knowledgebase. It is used by: ARTICLE_SUGGESTION, FAQ. |
| 609 | "knowledgeBases": [ # Required. Knowledge bases to query. Format: `projects//locations//knowledgeBases/`. Currently, at most 5 knowledge bases are supported. |
| 610 | "A String", |
| 611 | ], |
| 612 | }, |
| 613 | "maxResults": 42, # Maximum number of results to return. Currently, if unset, defaults to 10. And the max number is 20. |
| 614 | }, |
| 615 | "suggestionFeature": { # The type of Human Agent Assistant API suggestion to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list. # The suggestion feature. |
| 616 | "type": "A String", # Type of Human Agent Assistant API feature to request. |
| 617 | }, |
| 618 | "suggestionTriggerSettings": { # Settings of suggestion trigger. # Settings of suggestion trigger. Currently, only ARTICLE_SUGGESTION and FAQ will use this field. |
| 619 | "noSmalltalk": True or False, # Do not trigger if last utterance is small talk. |
| 620 | "onlyEndUser": True or False, # Only trigger suggestion if participant role of last utterance is END_USER. |
| 621 | }, |
| 622 | }, |
| 623 | ], |
| 624 | "groupSuggestionResponses": True or False, # If `group_suggestion_responses` is false, and there are multiple `feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we will try to deliver suggestions to customers as soon as we get new suggestion. Different type of suggestions based on the same context will be in separate Pub/Sub event or `StreamingAnalyzeContentResponse`. If `group_suggestion_responses` set to true. All the suggestions to the same participant based on the same context will be grouped into a single Pub/Sub event or StreamingAnalyzeContentResponse. |
| 625 | }, |
| 626 | "messageAnalysisConfig": { # Configuration for analyses to run on each conversation message. # Configuration for message analysis. |
| 627 | "enableSentimentAnalysis": True or False, # Enable sentiment analysis in conversation messages on [agent assist stage](https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages). If unspecified, defaults to false. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral: https://cloud.google.com/natural-language/docs/basics#sentiment_analysis For Participants.StreamingAnalyzeContent method, result will be in StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.message.SentimentAnalysisResult For Conversations.ListMessages method, result will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub notification is configured, result will be in ConversationEvent.new_message_payload.SentimentAnalysisResult. |
| 628 | }, |
| 629 | "notificationConfig": { # Defines notification behavior. # Pub/Sub topic on which to publish new agent assistant events. |
| 630 | "messageFormat": "A String", # Format of message. |
| 631 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 632 | }, |
| 633 | }, |
| 634 | "languageCode": "A String", # Language which represents the conversationProfile. If unspecified, the default language code en-us applies. Users need to create a ConversationProfile for each language they want to support. |
| 635 | "loggingConfig": { # Defines logging behavior for conversation lifecycle events. # Configuration for logging conversation lifecycle events. |
| 636 | "enableStackdriverLogging": True or False, # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in the conversation project as JSON format ConversationEvent protos. |
| 637 | }, |
| 638 | "name": "A String", # The unique identifier of this conversation profile. Format: `projects//locations//conversationProfiles/`. |
| 639 | "newMessageEventNotificationConfig": { # Defines notification behavior. # Configuration for publishing new message events. Event will be sent in format of ConversationEvent |
| 640 | "messageFormat": "A String", # Format of message. |
| 641 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 642 | }, |
| 643 | "notificationConfig": { # Defines notification behavior. # Configuration for publishing conversation lifecycle events. |
| 644 | "messageFormat": "A String", # Format of message. |
| 645 | "topic": "A String", # Name of the Pub/Sub topic to publish conversation events like CONVERSATION_STARTED as serialized ConversationEvent protos. Notification works for phone calls, if this topic either is in the same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project. Format: `projects//locations//topics/`. |
| 646 | }, |
| 647 | "sttConfig": { # Configures speech transcription for ConversationProfile. # Settings for speech transcription. |
| 648 | "speechModelVariant": "A String", # Optional. The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and StreamingAnalyzeContentRequest request. |
| 649 | }, |
| 650 | "updateTime": "A String", # Output only. Update time of the conversation profile. |
| 651 | }</pre> |
| 652 | </div> |
| 653 | |
| 654 | </body></html> |