n8n AI Content Creation Productivity
Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.
Automate Video Creation with Luma AI Dream Machine and Airtable (Part 2)
This is the second part of the Luma AI Dream Machine automation. It captures the webhook response from Luma AI after video generation is complete, processes the data, and automatically updates Airtable with the video and thumbnail URLs. This completes the end-to-end automation for video creation and tracking.
Airtable Base Template
Tutorial VideoSetup
1. Luma AI Setup
Ensure you’ve created an account with Luma AI and generated an API key.
Confirm that the API key has permission to manage video requests.
2. Airtable Setup
Make sure your Airtable base includes the following fields (set up in Part 1):
Use the Airtable Base Template linked above to simplify setup.
- Generation ID, To match incoming webhook data.
- Status, Workflow status (e.g., "Done").
- Video URL, Stores the generated video URL.
- Thumbnail URL, Stores the thumbnail URL.
3. n8n Setup
Ensure that the n8n workflow from Part 1 is set up and configured.
Import this workflow and connect it to the webhook callback from Luma AI.
How It Works
1. Webhook Trigger
The Webhook node listens for a POST response from Luma AI once video generation is finished.
The response includes:
- Video URL, Direct link to the video.
- Thumbnail URL, Link to the video thumbnail.
- Generation ID, Used to match the record in Airtable.
2. Process Webhook Data
The Set node extracts the video data from the webhook response.
The If node checks if the video URL is valid before proceeding.
3. Store in Airtable
The Airtable node updates the record with:
- Video URL, Direct link to the video.
- Thumbnail URL, Link to the video thumbnail.
- Status, Marked as "Done."
Uses the Generation ID to match and update the correct record.
Why This Workflow is Useful
Automates the completion step for video creation
Ensures accurate record-keeping by matching generation IDs
Simplifies the process of managing and organizing video content
Reduces manual effort by automating the update process
Next Steps
Future Enhancements, Adding more complex post-processing, video trimming, and multi-platform publishing.
Tools used: Luma AI, Airtable
Download the workflow template (JSON)
Want this running in your business? KOBA42 builds and operates automations like this one.