Stores content that can serve as Knowledge Base documentation or as prompts for Agent objects.
It is saved below the Orphan Documents node, which is below the Documentation node in the KB Explorer.
A Document object can be used in two ways:
- To create and organize documentation within the Knowledge Base.
- To store natural language prompts that can be referenced from a Agent object.
When a Document object is created, it contains two selectors:
- Edit
- Preview

The Edit selector allows you to type the content you want to document. In the Edit selector, you can edit in an (almost) WYSIWYG (What You See Is What You Get) way.
You can include links to other Document objects (or other GeneXus objects), attributes, etc. in your Knowledge Base. Files can also be stored in the Knowledge Base as part of your documentation.
Remember you can use the [[ObjectType.ObjectName|Description]] syntax to relate documents within the KB Documentation.
Displays how the content will be shown. It is useful to verify the final text or to check how the prompt will look when consumed by an Agent object.
Note: You can also access the History and Reference options of a Document object from its context menu (right click) in the Document Object:

History: Shows all previous versions of the Document object, allowing you to review changes over time and restore an earlier version if needed.
References: Displays a list of all objects in the Knowledge Base that reference the Document object.
Knowledge Base Documentation
Object Documentation Tab