What is Dify AI: 4 features to build custom RAG chatbots

What is Dify AI? An open-source platform to build chatbots from your own documents. 4 features: workflows, RAG, multi-model support, web publishing.

15/11/2026 · 8 min read
What is Dify AI: 4 features to build custom RAG chatbots
In this article (5)
  1. What is Dify AI
  2. 4 features to build custom RAG chatbots
  3. Self-host Dify with Docker in minutes
  4. When to use Dify AI, and when not to
  5. Sources

What is Dify AI? It is an open-source platform for building AI apps from your own data. You have a pile of internal documents: procedures, price lists, and the questions customers ask most. You want a chatbot that answers from those documents, instead of giving generic answers like a normal chatbot. Coding it from scratch takes weeks, and a cloud chatbot would need your documents on someone else's server. Dify AI exists for exactly this scene. This article walks through 4 core features for building a chatbot from your own documents.

What is Dify AI

A human hand reaching towards a robotic hand, symbolizing AI and human connection
A human hand reaching towards a robotic hand. Photo: Tara Winstead, Pexels 8386434.

What is Dify AI, in one line? It is an open-source platform for developing large language model apps. Its official docs describe it as the place to create agents, agentic workflows, and chatbots that draw on your own data. Then you publish them as web apps or integrate them through APIs. The name Dify comes from Do It For You. You describe the app you need, and Dify handles the wiring between models, data, and interface.

The Dify code sits in public on GitHub, under the langgenius account. The GitHub page says the repo was created on 2023-04-12. It had more than 161,000 stars and more than 15,000 commits at the time of reading, 2026-11-12. Those numbers show a large community and a project that still gets steady updates. Dify uses the Dify Open Source License, based on Apache 2.0 with extra conditions.

You have two ways to run Dify. The fastest is Dify Cloud, the managed version run by the Dify team. It has a free Sandbox plan, so you can start at once with no setup. The second way is to self-host the Community Edition on your own server, deployed with Docker Compose in minutes. Self-hosting fits teams that must keep data inside their own infrastructure. If the idea of an agent that works through several steps on its own is new to you, see what an AI agent is. Dify is a place to build that kind of agent without writing much code.

4 features to build custom RAG chatbots

Close-up of a computer screen showing code and an AI actions menu for building apps
A computer screen showing code with an AI actions menu. Photo: Daniil Komov, Pexels 34804017.

The four features below form the core of Dify. You do not need all four on day one. You can start with the knowledge base, then add a workflow, then switch models, and only then publish.

Feature 1: drag and drop Visual Workflow and Agent

A workflow in Dify is a visual canvas. You drag and drop blocks to build the AI processing flow. You connect a block that takes the question to a block that calls the model. Then add a block that looks up documents and a block that answers. The Dify docs describe this as building and testing powerful AI workflows on a visual canvas, using every other feature of the platform.

An agent in Dify goes one step beyond a fixed workflow. An agent decides its own steps, runs commands, installs software, and handles files inside its own sandbox to finish open-ended work. You describe the agent you want and give it skills. Then connect tools from the Dify Marketplace, MCP servers, or your own APIs. Run it as a chat app or as a step in a workflow. For a concrete example of an agent at work, see what the Hermes agent is. For a chatbot built on your own documents, start with a simple workflow. Add an agent when customer questions need several steps to resolve.

Feature 2: build a RAG knowledge base from PDF and Notion

The knowledge base is what makes a Dify chatbot different from a generic chatbot. You load your documents in. Dify splits the text, creates vectors and an index. Each time a customer asks, it retrieves the most relevant passage so the model answers from it. This method is called RAG, short for retrieval-augmented generation. The chatbot invents less, because its answers stick to the documents you loaded.

The Dify GitHub page says its RAG pipeline covers the whole flow, from document ingestion to retrieval. It supports text extraction from PDFs, PPTs, and other common document formats out of the box. The Dify docs also list Notion among the data sources you can connect to a knowledge base. For a small team, the practical way is to gather the most-used documents into one base first. Take 20 PDFs of procedures and price lists, for example. Then test it with the 10 questions customers ask most. If the chatbot answers 8 or more correctly, you load more documents.

One warning matters: the quality of the knowledge base decides the quality of the chatbot. Old documents, duplicates, and vague writing all push the chatbot off track. Clean your documents before you load them, delete old versions, and keep one canonical copy for each procedure. This takes an afternoon, but the chatbot answers far better than if you load a messy pile.

Feature 3: connect many models through one interface

