Back to Catalog

Create Deepfake Videos by Swapping Faces with Fal.ai Wan 2.2 and AWS S3

Official Page

Animate Any Face into a Video with Fal.ai

Create stunning deepfake-style videos automatically by swapping a face from an image onto a source video.

This workflow provides a powerful, automated pipeline to perform video face-swapping using the Fal.ai API. It's designed to handle the entire asynchronous process: accepting a source video and a target face image, uploading them to cloud storage, initiating the AI job, polling for completion, and retrieving the final, rendered video.

| Services Used | Features | | :--- | :--- | | ๐Ÿค– Fal.ai | Leverages the powerful Wan 2.2 model for high-quality face animation. | | โ˜๏ธ AWS S3 | Uses enterprise-grade cloud storage for reliable public file hosting. | | ๐Ÿ”„ Polling Loop | Intelligently waits for the asynchronous AI job to complete before proceeding. | | ๐Ÿ“ฅ n8n Form Trigger | Provides a simple UI to upload your source image and video. |


How It Works โš™๏ธ

  1. ๐Ÿ“ฅ Get User Input: The workflow starts when you upload a source video and a face image via the n8n Form Trigger.
  2. โ˜๏ธ Upload to Cloud: Both files are automatically uploaded to a specified AWS S3 bucket to generate the publicly accessible URLs required by the AI model.
  3. ๐Ÿš€ Start AI Job: The public URLs for the video and image are sent in an HTTP Request to the Fal.ai API, which starts the asynchronous face animation process and returns a request_id.
  4. โณ Wait & Check: The workflow enters a polling loop. It Waits for one minute, then makes another HTTP Request to the Fal.ai status endpoint using the request_id.
  5. โœ… Check for Completion: An IF node checks if the job status is COMPLETED. If not, the workflow loops back to the Wait node.
  6. ๐ŸŽฌ Retrieve Final Video: Once the job is complete, the workflow makes a final HTTP Request to fetch the finished animated video.

๐Ÿ› ๏ธ How to Set Up

  1. ๐Ÿ”‘ Set Up Fal.ai Credentials: Get your API Key from Fal.ai. In n8n, go to Credentials, add a new Header Auth credential, and save your key. Connect this credential to all three HTTP Request nodes in the workflow.
  2. โ˜๏ธ Configure AWS S3: Add your AWS credentials in n8n. In the two AWS S3 nodes (Upload Video1 and Upload Image1), update the Bucket Name parameter to your own S3 bucket. Ensure your bucket permissions allow for public reads.
  3. โ–ถ๏ธ Activate and Run: Activate the workflow. Open the Form Trigger URL from the n8n editor, upload your files, and submit. The final video will be available in the execution log of the Get Final Video node.

Requirements

  • An active Fal.ai account and API key.
  • An AWS account with an S3 bucket configured for public access.
  • Alternative Storage: For a personal setup, you can replace the AWS S3 nodes with Cloudinary nodes. Just ensure the output is a public URL.

๐Ÿ’ฌ Need Help or Want to Learn More?

  • Join my Skool community for n8n + AI automation tutorials, live Q&A sessions, and exclusive workflows: ๐Ÿ‘‰ https://www.skool.com/n8n-ai-automation-champions

Template Author: Sandeep Patharkar
Category: Content Generation / Content Marketing Difficulty: Intermediate
Estimated Setup Time: โฑ๏ธ 20 minutes

n8n Workflow: Face Swapping Deepfake Video Creation with Fal.ai and AWS S3

This n8n workflow automates the process of creating deepfake videos by leveraging the Fal.ai API for face swapping and AWS S3 for storage. It provides a simple form-based trigger to initiate the video generation.

What it does

This workflow streamlines the deepfake video creation process through the following steps:

  1. Triggers on Form Submission: The workflow starts when a user submits data through an n8n form. This form likely collects the necessary inputs for the deepfake generation (e.g., source video URL, target face image URL).
  2. Prepares Data (Edit Fields): It uses a "Set" node to transform or prepare the incoming form data into the format required by subsequent API calls. This might involve renaming fields or constructing specific JSON payloads.
  3. Initiates Face Swap (HTTP Request): An HTTP Request node sends a request to the Fal.ai API to perform the face swapping operation. This request will include the video and face image information provided via the form.
  4. Waits for Processing (Wait): After initiating the face swap, the workflow pauses using a "Wait" node. This is crucial because deepfake video generation is an asynchronous process and can take time.
  5. Checks Processing Status (HTTP Request & If): After the wait period, another HTTP Request node is used to query the Fal.ai API for the status of the deepfake video generation. An "If" node then checks if the video processing is complete or if there was an error.
  6. Uploads to AWS S3 (AWS S3): If the video generation is successful, the workflow uploads the resulting deepfake video to an AWS S3 bucket for storage and accessibility.
  7. Merges Paths (Merge): A "Merge" node is used to combine the data streams from different conditional branches (e.g., success and failure paths) to ensure the workflow can continue or conclude gracefully.

