Skip to main content

Automate face swapping for GIFs with Fal.run AI and Google Services

Workflow preview

Workflow preview
100%
Automate face swapping for GIFs with Fal.run AI and Google Services preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow allows you to automatically swap faces in animated GIFs using AI , without writing a single line of code. By simply inserting the URL of a face image and a GIF into a Google Sheet, th...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.wait, n8n-nodes-base.scheduletrigger, n8n-nodes-base.if, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Automate face swapping for GIFs with Fal.run AI and Google Services
Workflow name
Automate face swapping for GIFs with Fal.run AI and Google Services

This workflow allows you to automatically swap faces in animated GIFs using AI, without writing a single line of code.

By simply inserting the URL of a face image and a GIF into a Google Sheet, the automation takes care of everything: it sends the data to AI platform, monitors the processing status, retrieves the final face-swapped GIF, uploads it to Google Drive, and updates the Google Sheet with the result.

This solution is perfect for content creators, marketers, or developers looking to integrate AI-powered GIF editing into their workflows in a fast and scalable way.

Whether used manually or on a scheduled basis, the workflow turns a tedious creative task into a fully automated pipeline.

This workflow automates GIF face-swapping by integrating Google Sheets for input/output and Fal.run for AI processing, ensuring seamless execution via scheduled or manual triggers.


Example

Face image:

Gif Image:

Result:


How It Works

  1. Trigger:

    • The workflow can be triggered manually ("When clicking ‘Test workflow’") or automatically via a scheduled trigger ("Schedule Trigger") set to run at intervals (e.g., every 5 minutes).
  2. Data Retrieval:

    • The "Google Sheets" node fetches data from a predefined Google Sheet, which includes two columns:
      • FACE IMAGE: URL of the face image to swap.
      • GIF IMAGE: URL of the target GIF.
  3. API Request:

    • The "Set data" node formats the retrieved URLs into variables (face_image and gif_image).
    • The "Create Image" node sends a POST request to the Fal.run API (easel-gifswap endpoint) with these URLs to initiate the face-swapping process. The API returns a request_id.
  4. Status Check:

    • The "Wait 60 sec." node pauses execution for 60 seconds to allow processing time.
    • The "Get status" node queries the Fal.run API using the request_id to check if the task is COMPLETED.
    • If completed, the "Get Url image" node retrieves the final GIF URL.
  5. Output Handling:

    • The "Upload Image" node saves the resulting GIF to Google Drive.
    • The "Update result" node writes the output GIF URL back to the Google Sheet under the RESULT column.

Set Up Steps

  1. Prepare Google Sheet:

    • Create a Google Sheet with columns: FACE IMAGE, GIF IMAGE, and RESULT.
    • Populate the first two columns with image URLs. Leave RESULT empty for the workflow to fill.
  2. Configure API Key:

    • Sign up to obtain an API key.
    • In the "Create Image" node, set HTTP header authentication:
      • Name: Authorization
      • Value: Key YOURAPIKEY
  3. Schedule Execution:

    • Link the "Schedule Trigger" node to run periodically (e.g., every 5 minutes) or trigger manually for testing.
  4. Test and Deploy:

    • Run the workflow to verify face-swapping functionality.
    • Monitor the Google Sheet for the RESULT column updates with the processed GIF URL.

Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Get File image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Get Url image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Get status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Google Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 9 - Wait 60 sec.

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 10 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Completed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 14 - Upload Image

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 15 - Update result

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 16 - Set data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Create Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automate face swapping for GIFs with Fal.run AI and Google Services
Complexity advanced
Nodes 19
Categories Content Creation, Multimodal AI
Author Davide
Published 28 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4450/4450.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate face swapping for GIFs with Fal.run AI and Google Services do?

This workflow allows you to automatically swap faces in animated GIFs using AI , without writing a single line of code. By simply inserting the URL of a face image and a GIF into a Google Sheet, th...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.