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\u003eThis document describes the \u003ccode\u003esearchKnowledge\u003c/code\u003e method, which uses a POST request to a specified endpoint to search for knowledge within a conversation.\u003c/p\u003e\n"],["\u003cp\u003eThe path parameters include an optional \u003ccode\u003econversation\u003c/code\u003e string that specifies the conversation in which the search is taking place, formatted as \u003ccode\u003eprojects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body is a structured JSON object with fields like \u003ccode\u003eparent\u003c/code\u003e, \u003ccode\u003equery\u003c/code\u003e, \u003ccode\u003econversationProfile\u003c/code\u003e, and \u003ccode\u003esessionId\u003c/code\u003e, among others, which are used to define the scope and parameters of the knowledge search.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esessionId\u003c/code\u003e in the request body is a crucial identifier for a search session, and its history impacts the results, requiring a maximum of 36 characters.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests will return a \u003ccode\u003eSearchKnowledgeResponse\u003c/code\u003e, and the method requires specific OAuth scopes for authorization, including \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,[]]