Prerequisites/Requirements

To use this workflow, you will need:

  • n8n Instance: A running n8n instance.
  • Fal.ai Account & API Key: An account with Fal.ai and an associated API key for accessing their face-swapping service.
  • AWS Account & S3 Bucket: An AWS account with an S3 bucket configured for storing the generated videos, along with appropriate AWS credentials (Access Key ID and Secret Access Key) for n8n to interact with S3.

Setup/Usage

  1. Import the workflow: Download the provided JSON and import it into your n8n instance.
  2. Configure Credentials:
    • Fal.ai: Locate the "HTTP Request" nodes interacting with Fal.ai and configure the necessary API key in the HTTP Header or Authentication section.
    • AWS S3: Configure your AWS S3 credentials in the "AWS S3" node. This typically involves providing your Access Key ID, Secret Access Key, and the region of your S3 bucket.
  3. Configure the n8n Form Trigger:
    • Open the "On form submission" node.
    • Customize the form fields to collect the required inputs for your deepfake generation (e.g., sourceVideoUrl, targetFaceImageUrl).
    • Activate the form to get its public URL.
  4. Adjust Node Settings:
    • Edit Fields (Set): Review and adjust the "Edit Fields" (Set) node to ensure it correctly maps and transforms the data from your form to the Fal.ai API request payload.
    • HTTP Request (Fal.ai): Verify the URL, method, headers, and body of the HTTP Request nodes making calls to Fal.ai. Ensure they match Fal.ai's API documentation for initiating a face swap and checking its status.
    • Wait: Adjust the duration of the "Wait" node based on the typical processing time for Fal.ai's deepfake generation.
    • If: Ensure the "If" node's conditions accurately check the status response from Fal.ai to determine success or failure.
    • AWS S3: Configure the "AWS S3" node with your bucket name, file name conventions, and any other relevant settings for uploading the generated video.
  5. Activate the Workflow: Once configured, activate the workflow.
  6. Trigger the Workflow: Submit the n8n form to trigger the workflow and initiate the deepfake video creation process.

Related Templates

AI-powered code review with linting, red-marked corrections in Google Sheets & Slack

Advanced Code Review Automation (AI + Lint + Slack) Whoโ€™s it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting โ€” all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0โ€“10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your teamโ€™s channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow โ€” reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why itโ€™s valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n โ€” combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your teamโ€™s review history transparent and centralized.

higashiyama By higashiyama
90

Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct

Synchronize WooCommerce Inventory & Create Products with Gemini AI & BrowserAct This sophisticated n8n template automates WooCommerce inventory management by scraping supplier data, updating existing products, and intelligently creating new ones with AI-formatted descriptions. This workflow is essential for e-commerce operators, dropshippers, and inventory managers who need to ensure their product pricing and stock levels are synchronized with multiple third-party suppliers, minimizing overselling and maximizing profit. --- Self-Hosted Only This Workflow uses a community contribution and is designed and tested for self-hosted n8n instances only. --- How it works The workflow is typically run by a Schedule Trigger (though a Manual Trigger is also shown) to check stock automatically. It reads a list of suppliers and their inventory page URLs from a central Google Sheet. The workflow loops through each supplier: A BrowserAct node scrapes the current stock and price data from the supplier's inventory page. A Code node parses this bulk data into individual product items. It then loops through each individual product found. The workflow checks WooCommerce to see if the product already exists based on its name. If the product exists: It proceeds to update the existing product's price and stock quantity. If the product DOES NOT exist: An If node checks if the missing product's category matches a predefined type (optional filtering). If it passes the filter, a second BrowserAct workflow scrapes detailed product attributes from a dedicated product page (e.g., DigiKey). An AI Agent (Gemini) transforms these attributes into a specific, styled HTML table for the product description. Finally, the product is created in WooCommerce with all scraped details and the AI-generated description. Error Handling: Multiple Slack nodes are configured to alert your team immediately if any scraping task fails or if the product update/creation process encounters an issue. Note: This workflow does not support image uploads for new products. To enable this functionality, you must modify both the n8n and BrowserAct workflows. --- Requirements BrowserAct API account for web scraping BrowserAct n8n Community Node -> (n8n Nodes BrowserAct) BrowserAct templates named โ€œWooCommerce Inventory & Stock Synchronizationโ€ and โ€œWooCommerce Product Data Reconciliationโ€ Google Sheets credentials for the supplier list WooCommerce credentials for product management Google Gemini account for the AI Agent Slack credentials for error alerts --- Need Help? How to Find Your BrowseAct API Key & Workflow ID How to Connect n8n to Browseract How to Use & Customize BrowserAct Templates How to Use the BrowserAct N8N Community Node --- Workflow Guidance and Showcase STOP Overselling! Auto-Sync WooCommerce Inventory from ANY Supplier

