Audio Input

Upload Audio Input in AgenticFlow AI

What is an Upload Audio Input?

An Upload Audio Input is an input component that allows you to upload an audio file to the cloud and access it via a temporary URL. This URL can be used in other workflow actions, such as transcribing the audio or summarizing the content of a sales call. 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 Upload Audio Input Component

The Upload Audio Input component is suitable for scenarios where you need to process an audio file. For example, you can upload a recording of a sales call and run it through an LLM to transcribe and summarize the key points discussed during the call.

How to Add an Upload Audio Input to Your Custom Workflow

The Upload Audio Input component is listed under User Inputs. You can add it to your workflow using the main section or the sidebar.

Adding an Upload Audio Input

  1. Navigate to the Workflow page.

  2. Click on + Create Workflow or select an existing workflow.

  3. In the empty state or within your workflow, click on + Add Input.

  4. Select Upload Audio Input from the list of input components.

Upload Audio 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.

Setting a Default Value

To set a default value for an Upload Audio Input component:

  1. Enter the value in the input field.

  2. Click on the small setting icon at the bottom right.

  3. Click on Set Current Value to save the default value.

Accessing the URL

To access the URL output, use the variable name within double curly braces {{}}.

For example, if the variable name is audio_url, you can access it as:

  • {{audio_url}} in most workflow steps.

  • params.audio_url in a JavaScript step.

Example Usage in a Prompt:

Transcribe and summarize the sales call audio available at the following URL: "{{audio_url}}"

Practical Example

Example Workflow: Summarizing a Sales Call Audio

  1. Add an Upload Audio Input:

    • Title: "Upload Sales Call Audio"

    • Description: "Upload the audio file of your sales call."

    • Variable Name: sales_call_audio_url

  2. Add an Audio Player Action:

    • This allows users to play the uploaded audio file in the browser to verify the correct file was uploaded.

  3. Add an LLM with Audio Processing Capabilities Action:

    • Use the URL provided by the sales_call_audio_url variable to access the audio file.

    • Prompt:

      Transcribe and summarize the key points from the sales call audio available at "{{sales_call_audio_url}}".
  4. Run the Workflow:

    • Save the workflow.

    • On the App page, upload the sales call audio using the Upload Audio Input component.

    • Verify the audio by playing it in the browser.

    • Run the workflow to see the transcription and summary of the sales call.

By following these steps, you can effectively utilize Upload Audio Input components in your workflows to upload audio files, verify them, and process them using AI, enhancing the capabilities of your AI-driven automation in AgenticFlow AI.

Last updated