Processus automatisé de création de vidéos TikTok avec GPT-4o-mini et Sisif.ai

Intermédiaire

Ceci est unAI, Marketingworkflow d'automatisation du domainecontenant 10 nœuds.Utilise principalement des nœuds comme If, Wait, Function, HttpRequest, ScheduleTrigger, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Flux de création automatisé de vidéos TikTok avec GPT-4o-mini et Sisif.ai

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "meta": {
    "instanceId": "5b1a51f0bc5b2664d29065e2a540163c8bf52099136c3b8b7e78b9cb914bd6e8",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "be0afc63-a202-4f65-9e80-9b49fb956583",
      "name": "Déclencheur programmé",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1860,
        60
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 6
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "d3077eb3-e4e6-4d94-a398-0ea5f7bed59e",
      "name": "Créer une vidéo Sisif",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1020,
        60
      ],
      "parameters": {
        "url": "https://sisif.ai/api/videos/generate/",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.output.idea }}"
            },
            {
              "name": "duration",
              "value": "5"
            },
            {
              "name": "resolution",
              "value": "540x960"
            }
          ]
        },
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "WiOXolTiGodukOy5",
          "name": "Bearer Auth account"
        },
        "httpHeaderAuth": {
          "id": "uNe0nw6Goo7DMJYo",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "51c39595-9cbd-4bb9-b0de-ec641a013478",
      "name": "Attendre 10s",
      "type": "n8n-nodes-base.wait",
      "position": [
        -740,
        60
      ],
      "webhookId": "9b999047-4079-4996-8304-78089e8fa3ab",
      "parameters": {
        "unit": "seconds",
        "amount": 10
      },
      "typeVersion": 1
    },
    {
      "id": "ed68fc5a-4db7-4397-996f-938c5cb987d5",
      "name": "Vérifier l'état de la vidéo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -540,
        60
      ],
      "parameters": {
        "url": "=https://sisif.ai/api/videos/{{ $json.id }}/",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth"
      },
      "credentials": {
        "httpBearerAuth": {
          "id": "WiOXolTiGodukOy5",
          "name": "Bearer Auth account"
        },
        "httpHeaderAuth": {
          "id": "uNe0nw6Goo7DMJYo",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "a82e05a5-eeec-4d09-b92f-93e95defb217",
      "name": "Vidéo prête ?",
      "type": "n8n-nodes-base.if",
      "position": [
        -300,
        60
      ],
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.status }}",
              "value2": "READY"
            }
          ]
        }
      },
      "typeVersion": 1
    },
    {
      "id": "8463e988-f99e-4c06-9d87-1a58d42f5b3d",
      "name": "Préparer les données finales",
      "type": "n8n-nodes-base.function",
      "position": [
        160,
        40
      ],
      "parameters": {
        "functionCode": "// Extract the final video data\nconst videoData = items[0].json;\n\n// Create a summary of the completed video\nreturn [{\n  json: {\n    prompt: videoData.prompt,\n    duration: videoData.duration,\n    resolution: videoData.resolution,\n    sisif_id: videoData.sisif_id,\n    video_url: videoData.video_url,\n    status: videoData.status,\n    watch_url: `https://sisif.ai/app/watch/${videoData.sisif_id}/`,\n    completed_at: new Date().toISOString()\n  }\n}];"
      },
      "typeVersion": 1
    },
    {
      "id": "feaaa368-2c77-4f1d-8062-ab7e654dc075",
      "name": "Analyseur de sortie structurée",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1380,
        260
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"idea\": \"Generate video ...\"\n}\n"
      },
      "typeVersion": 1.2
    },
    {
      "id": "352ed650-1591-4679-b154-6a61a2e2d94e",
      "name": "Générateur d'idées",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -1560,
        60
      ],
      "parameters": {
        "text": "=You are a creative video content strategist for TikTok and social media. Generate engaging video ideas that are visual, trend-aware, and perfect for short-form video content. Each idea should be a single, detailed prompt that describes exactly what should happen in the video.\n\nGenerate a unique and engaging video ideas for TikTok. Each idea should be:\\n\n- Visual and action-packed\n- 3-7 seconds long\n- Trendy and shareable\n- Suitable for AI video generation\n\nFormat each idea as a single detailed prompt describing the scene, action, and visual style\n            \n\nJSON output format:\n\n{\n  \"idea\": \"Generate video about about [...]\",\n}",
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.6
    },
    {
      "id": "76a0b24a-663e-4675-a811-d783fea70aec",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1560,
        280
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yCsTKFRy3SHOQ1fK",
          "name": "OpenAI account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "3f7a67f0-65de-430f-a396-08fa1c342254",
      "name": "Note autocollante2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -140
      ],
      "parameters": {
        "color": 4,
        "width": 1100,
        "height": 500,
        "content": "# Sisif.ai\n\n## Generate new video based on idea creator"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "51c39595-9cbd-4bb9-b0de-ec641a013478": {
      "main": [
        [
          {
            "node": "ed68fc5a-4db7-4397-996f-938c5cb987d5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "352ed650-1591-4679-b154-6a61a2e2d94e": {
      "main": [
        [
          {
            "node": "d3077eb3-e4e6-4d94-a398-0ea5f7bed59e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a82e05a5-eeec-4d09-b92f-93e95defb217": {
      "main": [
        [
          {
            "node": "8463e988-f99e-4c06-9d87-1a58d42f5b3d",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "51c39595-9cbd-4bb9-b0de-ec641a013478",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "be0afc63-a202-4f65-9e80-9b49fb956583": {
      "main": [
        [
          {
            "node": "352ed650-1591-4679-b154-6a61a2e2d94e",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "76a0b24a-663e-4675-a811-d783fea70aec": {
      "ai_languageModel": [
        [
          {
            "node": "352ed650-1591-4679-b154-6a61a2e2d94e",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "ed68fc5a-4db7-4397-996f-938c5cb987d5": {
      "main": [
        [
          {
            "node": "a82e05a5-eeec-4d09-b92f-93e95defb217",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "d3077eb3-e4e6-4d94-a398-0ea5f7bed59e": {
      "main": [
        [
          {
            "node": "51c39595-9cbd-4bb9-b0de-ec641a013478",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "feaaa368-2c77-4f1d-8062-ab7e654dc075": {
      "ai_outputParser": [
        [
          {
            "node": "352ed650-1591-4679-b154-6a61a2e2d94e",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Intelligence Artificielle, Marketing

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds10
Catégorie2
Types de nœuds9
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34