What is Dify?
Dify is an open-source platform for developing generative AI applications. You can build chatbots, knowledge assistants, and other AI tools, integrate models like Novita AI’s DeepSeek, and deploy with minimal coding.Key Features of Dify:
- Visual Development: Dify’s drag-and-drop interface lets you create and deploy applications without extensive coding.
- Knowledge Base Augmentation: Improve responses with Retrieval-Augmented Generation (RAG), which connects your AI to internal documents or specialized data for contextual answers.
- Workflow Expansion: Add logic to your apps with functional nodes, and connect third-party platforms for additional functionality.
- Data Insights: Track metrics such as conversations, engagement, and response quality. Dify also integrates with analytics platforms to monitor and improve performance.
Prerequisites
Before you begin, make sure you have:- Novita AI LLM API Key:
- Visit Novita AI’s website and create an account.
-
After logging in, go to the Key Management page to generate your API Key. You need this key to connect Novita AI’s models to Dify.

- Dify Account:
- Sign up for a Dify account at Dify.ai.
Integration Steps
Connect Novita AI to Dify
To connect Novita AI’s models with Dify:- Log in to your Dify account.
- Click your profile icon or name in the top-right corner and select Settings.
- In the Model Providers section, find Novita AI in the list.
- Paste your Novita AI API Key into the field and click Save.
Create a DeepSeek AI Application
Once the integration is complete, you can create an application powered by DeepSeek V4 Pro:- From the Dify homepage, click Create Blank App in the left sidebar.
-
Choose Chatbot as the application type.

-
Name your app (e.g., “DeepSeek V4 Pro Bot”) and click Create.

-
From the Model dropdown, select Novita AI DeepSeek V4 Pro.

Enable Knowledge Base for Enhanced Text Analysis
To improve response accuracy, add a knowledge base. With Retrieval-Augmented Generation (RAG), your AI can access documents and generate more relevant responses.1
Create a Knowledge Base
-
In Dify, go to the Knowledge Base section and click Create Knowledge.

-
Upload documents (e.g., guides, FAQs, manuals) that provide relevant information for your AI to use.

-
Use Parent-Child Segmentation Mode to maintain document hierarchy and context so DeepSeek processes the content correctly and understands relationships between sections.

2
Integrate the Knowledge Base into Your AI App
-
In your chatbot’s Context Settings, click Add Knowledge Base.

- Choose the documents you uploaded and add them to your app’s context to improve its responses.
3
Share Your AI Application
Once your app is ready, you can share or embed it on external platforms:

- Public Link: Generate a public link for others to access your application.
- Embed on Websites: Embed your app on your website using Dify’s embed code.
Enhance AI Capabilities with Workflow-based Applications
If you need more than a chatbot, Dify supports workflow-based applications, which let you add custom business logic and extend your AI’s capabilities with functional nodes.- Choose Workflow as the application type.
- Use drag-and-drop nodes to define your app’s behavior based on conditions or actions.
-
Integrate external APIs (e.g., Google Search, databases) to give your AI richer data to process.
