Method: projects.conversationProfiles.setSuggestionFeatureConfig

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:

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
conversationProfile

string

Required. The Conversation Profile to add or update the suggestion feature config. Format: projects/<Project ID>/locations/<Location ID>/conversationProfiles/<Conversation Profile ID>.

Request body

The request body contains data with the following structure:

JSON representation
{
  "participantRole": enum (Role),
  "suggestionFeatureConfig": {
    object (SuggestionFeatureConfig)
  }
}
Fields
participantRole

enum (Role)

Required. The participant role to add or update the suggestion feature config. Only HUMAN_AGENT or END_USER can be used.

suggestionFeatureConfig

object (SuggestionFeatureConfig)

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.