Madame AI Team | KaiBy Madame AI Team | Kai
600

Tax deadline management & compliance alerts with GPT-4, Google Sheets & Slack

AI-Driven Tax Compliance & Deadline Management System Description Automate tax deadline monitoring with AI-powered insights. This workflow checks your tax calendar daily at 8 AM, uses GPT-4 to analyze upcoming deadlines across multiple jurisdictions, detects overdue and critical items, and sends intelligent alerts via email and Slack only when immediate action is required. Perfect for finance teams and accounting firms who need proactive compliance management without manual tracking. ๐Ÿ›๏ธ๐Ÿค–๐Ÿ“Š Good to Know AI-Powered: GPT-4 provides risk assessment and strategic recommendations Multi-Jurisdiction: Handles Federal, State, and Local tax requirements automatically Smart Alerts: Only notifies executives when deadlines are overdue or critical (โ‰ค3 days) Priority Classification: Categorizes deadlines as Overdue, Critical, High, or Medium priority Dual Notifications: Critical alerts to leadership + daily summaries to team channel Complete Audit Trail: Logs all checks and deadlines to Google Sheets for compliance records How It Works Daily Trigger - Runs at 8:00 AM every morning Fetch Data - Pulls tax calendar and company configuration from Google Sheets Analyze Deadlines - Calculates days remaining, filters by jurisdiction/entity type, categorizes by priority AI Analysis - GPT-4 provides strategic insights and risk assessment on upcoming deadlines Smart Routing - Only sends alerts if overdue or critical deadlines exist Critical Alerts - HTML email to executives + Slack alert for urgent items Team Updates - Slack summary to finance channel with all upcoming deadlines Logging - Records compliance check results to Google Sheets for audit trail Requirements Google Sheets Structure Sheet 1: TaxCalendar DeadlineID | DeadlineName | DeadlineDate | Jurisdiction | Category | AssignedTo | IsActive FED-Q1 | Form 1120 Q1 | 2025-04-15 | Federal | Income | John Doe | TRUE Sheet 2: CompanyConfig (single row) Jurisdictions | EntityType | FiscalYearEnd Federal, California | Corporation | 12-31 Sheet 3: ComplianceLog (auto-populated) Date | AlertLevel | TotalUpcoming | CriticalCount | OverdueCount 2025-01-15 | HIGH | 12 | 3 | 1 Credentials Needed Google Sheets - Service Account OAuth2 OpenAI - API Key (GPT-4 access required) SMTP - Email account for sending alerts Slack - Bot Token with chat:write permission Setup Steps Import workflow JSON into n8n Add all 4 credentials Replace these placeholders: YOURTAXCALENDAR_ID - Tax calendar sheet ID YOURCONFIGID - Company config sheet ID YOURLOGID - Compliance log sheet ID C12345678 - Slack channel ID tax@company.com - Sender email cfo@company.com - Recipient email Share all sheets with Google service account email Invite Slack bot to channels Test workflow manually Activate the trigger Customizing This Workflow Change Alert Thresholds: Edit "Analyze Deadlines" node: Critical: Change <= 3 to <= 5 for 5-day warning High: Change <= 7 to <= 14 for 2-week notice Medium: Change <= 30 to <= 60 for 2-month lookout Adjust Schedule: Edit "Daily Tax Check" trigger: Change hour/minute for different run time Add multiple trigger times for tax season (8 AM, 2 PM, 6 PM) Add More Recipients: Edit "Send Email" node: To: cfo@company.com, director@company.com CC: accounting@company.com BCC: archive@company.com Customize Email Design: Edit "Format Email" node to change colors, add logo, or modify layout Add SMS Alerts: Insert Twilio node after "Is Critical" for emergency notifications Integrate Task Management: Add HTTP Request node to create tasks in Asana/Jira for critical deadlines Troubleshooting | Issue | Solution | |-------|----------| | No deadlines found | Check date format (YYYY-MM-DD) and IsActive = TRUE | | AI analysis failed | Verify OpenAI API key and account credits | | Email not sending | Test SMTP credentials and check if critical condition met | | Slack not posting | Invite bot to channel and verify channel ID format | | Permission denied | Share Google Sheets with service account email | ๐Ÿ“ž Professional Services Need help with implementation or customization? Our team offers: ๐ŸŽฏ Custom workflow development ๐Ÿข Enterprise deployment support ๐ŸŽ“ Team training sessions ๐Ÿ”ง Ongoing maintenance ๐Ÿ“Š Custom reporting & dashboards ๐Ÿ”— Additional API integrations Discover more workflows โ€“ Get in touch with us

Oneclick AI SquadBy Oneclick AI Squad
93