Microsoft Power Automate is a low-code workflow automation platform with a rich collection of connectors to Microsoft’s first-party services and third-party services. is the equivalent service built for developers and IT pros.
Upload a Media File
action to upload a file to AssemblyAI. You will get back a URL for your file which can only be used to transcribe using your API key. Once you transcribe the file, the file will be removed from AssemblyAI’s servers.
Audio URL
parameter using your audio file URL. Then, configure the additional parameters to enable more Speech Recognition features and Audio Intelligence models.
The result of the Transcribe Audio action is a queued transcript which will start being processed immediately. To get the completed transcript, you have two options:
Webhook URL
parameter in your Transcribe Audio
action, and implement your webhook following AssemblyAI’s webhook documentation.
To handle the webhook using Logic Apps or Power Automate, follow these steps:
When an HTTP request is received
as the trigger:Who Can Trigger The Flow?
to Anyone
Request Body JSON Schema
to:
Method
to POST
Get Transcript
action, passing in the transcript_id
from the trigger to the Transcript ID
parameter.Status
is completed
or error
. Add a Condition
action that checks if the Status
from the Get Transcript
output is error
:True
branch, add a Terminate
action
Status
to Failed
Code
to Transcript Error
Error
from the Get Transcript
output to the Message
parameter.False
branch empty.
Condition
knowing the transcript status is completed
, and you can retrieve any of the output properties of the Get Transcript
action.HTTP URL
will be generated for the When an HTTP request is received
trigger. Copy the HTTP URL
and head back to your original Logic App or Flow.Transcribe Audio
action. Paste the HTTP URL
you copied previously into the Webhook URL
parameter, and save.completed
or error
, AssemblyAI will send an HTTP POST request to the webhook URL, which will be handled by your other Logic App or Flow.
As an alternative to using the webhook, you can poll the transcript status as explained in the next section.
Initialize variable
actionName
to transcript_status
Type
to String
Status
from the Transcribe Audio
output into the Value
parameterDo until
actionLoop Until
parameter with the following Fx code:
transcript_status
variable is completed
or error
.
Count
parameter to 86400
Timeout
parameter to PT24H
Do until
action, add the following actions:Delay
action that waits for one second
Get Transcript
action and pass the ID
from the Transcribe Audio
output to the Transcript ID
parameter
Set variable
action
Name
to transcript_status
Status
of the Get Transcript
output to the Value
parameterDo until
loop will continue until the transcript is completed, or an error occurred.Get Transcript
action, like before, but add it after the Do until
loop so its output becomes available outside the scope of the Do until
action.Status
is completed
or error
. Add a Condition
action that checks if the transcript_status
is error
:True
branch, add a Terminate
action
Status
to Failed
Code
to Transcript Error
Error
from the Get Transcript
output to the Message
parameter.False
branch empty.
completed
or error
, you can retrieve the transcript using the Get Transcript
action.
Now you can add any action after the Condition
knowing the transcript status is completed
, and you can retrieve any of the output properties of the Get Transcript
action.
Upload URL
output field to the Audio URL
input field of Transcribe an Audio File action.
Audio URL
field with the URL of the audio file you want to transcribe. The Audio URL
must be accessible by AssemblyAI’s servers. If you don’t have a publicly accessible URL, you can use the Upload a File action to upload the audio file to AssemblyAI.
queued
transcript. Learn how to wait until the transcript is ready here.status
is completed
.
status
is completed
.
Redact PII
: Yes
Redact PII Audio
: Yes
Redact PII Policies
: Configure at least one PII policystatus
is completed
.
completed
or error
.Transcript IDs
or Input Text
input field.