> ## Documentation Index
> Fetch the complete documentation index at: https://assemblyai.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Iterate over Speaker Labels with Make.com

## Introduction

This is a quick guide on how to iterate over speaker labels in Make.com. This guide will return speaker labels as a readable format to a Google Doc. The end result will look like the two images below.

#### Make.com Scenario:

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-scenario.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=c88df4cc261d3a96cd14564793d7901b" alt="Image of full Make Sceanrio" width="1600" height="302" data-path="assets/img/cookbooks/makespeakers/make-scenario.png" />

#### Google Doc Transcript:

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-final-transcript.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=c6c8b545bf511af2e8635b771acdf84a" alt="Image of Final Transcript" width="1298" height="1166" data-path="assets/img/cookbooks/makespeakers/make-final-transcript.png" />

## Instructions

### Step 1: Transcribe the Audio

Create a scenario in Make.com. Add a new module. Search for and select the AssemblyAI app and select the "Transcribe an Audio File" module. Add an audio URL. Select speaker labels and other models you’d like to run.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-transcribe-audio.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=cf0098e9f82ecd6f3533637ced54287c" alt="Transcribe Module" width="1470" height="1062" data-path="assets/img/cookbooks/makespeakers/make-transcribe-audio.png" />

### Click Run once to retrieve data.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-run.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=5a09ecd892a992182252eef9efa6e714" alt="Transcribe Module" width="730" height="758" data-path="assets/img/cookbooks/makespeakers/make-run.png" />

### Step 2: Wait for Completion

Next, add the “Wait until Transcript is Ready” module.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-wait-for-completion.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=c6702bd7c3bca03ae92af3820f535971" alt="Wait for completion module" width="804" height="760" data-path="assets/img/cookbooks/makespeakers/make-wait-for-completion.png" />

### Select "ID" from the “Transcribe an Audio” module as input for the Transcript ID field.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-get-id.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=b4e51d9a7b655919efaf7d27b057b0de" alt="Returned data" width="1120" height="966" data-path="assets/img/cookbooks/makespeakers/make-get-id.png" />

### Step 3: Get a Transcript

Next, add the “Get a Transcript” module and select "ID" from the “Transcribe an Audio” module as input for the Transcript ID field.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-get-transcript.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=572013f8264011b7b0374b058a55704c" alt="Get transcript module data" width="1478" height="876" data-path="assets/img/cookbooks/makespeakers/make-get-transcript.png" />

### Step 4: Create a Document

Search for and add the Google Docs app. From there choose the “Create a Document” module. Connect your Google account and name the Doc what you’d like. Add some filler content as well. Additionally, choose where you’d like the Doc to be located.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-create-doc.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=8753ce2adccc863fac3d6898afb4384e" alt="Create Google doc module" width="1388" height="1290" data-path="assets/img/cookbooks/makespeakers/make-create-doc.png" />

### Step 5: Iterator Tool

Add the Iterator tool next. The speaker label data is in the utterances array. Select that array as input from the “Transcribe an Audio File" module. This tool will be used to perform a task for each utterance in the array. The next module will repeat its action for each utterance.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-iterator.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=dacd95d38cf5a13c7d9e256947bf2dd4" alt="Iterator module" width="1460" height="742" data-path="assets/img/cookbooks/makespeakers/make-iterator.png" />

### Step 6: Write Speaker Labels Data to Google Doc

Add a module and choose the “Insert a Paragraph” module from Google Docs. Connect your Google account if it’s not already connected (you may have to reconnect it if you get a failed to load error). In the “Select a Document” drop-down, choose "by mapping". In the Document ID input field select document ID from the “Create a document” module. For appended text, you can follow the format below for a readable format.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-insert-paragraph.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=2674ba7c983abc32f2737cfe415793c0" alt="Insert paragrapgh module" width="1448" height="1326" data-path="assets/img/cookbooks/makespeakers/make-insert-paragraph.png" />

### Step 7: Run the Scenario.

Run the scenario and you should get a Google Doc in your Drive with the speaker labels included.

<img src="https://mintcdn.com/assemblyai-fff14a6f/6OQYF4QMRVQRoCb1/assets/img/cookbooks/makespeakers/make-final-transcript.png?fit=max&auto=format&n=6OQYF4QMRVQRoCb1&q=85&s=c6c8b545bf511af2e8635b771acdf84a" alt="Image of Final Transcript" width="1298" height="1166" data-path="assets/img/cookbooks/makespeakers/make-final-transcript.png" />
