Introduction
In the rapidly evolving landscape of AI application development, low-code platforms are revolutionizing how enterprises implement intelligent solutions. Dify emerges as a transformative open-source platform that empowers teams to build, deploy, and scale AI-driven workflows with minimal coding effort. Its modular architecture and visual workflow design enable seamless integration of AI capabilities—from document processing to multilingual collaboration—while abstracting away infrastructure complexities.
This article will leverage DeepSeek R1, combined with Dify, an open-source low-code development platform, to demonstrate how to quickly build an enterprise-level multilingual document translation tool. Through Dify's seamless integration, users can automate document parsing, stylistic translation, and batch processing without complex programming, significantly improving cross-language collaboration efficiency. Whether it's precise translation of technical manuals or flexible adaptation of multilingual marketing content, this solution can be easily implemented through modular workflows, providing a cost-effective and highly controllable AI solution for global teams.
Backend as a Service: Building an AI Application Backend with Dify Low-Code
Prerequisites
Apply for a DeepSeek API key.
Register for a Dify account.
Applying for a DeepSeek API Key
Method 1: Via the DeepSeek API Open Platform
Visit the DeepSeek API Open Platform and follow the on-screen instructions to apply for an API key.
If the link is not accessible, consider deploying DeepSeek locally.
See also Dify x DeepSeek: Deploy a Private AI Assistant & Build a Local DeepSeek R1 + Web Search App
Method 2: Via a Third-Party Model Platform
Registering for Dify
Dify is a platform that helps you quickly build generative AI applications. By integrating with the DeepSeek API, you can quickly create an easy-to-use DeepSeek AI application.
Connecting DeepSeek to Dify
Visit the Dify platform, click on your avatar in the upper right corner -> Settings -> Model Provider, find DeepSeek, and paste the API Key you obtained earlier.
![](https://framerusercontent.com/images/QnEH86qk2kAc0Nt3VrIzZlfyTI.png)
Click Save. A success message will appear after the validation is successful.
Creating an Application
Enter the Studio, click Create from Blank -> Workflow.
What are Chatflow and Workflow?
In Dify's advanced application types, there are Chatflow and Workflow. Chatflow behaves more like a chatbot, that is, a robot that can interact with users in a loop; while Workflow behaves more like a script, which is only executed once when called and is usually used as the application backend.
You need to choose the appropriate application type according to the application scenario you are building. In this demonstration, we will choose the Workflow type.
![](https://framerusercontent.com/images/Ne35T0I3R8PB1TBmVVhWyUvSDe8.png)
Building the Workflow
After entering the application, you can edit the workflow by adding and connecting nodes, without having to process the code.
The following demonstrates how to create a document translation tool:
Start Node
In the start node, click +
to add a variable of the File type. Select the file type as File List, set the file type to Document, and name the variable "file".
![](https://framerusercontent.com/images/faYsKTYey0Ouh4vBh6KzLMx8LKA.png)
Also, we need to limit the translation style, for example: Formal, Professional, Casual, Enthusiastic, Humorous. Click + Add Option type variables, enter the content of each option, and set the variable name to style
.
![](https://framerusercontent.com/images/oNlGzyIOyuQiO51a29u6WFXZK4.png)
Iteration
In the Start node, we set a list of files. To avoid repeatedly constructing the workflow nodes, Dify introduces an iteration node. In the iteration node, the workflow executes all the list-type variables completely and outputs them separately.
For detailed instructions on the iteration, please refer to the Documentation -> Iteration.
![](https://framerusercontent.com/images/IYZ3DT3evmBtYTvvyTddZTk73NU.png)
Below, we will further configure the workflow within the iteration node:
First, add the Iteration node after the Start node. You will find that the Iteration node is like a smaller workflow, in which there are also start variables and output variables. Here, you need to set the Iteration node's input variable to file
.
![](https://framerusercontent.com/images/PhYh4vaEiEcS9dP6D5yuh6YOpM.png)
Then add nodes within the Iteration node. Since the LLM cannot directly read the content of uploaded documents, you need to add a Document Extractor to convert the document content into text that the LLM can read. The input variable of the Document Extractor is the file file in the Start node.
After the Document Extractor, add an LLM node and set the system prompt and user input.
Here's the system prompt:
In the system prompt, you can type /
or {
to insert variables.
The official DeepSeek provides a prompt library for all users to refer to.
For building LLM applications from scratch, Dify also offers more comprehensive and easy-to-use templates. You can open the Explore page to view and pull the desired template into your studio for editing.
![](https://framerusercontent.com/images/Oqow4KnUF4ZYJWxPVyHCUp0M66U.png)
Finally, click the Iteration node and set the output variable to the output of the LLM.
![](https://framerusercontent.com/images/jTrjkctE91hbW9PQExgMxxoQlP8.png)
Testing and Publishing
Before publishing, you can perform testing to ensure that the service is functioning properly.
Click "Run", enter all the variables, and click "Start Run" to start the execution.
![](https://framerusercontent.com/images/wL8UvVI7f1VJBLLXjGpp1Y74mB4.png)
![](https://framerusercontent.com/images/MdiIhRyUoTnu1dX2tPpmk2V7RC4.png)
After the test passes, click "Publish" to deploy the application online. You can share the deployment link with friends to test it together.
![](https://framerusercontent.com/images/WLNvlNbQlqzOwublSY6PXwIuqE.png)
If you want to further develop the application's front-end interface, you can refer to Dify's API documentation. Click "Access API" on the right to view the API documentation and manage the application's API Key.
![](https://framerusercontent.com/images/ciCz3zP0vPKncHmEMHftld7HDU.png)
Optimizing Performance
In testing, you may find that the speed of translating documents is slow, especially when using inference models like DeepSeek R1. To maximize the speed, we need to improve the iteration in the workflow.
Select the Iteration node, turn on Parallel Mode, and set a reasonable number of parallel tasks.
![](https://framerusercontent.com/images/QLfxmGsIF1fnCAyUAwnKomIrhc.png)
After enabling parallel mode, the workflow will execute all tasks simultaneously instead of sequentially. This significantly improves efficiency.
![](https://framerusercontent.com/images/d1MrgpweuPiQP13NIGnQerti0KI.png)
Obtaining Templates
If you find it difficult to build the workflow yourself, you can directly pull the template from the DeepSeek column on the Explore page, or copy the link below and select "Import from DSL" when creating a blank application and fill in the URL.
![](https://framerusercontent.com/images/9FJ4JWtpxCqBtsSn5z8Owp6DEA.png)