Optional. The conversation (between human agent and end user) where the search request is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>.
Request body
The request body contains data with the following structure:
Required. The natural language text query for knowledge search.
conversationProfile
string
Required. The conversation profile used to configure the search. Format: projects/<Project ID>/locations/<Location
ID>/conversationProfiles/<Conversation Profile ID>.
sessionId
string
Required. The ID of the search session. The sessionId can be combined with Dialogflow V3 Agent ID retrieved from conversation profile or on its own to identify a search session. The search history of the same session will impact the search result. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length must not exceed 36 characters.
latestMessage
string
Optional. The name of the latest conversation message when 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 HTTP request to search knowledge uses a POST method to a specific endpoint with a conversation path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body requires a parent resource, a natural language query, a conversation profile, and a session ID.\u003c/p\u003e\n"],["\u003cp\u003eSeveral optional fields can be included in the request body, such as the latest message, query source, end-user metadata, search configuration, and a flag for exact searching.\u003c/p\u003e\n"],["\u003cp\u003eThe response body, upon success, will provide a SearchKnowledgeResponse instance.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires one of two OAuth scopes, either \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.conversations.suggestions.searchKnowledge\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\nGet answers for the given query based on knowledge documents.\n\n### HTTP request\n\n`POST https://{endpoint}/v2beta1/{conversation=projects/*/conversations/*}/suggestions:searchKnowledge`\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 [SearchKnowledgeResponse](/dialogflow/es/docs/reference/rest/v2beta1/SearchKnowledgeResponse).\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)."]]