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 that provide information to Dialogflow for responding to end-user inputs.\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 of the knowledge base resource must be empty when creating one, following the specified format: \u003ccode\u003eprojects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSeveral methods are available for managing KnowledgeBases, including creating, deleting, retrieving, listing, and updating them via the provided API endpoints.\u003c/p\u003e\n"],["\u003cp\u003eThe resource \u003ccode\u003eprojects.agent.knowledgeBases\u003c/code\u003e has been deprecated and \u003ccode\u003eprojects.knowledgeBases\u003c/code\u003e should be used instead.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.agent.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`."]]