Luma AI Generation Webhook Handler for Airtable Updates - n8n Workflow

Use this n8n workflow to capture Luma AI Dream Machine completion webhooks and automatically update Airtable records with the final video URL and thumbnail using a powerful n8n trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content creators and agencies managing video production pipelines.
Users leveraging n8n templates for integrating AI generation services (like Luma AI Dream Machine).
Developers needing a robust system for handling webhook response and status synchronization.
Automation specialists seeking reliable n8n node setups for database interaction.

Overview

This crucial n8n workflow functions as the second phase in a fully automated video generation pipeline. When an external service (such as Luma AI) finishes processing a prompt, it sends a callback to the configured n8n trigger. Manually checking for generation completion and updating databases is inefficient, but this automation eliminates that necessity entirely. The n8n workflow reliably receives the payload, validates that the final video assets are available, and uses an Airtable n8n node to instantly update the project tracking board. This synchronization ensures that project managers and team members always have access to the final Video URL and Thumb URL without delay. This robust approach demonstrates the power of utilizing n8n templates for complex, multi-step business logic.

How it Works

The entire process is initiated by an external event sending data to the n8n webhook trigger. Here is the step-by-step logic of this specific n8n workflow:


  1. Webhook Activation: The flow begins with the Webhook n8n trigger, configured to listen for a POST request at the path /luma-ai-response. This is the endpoint where the AI generation service sends its completion notification.

  2. Data Structuring: The Video JSON n8n node immediately processes the incoming payload. It extracts and standardizes the critical data points: the final lumavideo URL, the lumathumb URL, and the unique genid (Generation ID).

  3. Conditional Check: An If n8n node acts as a quality gate. It verifies that the required lumavideo URL is present and not empty. If the generation failed or the asset link is missing, the n8n workflow stops here.

  4. Loading Settings: If the validation is successful, the Global SETTINGS n8n node loads pre-defined static configuration values, including the necessary Airtable Base and Table IDs, preparing the flow for the database update.

  5. Airtable Update: The ADD Video and Thumbnail URL Airtable n8n node executes the core task. It performs an 'update' operation, using the extracted Generation ID to match the correct record. It updates the Status field to 'Done' and populates the Video URL and Thumb URL fields with the final asset links gathered from the incoming data.

  6. Finalization: The Execution Data n8n node concludes the successful execution of the n8n workflow.

Installation Guide

To install this robust n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it directly into your n8n instance using the 'New' -> 'Import from JSON' function.

  2. Webhook Configuration: Note the Webhook n8n trigger URL and path (/luma-ai-response). You must ensure this exact URL is configured in your external service (e.g., Luma AI system or the preceding n8n workflow, Part 1) to send the completion callback.

  3. Airtable Credentials: Select or create a new 'Airtable Personal Access Token' credential for the ADD Video and Thumbnail URL Airtable n8n node.

  4. Update Settings: In the Global SETTINGS n8n node, modify the airtablebase and airtabletablegeneratedvideos values to match your specific Airtable setup. These IDs are critical for the Airtable n8n node to function correctly.

  5. Activate: Save and activate the n8n workflow to enable the n8n trigger to start listening for incoming data.

Node Details

Webhook (n8n trigger): The initiation point of this entire flow. It is configured to accept POST requests at the /luma-ai-response path, acting as the listener for the external service completion signal.
Video JSON (Set n8n node): Essential for data preprocessing. It extracts nested fields (lumavideo, lumathumb, genid) from the webhook payload, making them easy to access in later n8n node operations.
If (n8n node): A powerful flow control n8n node that checks if the video URL asset exists ({{ $json.body.assets.video }}). This condition ensures data integrity before proceeding with database updates.
Global SETTINGS (Set n8n node): This set n8n node centralizes configuration by defining the specific airtable
base and airtabletablegenerated_videos IDs, providing necessary context to the database interaction n8n node.


  • ADD Video and Thumbnail URL (Airtable n8n node): Performs the final action. It uses the 'update' operation, matching records by Generation ID and updating the Status to 'Done,' along with populating the final video and thumbnail links in the specified Airtable table. This completes the core goal of the n8n workflow.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all
Created by

n8n Ambassador & Verified Partner

Featured*