Knowledge Retrieval: A Smart Chatbot
Build a smart chatbot that answers questions based on your own knowledge base.
Knowledge
Setup steps
- Install the OpenAI plugin from the Plugin Marketplace.
- Authorize OpenAI in Dify by navigating to Tools → OpenAI → Authorize and entering your API key.
- Create a Knowledge Base in Dify (under the Knowledge menu) and upload your documents.
- In the Knowledge Retrieval node, connect the Knowledge Base you created.
- Select an LLM in the LLM node to generate accurate answers using the retrieved knowledge chunks as context.
- The Answer node streams the response back to the user.
Give a rate
TYPE
Chatflow
PLUGINS
Openai
Dify Compatibility
1.13.0
SUPPORTED LANGUAGES
English
LAST UPDATED
May 12, 2026
SHARE WITH