File to URL
File to URL Input in AgenticFlow AI
What is a File to URL Input?
A File to URL Input is an input component that allows you to upload a file to the cloud and access it via a temporary URL. This URL can be used in other workflow actions such as audio transcription, or PDF-to-Text, to access the content of the file. For security reasons, AgenticFlow AI does not store your file permanently; the provided URL expires within 3 days after upload. Therefore, it is recommended to apply the desired analysis steps right after the upload.
When to Use the File to URL Component
The File to URL input component is suitable when you need to provide a file as an input to another component. For instance, it can be used in an OCR step to process an uploaded image or document.
How to Add a File to URL Input to Your Custom Workflow
The File to URL input component is listed under User Inputs. You can add it to your workflow using the main section or the sidebar.
Adding a File to URL Input
Navigate to the Workflow page.
Click on + Create Workflow or select an existing workflow.
In the empty state or within your workflow, click on + Add Input.
Select File to URL Input from the list of input components.
File to URL Input Settings
Title
The title of your input component.
Description
Describe what this input is or will be used for. This helps users understand the purpose of the input.
Variable Name
Located at the bottom left and marked in green, you can rename the variable. Use this name to access the data in your workflow.
Optional/Required
Located at the top right, indicating whether the input is mandatory for the workflow to run:
Optional: The input is not required for the workflow to function.
Required: The input must be provided before the workflow can start.
Accessing the URL
To access the URL output, use the variable name within double curly braces {{}}
.
For example, if the variable name is file_url
, you can access it as:
{{file_url}}
in most workflow steps.params.file_url
in a JavaScript step.
Example Usage in a Prompt:
Practical Example
Example Workflow: Transcribing an Audio File
Add a File to URL Input:
Title: "Upload Audio File"
Description: "Upload the audio file you want to transcribe."
Variable Name:
audio_file_url
Add an Audio Transcription Action:
Use the URL provided by the
audio_file_url
variable to access the audio file.Prompt:
Run the Workflow:
Save the workflow.
On the App page, upload an audio file using the File to URL input component.
Run the workflow to see the transcription output.
By following these steps, you can effectively utilize File to URL Input components in your workflows to upload files and access their content, enhancing the capabilities of your AI-driven automation in AgenticFlow AI.
Last updated