Required. The conversation for which the suggestions are generated. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
Request body
The request body contains data with the following structure:
Optional. The name of the latest conversation message for which the request is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>.
[[["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\u003eThe endpoint for generating suggestions is \u003ccode\u003ePOST https://{endpoint}/v2/{conversation=projects/*/locations/*/conversations/*}/suggestions:generate\u003c/code\u003e, where the \u003ccode\u003econversation\u003c/code\u003e path parameter specifies the target conversation.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a JSON representation with optional fields \u003ccode\u003elatestMessage\u003c/code\u003e, which is the name of the last conversation message, and \u003ccode\u003etriggerEvents\u003c/code\u003e, which specifies a list of events to trigger the suggestion generation.\u003c/p\u003e\n"],["\u003cp\u003eGenerating suggestions requires specifying a conversation path parameter in the format \u003ccode\u003eprojects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a \u003ccode\u003eGenerateSuggestionsResponse\u003c/code\u003e, and the API requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"]]],[],null,[]]