Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

AssemblyAI

connector.assemblyai · connector.assemblyai_trigger · ai

Transcribe and analyze audio with AssemblyAI, and run LLM prompts over transcripts.

Vendor API documentation: https://www.assemblyai.com/docs/api-reference/overview

Authentication

MethodCredential kindAuth kindFieldsTest request
API keyassemblyai/api_keyapi_keyapi_key (secret), regionyes

Actions

Node type connector.assemblyai. Choose a resource and an operation; each operation has its own parameters.

Transcript

OperationIDEffectPaginatedCassette tests
Submit audio from a URLtranscript.createwrites3
Submit an audio filetranscript.create_from_filewrites1
Transcribe and waittranscript.transcribewrites2
Get a transcripttranscript.getreads1
List transcriptstranscript.listreadsyes1
Delete a transcripttranscript.deletewrites1
Get sentencestranscript.get_sentencesreads1
Get paragraphstranscript.get_paragraphsreads1
Get subtitlestranscript.get_subtitlesreads1
Search wordstranscript.word_searchreads1
Get redacted audio URLtranscript.get_redacted_audioreads1

Submit audio from a URL

Operation transcript.create. Queues a transcription and returns at once with status queued. Use a webhook, the trigger, or Get to collect the result.

NameTypeDefaultRequiredShown whenDescription
audio_urlstringyesAudio URL.
optionscollection
options.speech_modelsstringComma-separated, in order of preference (for example assemblyai-stt-3-7).
options.language_codestring
options.language_detectionbooleanfalseDetect language.
options.speaker_labelsbooleanfalse
options.speakers_expectednumberExpected speakers.
options.multichannelbooleanfalse
options.punctuatebooleantrue
options.format_textbooleantrue
options.keyterms_promptstringKey terms. Comma-separated domain terms.
options.promptstringContext prompt. Context for the speech model (assemblyai-stt-3-7 only).
options.audio_start_fromnumberStart at (ms).
options.audio_end_atnumberEnd at (ms).
options.sentiment_analysisbooleanfalse
options.entity_detectionbooleanfalse
options.iab_categoriesbooleanfalseTopic detection.
options.content_safetybooleanfalseContent moderation.
options.auto_highlightsbooleanfalseKey phrases.
options.redact_piibooleanfalseRedact PII.
options.redact_pii_policiesmulti_optionsPII policies. 14 values, listed below.
options.redact_pii_suboptionsPII substitution. One of entity_name, hash.
options.redact_pii_audiobooleanfalseCreate redacted audio.
options.webhook_urlstringWebhook URL. AssemblyAI POSTs {transcript_id, status} here when done (for example this connector’s trigger URL).
options.webhook_auth_header_namestring"X-Webhook-Token"Webhook auth header.
options.webhook_auth_header_valuestringWebhook auth value.
Values of options.redact_pii_policies
ValueLabel
person_name
email_address
phone_number
location
date_of_birth
credit_card_number
credit_card_cvv
banking_information
us_social_security_number
medical_condition
organization
account_number
password
ip_address

Submit an audio file

Operation transcript.create_from_file. Uploads a binary file to AssemblyAI storage, then queues its transcription.

NameTypeDefaultRequiredShown whenDescription
binary_propertybinary_property"data"yesInput binary field.
optionscollection
options.speech_modelsstringComma-separated, in order of preference (for example assemblyai-stt-3-7).
options.language_codestring
options.language_detectionbooleanfalseDetect language.
options.speaker_labelsbooleanfalse
options.speakers_expectednumberExpected speakers.
options.multichannelbooleanfalse
options.punctuatebooleantrue
options.format_textbooleantrue
options.keyterms_promptstringKey terms. Comma-separated domain terms.
options.promptstringContext prompt. Context for the speech model (assemblyai-stt-3-7 only).
options.audio_start_fromnumberStart at (ms).
options.audio_end_atnumberEnd at (ms).
options.sentiment_analysisbooleanfalse
options.entity_detectionbooleanfalse
options.iab_categoriesbooleanfalseTopic detection.
options.content_safetybooleanfalseContent moderation.
options.auto_highlightsbooleanfalseKey phrases.
options.redact_piibooleanfalseRedact PII.
options.redact_pii_policiesmulti_optionsPII policies. 14 values, listed below.
options.redact_pii_suboptionsPII substitution. One of entity_name, hash.
options.redact_pii_audiobooleanfalseCreate redacted audio.
options.webhook_urlstringWebhook URL. AssemblyAI POSTs {transcript_id, status} here when done (for example this connector’s trigger URL).
options.webhook_auth_header_namestring"X-Webhook-Token"Webhook auth header.
options.webhook_auth_header_valuestringWebhook auth value.
Values of options.redact_pii_policies
ValueLabel
person_name
email_address
phone_number
location
date_of_birth
credit_card_number
credit_card_cvv
banking_information
us_social_security_number
medical_condition
organization
account_number
password
ip_address

Transcribe and wait

Operation transcript.transcribe. Uploads (for files), submits and polls until the transcript is completed or fails, then returns it.

