You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a similar closed issue titled "workflow api how to upload pdf?" which was referenced by another issue discussing the same topic [1].
To upload a PDF file using the Dify workflow API, you can follow these steps:
Enable File Upload in the "Start" Node: Add a custom file variable in the "Start" node and name it pdf. This allows users to upload a PDF file.
Add a Document Extractor Node: Use a "Document Extractor" node to extract content from the uploaded PDF file. The pdf variable from the "Start" node should be used as the input variable for this node. It converts the PDF content into a string-type output variable.
Process the Extracted Content with an LLM Node: Add an LLM node and use the output variable of the "Document Extractor" node in the system prompt. This allows the LLM to process the extracted text from the PDF file.
Configure the End Node: Select the output variable of the LLM node in the end node to complete the workflow.
Additionally, you can use the following API endpoint to upload files:
Self Checks
Provide a description of requested docs changes
This issue was closed before it was resolved:#9839
The text was updated successfully, but these errors were encountered: