Workflow
Note: This method of adding file uploads to Workflow applications is deprecated. We recommend adding custom file variables on the start node instead.Workflow type applications only support the “Image Upload” feature. When enabled, an image upload entry will appear on the usage page of the Workflow application.
Usage:
For application users: Applications with image upload enabled will display an upload button on the usage page. Click the button or paste a file link to complete the image upload. You will receive the LLM’s response to the image.
For application developers: After enabling the image upload feature, the uploaded image files will be stored in the
sys.files variable. Next, add an LLM node, select a large model with vision capabilities, and enable the VISION feature within it. Choose the sys.files variable to allow the LLM to read the image file.
Finally, select the output variable of the LLM node in the END node to complete the setup.
Chatflow
Chatflow type applications support the following features:- Conversation Opener Allow AI to proactively send a message, which can be a welcome message or AI self-introduction, to bring it closer to the user.
- Follow-up Automatically add suggestions for the next question after the conversation is complete, to increase the depth and frequency of dialogue topics.
- Text-to-Speech Add an audio playback button in the Q&A text box, using a TTS service (needs to be set up in Model Providers) to read out the text.
- File Upload Supports the following file types: documents, images, audio, video, and other file types. After enabling this feature, application users can upload and update files at any time during the application dialogue. A maximum of 10 files can be uploaded simultaneously, with a size limit of 15MB per file.
- Citation and Attribution Commonly used in conjunction with the “Knowledge Retrieval” node to display the reference source documents and attribution parts of the LLM’s responses.
- Content Moderation Supports using moderation APIs to maintain a sensitive word library, ensuring that the LLM can respond and output safe content. For detailed instructions, please refer to Sensitive Content Moderation.
For application developers:
After enabling the file upload feature, the files users send will be uploaded in the sys.files variable. It will be updated after the user sends a new message in the same conversation turn.
Different types of files correspond to different application orchestration methods based on the uploaded file differences.
- Document Files
sys.files variable. The orchestration steps are as follows:
- Enable the Features function and only check “Documents” in the file types.
- Select the
sys.filesvariable in the input variables of the Document Extractor node. - Add an LLM node and select the output variable of the document extractor node in the system prompt.
- Add a “Direct Reply” node at the end, filling in the output variable of the LLM node.
- Image Files
- Enable the Features function and only check “Images” in the file types.
- Add an LLM node, enable the VISION feature, and select the
sys.filesvariable. - Add a “Answer” node at the end, filling in the output variable of the LLM node.
- Mixed File Types
sys.files variable, extract more refined variables, and send them to the corresponding processing nodes. The orchestration steps are as follows:
- Enable the Features function and check both “Images” and “Document Files” types.
- Add two list operation nodes, extracting image and document variables in the “Filter” condition.
- Extract document file variables and pass them to the “Document Extractor” node; extract image file variables and pass them to the “LLM” node.
- Add a “Direct Reply” node at the end, filling in the output variable of the LLM node.
- Audio and Video Files