summarize input parameter, or you can use the
custom_prompt input parameter. The summarize input parameter is a simple way to summarize the entire transcription
in a given number of words. The custom_prompt input parameter allows you to provide a custom prompt to the LLM to
generate a more advanced summary of the transcription with custom requirements or formatting.
Custom input parameters
summarize
In this example, we’ll use a Python script to transcribe an audio file and tell it to use thesummarize input
parameter set to 100 words. We’ll use the following input parameters:
custom_prompt
In this example, we’ll use a Python script to transcribe an audio file and tell it to use thecustom_prompt input
parameter to generate the summarization. We’ll use the following input parameters:
Python script
We’re going to create a file and name itsummarize.py. We’re then going to use the above parameters in the following
Python script:
summarize
- Make sure to replace
url/to/audio/file.mp3with the URL of your audio file. - Replace
YOUR_SALAD_API_KEYwith your Salad API key. - Replace
YOUR_ORGANIZATION_NAMEwith your organization name. - Run the script using with
python action-items.py.
summarize input parameter to summarize the meeting to 100 words. We capture the output
using the summary field. We’re then printing the result of this field to the console. You’ll also see the status of
the transcription job as it progresses.
custom_prompt
- Make sure to replace
url/to/audio/file.mp3with the URL of your audio file. - Replace
YOUR_SALAD_API_KEYwith your Salad API key. - Replace
YOUR_ORGANIZATION_NAMEwith your organization name. - Run the script using with
python summarize.py.
custom_prompt input parameter to tell the LLM to summarize the meeting and list the
important items. We capture the output using the llm_result field. We’re then printing the result of this field to the
console. You’ll also see the status of the transcription job as it progresses.