Automate Video Creation with Luma AI Dream Machine and Airtable (Part 2)
Description
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 Video
Setup
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.