Adds or updates a suggestion feature in a conversation profile. If the conversation profile contains the type of suggestion feature for the participant role, it will update it. Otherwise it will insert the suggestion feature.
This method is a long-running operation. The returned Operation
type has the following method-specific fields:
metadata
:SetSuggestionFeatureConfigOperationMetadata
response
:ConversationProfile
If a long running operation to add or update suggestion feature config for the same conversation profile, participant role and suggestion feature type exists, please cancel the existing long running operation before sending such request, otherwise the request will be rejected.
HTTP request
POST https://{endpoint}/v2beta1/{conversationProfile=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig
Where {endpoint}
is one of the supported service endpoints.
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
conversation |
Required. The Conversation Profile to add or update the suggestion feature config. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "participantRole": enum ( |
Fields | |
---|---|
participant |
Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used. |
suggestion |
Required. The suggestion feature config to add or update. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/dialogflow
For more information, see the Authentication Overview.