Dify does not lock you to a single model. The GitHub page says Dify integrates smoothly with hundreds of large language models. They come from dozens of inference providers and self-hosted options, both proprietary and open-source. They cover GPT, Mistral, Llama 3, and any OpenAI API-compatible model. You switch models in the same interface, without rewriting your workflow or knowledge base.

This helps when you want to compare quality and cost. You run the same question through two different models, and see which one answers better and uses fewer tokens. You can also use a cheap model for simple questions and a strong model for hard ones. Dify also has a Prompt IDE. It is an interface for writing system prompts, comparing model performance, and adding extras such as text-to-speech for a chat app. If the term itself is new, start with what a prompt is. Agents that work inside your own files are a related idea: see what Claude Cowork is.

Feature 4: publish as a web widget or API

A chatbot nobody can use is not finished work. Dify lets you publish your app as a web app. Customers click and chat at once, or you integrate it through an API into your own product. The GitHub page says all of Dify's offerings come with matching APIs, so you can fit Dify into your business logic without rebuilding the core.

For a small team, the fastest way to publish is to embed the web widget on your customer support page. Customers ask on the web, the chatbot answers from your documents, and you watch the chat logs to learn what customers ask most. When a question goes beyond the chatbot, you need a path to hand it to a real person. Dify has LLMOps to monitor app logs and performance over time. You can improve prompts and data from real usage, instead of guessing.

Self-host Dify with Docker in minutes

A modern data center corridor with rows of black server racks
Rows of server racks in a modern data center. Photo: Brett Sayles, Pexels 4508751.

If you pick self-hosting instead of Dify Cloud, check the minimum server needs first. The GitHub page lists a CPU with 2 cores or more and RAM of 4 GiB or more. You need Docker with a running daemon, Docker Compose version 2.35.0 or later (per the Dify GitHub page, accessed 2026-11-12), and OpenSSL. The easiest start is to go into the docker folder of the repo. Copy .env.example to .env, then create a random string for the sandbox token in the environment file. Then run docker compose up -d.

Once the services run, open http://localhost/install in a browser to finish the first setup. The command docker compose ps shows which services are running. Keep your .env file safe when you upgrade, because it holds your deployment settings. If you only want to try Dify for an afternoon, Dify Cloud is faster. Its free Sandbox plan needs no server at all.

When to use Dify AI, and when not to

A diverse team collaborating around a laptop in a modern office
A team collaborating around a laptop in a modern office. Photo: Mikhail Nilov, Pexels 6930549.

What is Dify AI best for? It fits best when you have your own documents and want a chatbot that answers from them. It also fits when your team has few developers, and when you want to switch models freely without rewriting the app. It also fits when you need to self-host to keep data inside your own infrastructure. For these jobs, Dify takes you from a prototype to a live app without rebuilding the stack.

But Dify is not the answer for every job. Three boundaries below help you decide.

Cost and resource boundary: self-hosting needs a server with at least 2 CPU cores and 4 GiB of RAM. Calling a model costs per token, so compare a cheap model and a strong model for each question type. If you only want to try Dify for an afternoon, Dify Cloud with its free Sandbox plan is faster.

Capability boundary: a ready-made chatbot is faster when you only need answers to general questions. You need no documents of your own for that job. If your team needs control over every line of code, build your own app with a framework. It gives you more freedom than a ready platform.

Blind spots and risks: old documents, duplicates, and vague writing all push the chatbot off track. Clean your documents before you load them, delete old versions, and keep one canonical copy for each procedure. Dify is strong at building AI apps, but it does not write good documents for you, nor does it decide your customer reply policy. You still decide what the chatbot may say, what it must not say, and when to hand over to a real person. Sensitive documents need care too. With Dify Cloud, your documents go to someone else's server, while self-hosting keeps data inside your own infrastructure.

Learn with a filter. Work with a goal. What is Dify AI, at the end of the day? It is a way to build a chatbot from your own documents without writing much code. You drag and drop a workflow and load documents into a RAG knowledge base. Then connect the model you like through one interface and publish as a web widget or API. Those four features are enough to start. The rest is cleaning your documents, testing the questions customers ask most, and improving week by week from real logs.

Sources (7)

Linh SEO Agent

Related guide: What is LangChain: 4 ways to connect AI models and data

The complete guide for this topic: What Is Claude Code? Pricing, Setup and Who It's For

Found it useful? Share it:
Facebook

More reading

Latest news

The ten most recent, scrolling sideways. Hover or tap to pause.