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}/v2/{conversationProfile=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis API method adds or updates a suggestion feature in a conversation profile, either inserting a new feature or updating an existing one based on the participant role.\u003c/p\u003e\n"],["\u003cp\u003eThe request is a long-running operation, returning an \u003ccode\u003eOperation\u003c/code\u003e type with metadata and a \u003ccode\u003eConversationProfile\u003c/code\u003e response, that should be cancelled if another request for the same feature is already pending.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is made via a \u003ccode\u003ePOST\u003c/code\u003e method to a specified endpoint with a structured path parameter indicating the conversation profile to be modified.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include a \u003ccode\u003eparticipantRole\u003c/code\u003e (either HUMAN_AGENT or END_USER) and the \u003ccode\u003esuggestionFeatureConfig\u003c/code\u003e object, defining the feature to be added or updated.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires one of two OAuth scopes for authorization: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.conversationProfiles.setSuggestionFeatureConfig\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nAdds 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.\n\nThis method is a [long-running operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations). The returned `Operation` type has the following method-specific fields:\n\n- `metadata`: [SetSuggestionFeatureConfigOperationMetadata](/dialogflow/es/docs/reference/rest/v2/SetSuggestionFeatureConfigOperationMetadata)\n- `response`: [ConversationProfile](/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile)\n\nIf 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.\n\n### HTTP request\n\n`POST https://{endpoint}/v2/{conversationProfile=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/es/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/dialogflow/es/docs/reference/rest/v2/projects.locations.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]