A knowledge base represents a collection of knowledge documents that you provide to Dialogflow. Your knowledge documents contain information that may be useful during conversations with end-users. Some Dialogflow features use knowledge bases when looking for a response to an end-user input.
The knowledge base resource name. The name must be empty when creating a knowledge base. Format: projects/<Project ID>/locations/<Location
ID>/knowledgeBases/<Knowledge Base ID>.
displayName
string
Required. The display name of the knowledge base. The name must be 1024 bytes or less; otherwise, the creation request fails.
languageCode
string
Language which represents the KnowledgeBase. When the KnowledgeBase is created/updated, this is populated for all non en-us languages. If not populated, the default language en-us applies.
[[["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\u003eA KnowledgeBase is a collection of knowledge documents used by Dialogflow to provide information during conversations with end-users.\u003c/p\u003e\n"],["\u003cp\u003eThe KnowledgeBase JSON representation includes fields for \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003edisplayName\u003c/code\u003e, and \u003ccode\u003elanguageCode\u003c/code\u003e, defining the resource's identity, display name, and language.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e field is the unique identifier for the KnowledgeBase, following a specific format including project, location, and Knowledge Base IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edisplayName\u003c/code\u003e is a required field that must be 1024 bytes or less, serving as the visible name of the KnowledgeBase.\u003c/p\u003e\n"],["\u003cp\u003eKey methods for managing KnowledgeBases include creating, deleting, retrieving, listing, and updating them, each serving specific management functionalities.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.knowledgeBases\n\n- [Resource: KnowledgeBase](#KnowledgeBase)\n - [JSON representation](#KnowledgeBase.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: KnowledgeBase\n-----------------------\n\nA knowledge base represents a collection of knowledge documents that you provide to Dialogflow. Your knowledge documents contain information that may be useful during conversations with end-users. Some Dialogflow features use knowledge bases when looking for a response to an end-user input.\n\nFor more information, see the [knowledge base guide](https://cloud.google.com/dialogflow/docs/how/knowledge-bases).\n\nNote: The `projects.agent.knowledgeBases` resource is deprecated; only use `projects.knowledgeBases`."]]