NameTypeDefaultRequiredShown whenDescription
sourceoptions"url"Audio from. One of url, binary.
audio_urlstringyessource = urlAudio URL.
binary_propertybinary_property"data"yessource = binaryInput binary field.
optionscollection
options.speech_modelsstringComma-separated, in order of preference (for example assemblyai-stt-3-7).
options.language_codestring
options.language_detectionbooleanfalseDetect language.
options.speaker_labelsbooleanfalse
options.speakers_expectednumberExpected speakers.
options.multichannelbooleanfalse
options.punctuatebooleantrue
options.format_textbooleantrue
options.keyterms_promptstringKey terms. Comma-separated domain terms.
options.promptstringContext prompt. Context for the speech model (assemblyai-stt-3-7 only).
options.audio_start_fromnumberStart at (ms).
options.audio_end_atnumberEnd at (ms).
options.sentiment_analysisbooleanfalse
options.entity_detectionbooleanfalse
options.iab_categoriesbooleanfalseTopic detection.
options.content_safetybooleanfalseContent moderation.
options.auto_highlightsbooleanfalseKey phrases.
options.redact_piibooleanfalseRedact PII.
options.redact_pii_policiesmulti_optionsPII policies. 14 values, listed below.
options.redact_pii_suboptionsPII substitution. One of entity_name, hash.
options.redact_pii_audiobooleanfalseCreate redacted audio.
options.webhook_urlstringWebhook URL. AssemblyAI POSTs {transcript_id, status} here when done (for example this connector’s trigger URL).
options.webhook_auth_header_namestring"X-Webhook-Token"Webhook auth header.
options.webhook_auth_header_valuestringWebhook auth value.
poll_interval_secondsnumber3Poll every (seconds).
timeout_secondsnumber1800Give up after (seconds).
simplifybooleanfalseSimplify output. Return id, status, text, utterances, language and duration only.
Values of options.redact_pii_policies
ValueLabel
person_name
email_address
phone_number
location
date_of_birth
credit_card_number
credit_card_cvv
banking_information
us_social_security_number
medical_condition
organization
account_number
password
ip_address

Get a transcript

Operation transcript.get.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.
simplifybooleanfalseSimplify output. Return id, status, text, utterances, language and duration only.

List transcripts

Operation transcript.list. Newest first; covers the last 30 days.

NameTypeDefaultRequiredShown whenDescription
return_allbooleanfalse
limitnumber50return_all = false
statusoptionsOne of queued, processing, completed, error.
created_onstringCreated on (YYYY-MM-DD).

Delete a transcript

Operation transcript.delete. Removes the transcript text and audio from AssemblyAI; the id remains with status deleted.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.

Get sentences

Operation transcript.get_sentences.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.

Get paragraphs

Operation transcript.get_paragraphs.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.

Get subtitles

Operation transcript.get_subtitles.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.
formatoptions"srt"One of srt, vtt.
chars_per_captionnumberCharacters per caption.

Search words

Operation transcript.word_search.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.
wordsstringyesComma-separated words or phrases.

Get redacted audio URL

Operation transcript.get_redacted_audio.

NameTypeDefaultRequiredShown whenDescription
transcript_idresource_locatoryesTranscript. Values from lookup transcripts.

File

OperationIDEffectPaginatedCassette tests
Upload a filefile.uploadwrites1

Upload a file

Operation file.upload. Uploads audio to AssemblyAI storage and returns a private upload_url usable as audio_url.

NameTypeDefaultRequiredShown whenDescription
binary_propertybinary_property"data"yesInput binary field.

LLM Gateway

OperationIDEffectPaginatedCassette tests
Prompt a modelllm.chatwrites1

Prompt a model

Operation llm.chat. Chat completion through the LLM Gateway, optionally with a transcript’s text as context.

NameTypeDefaultRequiredShown whenDescription
modelstringyes
transcript_idresource_locatorTranscript as context. Its text is added as a system message before your messages. Values from lookup transcripts.
messagesfixed_collectionyes
messages.roleoptions"user"One of system, user, assistant.
messages.contentstringyes
max_tokensnumber1000
temperaturenumber
simplifybooleantrueSimplify output.

Lookups

Lookups fill dropdowns and resource pickers in the editor from the vendor API.

LookupDepends onSearchDescription
transcriptsclient-side{{ item.audio_url }}

Triggers

Node type connector.assemblyai_trigger.

TriggerIDKindDeduplication keySignatureWebhook registrationCassette tests
On transcript webhooktranscript_webhookwebhooktokenmanual0
On transcript finishedtranscript_completedpoll{{ item.id }}0

Trigger: On transcript webhook

Receives AssemblyAI’s completion notice ({transcript_id, status}). Use this trigger’s URL as the Webhook URL of a transcript, with auth header X-Webhook-Token and the same token value.

NameTypeDefaultRequiredShown whenDescription
tokenstringyesWebhook token. Must equal the Webhook auth value sent with the transcript.
statusesmulti_options["completed","error"]One of completed, error.

Trigger: On transcript finished

Polls recent transcripts and emits each one once it completes (or fails).

NameTypeDefaultRequiredShown whenDescription
statusoptions"completed"One of completed, error.

Import

No exported node type imports to this node.

Provenance

Written from the vendor’s documentation: