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\u003eThis API endpoint uses a POST request to generate suggestions for a specific conversation, using the format \u003ccode\u003ePOST https://{endpoint}/v2beta1/{conversation=projects/*/locations/*/conversations/*}/suggestions:generate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econversation\u003c/code\u003e path parameter is required and specifies the conversation for which suggestions are generated, following the format: \u003ccode\u003eprojects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body, structured as a JSON object, may include \u003ccode\u003elatestMessage\u003c/code\u003e to specify the most recent message, and a \u003ccode\u003etriggerEvents\u003c/code\u003e array to indicate which generator events should be triggered.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a \u003ccode\u003eGenerateSuggestionsResponse\u003c/code\u003e object, as defined in the API's documentation.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this API requires one of two OAuth scopes: \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.locations.conversations.suggestions.generate\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\nGenerates all the suggestions using generators configured in the conversation profile. A generator is used only if its trigger event is matched.\n\n### HTTP request\n\n`POST https://{endpoint}/v2beta1/{conversation=projects/*/locations/*/conversations/*}/suggestions:generate`\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 [GenerateSuggestionsResponse](/dialogflow/es/docs/reference/rest/v2beta1/GenerateSuggestionsResponse).\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)."]]