Convert audio files to text automatically using this powerful n8n workflow template. Integrate IBM Granite 3.3 8B model via Replicate API with robust status polling and error handling in n8n.
Download this n8n workflow template and start using it instantly.
A Markdown-formatted string describing the ideal user persona:
Automation specialists looking for reliable Speech-to-Text (STT) solutions.
Developers needing to integrate advanced AI models like IBM Granite into their existing systems.
Users seeking ready-made n8n templates for asynchronous API polling and handling large AI tasks.
Data engineers who process large volumes of audio data and require automated transcription using a repeatable n8n workflow.
Leveraging state-of-the-art AI for speech processing can be complex, especially when dealing with asynchronous APIs that require continuous status checks. This specialized n8n workflow solves this challenge by providing a complete, production-ready solution for using the ibm-granite/granite-speech-3.3-8b model via Replicate.
This n8n workflow encapsulates all necessary logic: authentication setup, input parameter configuration (like audio URLs and generation settings), initiating the prediction, and implementing a smart polling loop. The result is a highly reliable n8n template that ensures your transcription tasks are completed, gracefully handling delays, successes, and failures. This robust n8n template saves significant development time by providing pre-built error resilience and flow control logic within the n8n environment.
This automation is initiated by an n8n trigger and proceeds through several critical steps to manage the asynchronous Replicate API call:
Manual Trigger starts the flow. The subsequent Set API Token n8n node securely defines the Replicate API key, which is essential for authentication.Set Text Parameters n8n node defines the necessary inputs for the IBM Granite model, including the link to the audio file (audio parameter) and generation controls (like temperature, topk, and maxtokens).Create Text Prediction n8n node (an HTTP Request) sends a POST request to Replicate, passing the parameters. Since this is an asynchronous task, it immediately returns a prediction ID, which is logged by the Log Request n8n node.Wait 5s n8n node delay, the Check Status n8n node begins polling the Replicate API using the received prediction ID.Is Complete? n8n node checks if the status is 'succeeded'.Success Response, which formats the final transcription output.Has Failed? n8n node checks for 'failed' status.Error Response. If the status is neither 'succeeded' nor 'failed' (meaning it is still processing), the flow enters a retry loop via the Wait 10s n8n node, looping back to the Check Status n8n node until the transcription job is complete. This pattern is a crucial example of effective asynchronous task management in an n8n workflow.Display Result n8n node compiles the structured success or error message.To utilize this powerful n8n workflow template, follow these steps:
Set API Token n8n node and replace the placeholder YOURREPLICATEAPI_TOKEN with your actual token value.Set Text Parameters n8n node. While a sample audio URL is provided, you should replace it with the path to the audio file you wish to transcribe.Manual Trigger n8n node to test the process, or activate the n8n template to run it on a scheduled or webhook basis.Every n8n node plays a vital role in this highly functional n8n workflow:
Manual Trigger (n8n trigger): The starting point for executing this n8n workflow manually during development or testing.
Set API Token (n8n node): Essential configuration step. It sets the apitoken variable used for authorization headers in subsequent HTTP Request nodes.
Set Text Parameters (n8n node): Defines the model inputs. Key configuration includes the audio parameter, which is set to a sample WAV file URL, and parameters like temperature (0.6) and maxtokens (512).
Create Text Prediction (n8n node - HTTP Request): Sends the initial transcription request.
Function: Starts the asynchronous process on the Replicate side.
Key Configuration: Uses the POST method to https://api.replicate.com/v1/predictions and includes the Authorization: Bearer {{ $json.api_token }} header.
Check Status (n8n node - HTTP Request): Used within the polling loop.
Function: Fetches the prediction status using the ID returned from the creation step. The URL uses an expression: =https://api.replicate.com/v1/predictions/{{ $('Create Text Prediction').item.json.id }}.
Wait 5s / Wait 10s (n8n node): Implements crucial waiting periods to prevent API rate limiting while waiting for the AI model to finish processing.
Is Complete? / Has Failed? (n8n node - If): These n8n nodes provide the core flow control and decision-making logic, directing the n8n workflow based on the status field (succeeded or failed).
Automate task management by converting Slack reactions (๐) into Notion to-do items. This n8n workflow also provides daily reminders of incomplete tasks in Slack.

Use this specialized n8n workflow to automate the conversion of Revit (.rvt) files into structured data (XLSX, DAE) and drawings (PDF) using an external command-line utility (RvtExporter.exe). A powerful n8n template for BIM professionals.

Use this advanced n8n workflow to automatically convert popular Reddit threads into engaging vertical videos (e.g., TikTok/Shorts) using OpenAI for script generation and TTS, leveraging the power of the n8n node ecosystem.

Automate Spotify URL conversion to MP3 files and instantly upload them to Google Drive. Utilize this powerful n8n workflow template for hands-free media processing and sharing.

Use this powerful n8n workflow to automate the conversion of Squarespace customer profile exports into Shopify-compatible customer import data using Google Sheets as a key intermediary.

Building AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos







































