Utiliser GPT-4o et SerpAPI pour identifier les produits finaux populaires à acheter

Avancé

Ceci est unAIworkflow d'automatisation du domainecontenant 26 nœuds.Utilise principalement des nœuds comme Merge, Aggregate, Agent, ChatTrigger, ToolSerpApi, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Recherche et comparaison de produits pilotées par l'IA, basées sur GPT-4o et SerpAPI

Prérequis
  • 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
{
  "id": "E83gUT3zpziY06CJ",
  "meta": {
    "instanceId": "d92ae4b43988b888be9e59a711908a679453e558f86530d2ed2c1c3491f22bf5"
  },
  "name": "Utilizing GPT-4o and SerpAPI to Identify Top End Products for Purchase",
  "tags": [],
  "nodes": [
    {
      "id": "947b3118-19f5-4f91-9fa2-11ec04f955fa",
      "name": "À la réception du message",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -660,
        1060
      ],
      "webhookId": "61740614-aad1-4cb3-84a9-8090f67a4bcd",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5c2efc66-bbdf-47d8-b6fe-223467aaf5d5",
      "name": "Modèle de chat OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -360,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "81ef7f2d-1bab-4891-86d1-24669e8acbcb",
      "name": "Window Buffer Mémoire1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -220,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c5724fcc-1740-4efe-bd53-34f8f4746d20",
      "name": "SerpAPI1",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        -100,
        1300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ddfa322-69d8-4f77-b1f2-ed38b41fa6c8",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        40,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "65cfae11-7e46-4722-9745-495207168b66",
      "name": "Fusionner1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1420,
        1020
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "b6a2894c-fce5-46bd-8c1e-3cf7a470f274",
      "name": "Agréger1",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1660,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dfcf324b-7726-4a2d-88f2-1b3d3ad13c10",
      "name": "Modèle de chat OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1880,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "373b43c5-0073-4d62-bb2d-0e7db8c90e27",
      "name": "SerpAPI",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6bd27fb8-fbc6-46ca-ab6e-55de783dfce5",
      "name": "SerpAPI3",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ff649d8-4486-492e-8585-40fae0577b3c",
      "name": "SerpAPI4",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1600
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7e43b85c-8b65-4ce1-8441-25a977f450af",
      "name": "SerpAPI5",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        1960
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "dc0b29fc-ad70-4349-971a-c460c93c148e",
      "name": "Modèle de chat OpenAI2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "77f9fe28-e0dd-4dce-a963-0f5f0c983c20",
      "name": "SerpAPI2",
      "type": "@n8n/n8n-nodes-langchain.toolSerpApi",
      "position": [
        900,
        920
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "026f54c0-15cf-4213-95e4-636f6db63bc0",
      "name": "Modèle de chat OpenAI3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        920
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "b4bf906b-eb7d-4859-bbac-faa286d52aae",
      "name": "Modèle de chat OpenAI4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "991f273d-9c42-4bbd-9138-d4aacb940108",
      "name": "Modèle de chat OpenAI5",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        620,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "9044ad4c-7bed-4df4-a34f-5b102c247c00",
      "name": "Modèle de chat OpenAI6",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        640,
        1940
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
      "name": "Item Finder",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -220,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "382e28d2-3526-47f3-83db-3875403d2e27",
      "name": "Reviewer 1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        680,
        420
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "bfd3ffa9-83af-4d5f-af82-54290b251412",
      "name": "Reviewer 2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        680,
        740
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
      "name": "Reviewer 3",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
      "name": "Reviewer 4",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1400
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
      "name": "Reviewer 5",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        700,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
      "name": "Compiler",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1940,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "dab84cc6-d029-4238-9f6e-7b40eee00df8",
      "name": "Note adhésive",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        320
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "f7002b47-7e2f-44a2-837c-8cb43e6e7a1f",
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "373b43c5-0073-4d62-bb2d-0e7db8c90e27": {
      "ai_tool": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ba725e88-621f-417b-bdb2-358cb0ec18d6": {
      "main": [
        []
      ]
    },
    "c5724fcc-1740-4efe-bd53-34f8f4746d20": {
      "ai_tool": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "77f9fe28-e0dd-4dce-a963-0f5f0c983c20": {
      "ai_tool": [
        [
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "6bd27fb8-fbc6-46ca-ab6e-55de783dfce5": {
      "ai_tool": [
        [
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "1ff649d8-4486-492e-8585-40fae0577b3c": {
      "ai_tool": [
        [
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "7e43b85c-8b65-4ce1-8441-25a977f450af": {
      "ai_tool": [
        [
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "382e28d2-3526-47f3-83db-3875403d2e27": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bfd3ffa9-83af-4d5f-af82-54290b251412": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "51b222a9-e44b-46fe-95ac-d34eefeb2013": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "2b23e388-0bec-42b1-8f78-147a7097bfe7": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "a144739d-d7f1-48c1-9fcd-f9cfd6842d44": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3": {
      "main": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "main",
            "index": 0
          },
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "main",
            "index": 0
          },
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "main",
            "index": 0
          },
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "main",
            "index": 0
          },
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "ba725e88-621f-417b-bdb2-358cb0ec18d6",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "382e28d2-3526-47f3-83db-3875403d2e27",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "bfd3ffa9-83af-4d5f-af82-54290b251412",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "51b222a9-e44b-46fe-95ac-d34eefeb2013",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "2b23e388-0bec-42b1-8f78-147a7097bfe7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "a144739d-d7f1-48c1-9fcd-f9cfd6842d44",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory1": {
      "ai_memory": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "3ddfa322-69d8-4f77-b1f2-ed38b41fa6c8": {
      "ai_outputParser": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "a4c6a71f-4dcf-4a8f-ab8a-e68d6d12e6e3",
            "type": "main",
            "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é ?

Avancé - Intelligence Artificielle

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é
Avancé
Nombre de nœuds26
Catégorie1
Types de nœuds9
Description de la difficulté

Adapté aux utilisateurs avancés, avec des workflows complexes contenant 16+ nœuds

Auteur
AiAgent

AiAgent

@lifehacks

As a self-taught entrepreneur, I’m passionate about automating everyday tasks to simplify life. Every system I create is designed to enhance efficiency and free up valuable time. Once I perfect an automation that transforms my own routine, I’m excited to share it with you—so you can experience the same benefits.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34