Knowledge Source Widget
The Knowledge Source Widget displays relevant knowledge documents within chatbot outputs, enhancing responses with clear, accessible source references.

Component description
How the Knowledge Source Widget component works
Document Widget Component
The Document Widget is a flow component designed to present knowledge documents within your AI workflow in a clear and accessible widget format. This component acts as a bridge between your raw document data and the visual or text-based outputs shown to users or downstream processes.
What Does This Component Do?
This component takes in one or more knowledge documents as input and displays them in the output as a formatted widget. It is especially useful for surfacing relevant source information, context, or supporting materials alongside AI-generated results, such as answers or recommendations.
Inputs
Name | Type | Required | Description |
---|---|---|---|
Knowledge Documents | Document | Yes | The document(s) you want to display in the widget. These can be any text-based knowledge sources. |
Title | String | No | Optional title for the widget block. Default is “Related Sources”. |
- Knowledge Documents: You must provide at least one document to display. This enables the widget to show original sources, references, or supporting content.
- Title: You can optionally customize the heading shown above the documents in the widget, helping clarify their purpose or context.
Outputs
Name | Type | Description |
---|---|---|
Message | Message | A message object containing the rendered document(s) in widget format. |
The output is a Message object, which can be used in subsequent workflow steps to display the knowledge documents or further process them.
Why Use the Document Widget?
- Transparency & Traceability: Show users the original sources or supporting documents behind AI decisions.
- Enhanced User Experience: Present information in a structured, visually distinct widget rather than raw text.
- Contextual Support: Easily supplement AI outputs with background materials, references, or additional reading.
- Customizable: The title can be tailored for different use cases, such as “References”, “Knowledge Base”, or “Related Documents”.
Typical Use Cases
- Displaying relevant documents alongside answers in a chatbot or Q&A system.
- Presenting source material for fact-checking or compliance purposes.
- Providing background reading or further information in educational applications.
In summary: The Document Widget is a simple yet powerful component for integrating and displaying knowledge documents within your AI workflows, making outputs more transparent, informative, and user-friendly.
Examples of flow templates using Knowledge Source Widget component
To help you get started quickly, we have prepared several example flow templates that demonstrate how to use the Knowledge Source Widget component effectively. These templates showcase different use cases and best practices, making it easier for you to understand and implement the component in your own projects.
Frequently asked questions
- What does the Knowledge Source Widget do?
It displays selected knowledge documents as widgets within chatbot responses, letting users see supporting information or sources without leaving the conversation.
- Can I customize the title or message shown with the widget?
Yes, you can set a custom title to be displayed above the knowledge documents in the widget.
- What type of content can be shown with the Knowledge Source Widget?
The widget is designed to present knowledge documents, such as excerpts or references, making them accessible and clear to users inside the chat interface.
- Why should I use the Knowledge Source Widget in my chatbot flow?
Adding the Knowledge Source Widget helps build trust and clarity by presenting relevant sources or evidence supporting the chatbot's answers.
Try Knowledge Source Widget
Enhance your AI chatbot with clear, contextual document displays using the Knowledge Source Widget in FlowHunt.