AutomationFlowsAI & RAG › Chat Gpt 4o

Chat Gpt 4o

Chat-Gpt-4O. Uses openaiChat. Event-driven trigger; 6 nodes.

Event trigger★★☆☆☆ complexityAI-powered6 nodesOpenai Chat
AI & RAG Trigger: Event Nodes: 6 Complexity: ★★☆☆☆ AI nodes: yes Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "manualTrigger",
      "parameters": {},
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "id": "setInput",
      "parameters": {
        "values": {
          "string": [
            {
              "name": "language",
              "value": "French"
            },
            {
              "name": "sentence",
              "value": "Hello, how are you?"
            }
          ]
        },
        "options": {}
      },
      "name": "Set Language + Sentence",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        450,
        300
      ]
    },
    {
      "id": "switchLanguage",
      "parameters": {
        "switches": [
          {
            "value1": "={{$json[\"language\"]}}",
            "value2": "French"
          },
          {
            "value1": "={{$json[\"language\"]}}",
            "value2": "Spanish"
          },
          {
            "value1": "={{$json[\"language\"]}}",
            "value2": "Japanese"
          }
        ]
      },
      "name": "Switch Language",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    },
    {
      "id": "openaiFrench",
      "parameters": {
        "model": "gpt-3.5-turbo",
        "messages": [
          {
            "role": "user",
            "content": "Translate this to French: {{$json[\"sentence\"]}}"
          }
        ]
      },
      "name": "Translate to French",
      "type": "n8n-nodes-base.openaiChat",
      "typeVersion": 1,
      "position": [
        850,
        100
      ]
    },
    {
      "id": "openaiSpanish",
      "parameters": {
        "model": "gpt-3.5-turbo",
        "messages": [
          {
            "role": "user",
            "content": "Translate this to Spanish: {{$json[\"sentence\"]}}"
          }
        ]
      },
      "name": "Translate to Spanish",
      "type": "n8n-nodes-base.openaiChat",
      "typeVersion": 1,
      "position": [
        850,
        300
      ]
    },
    {
      "id": "openaiJapanese",
      "parameters": {
        "model": "gpt-3.5-turbo",
        "messages": [
          {
            "role": "user",
            "content": "Translate this to Japanese: {{$json[\"sentence\"]}}"
          }
        ]
      },
      "name": "Translate to Japanese",
      "type": "n8n-nodes-base.openaiChat",
      "typeVersion": 1,
      "position": [
        850,
        500
      ]
    }
  ],
  "connections": {
    "manualTrigger": {
      "main": [
        [
          "setInput"
        ]
      ]
    },
    "setInput": {
      "main": [
        [
          "switchLanguage"
        ]
      ]
    },
    "switchLanguage": {
      "main": [
        [
          "openaiFrench"
        ],
        [
          "openaiSpanish"
        ],
        [
          "openaiJapanese"
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Chat-Gpt-4O. Uses openaiChat. Event-driven trigger; 6 nodes.

Source: https://gist.github.com/richardsondx/706d217f2999955b5eb905f7d8c78c73 — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

An AI inbox labelling manager that has reasoning attached to the ChatGPT inbox manager within n8n. Super simple yet highly effective automation.

Gmail, Gmail Trigger, Tool Think +1
AI & RAG

This template triggers when a new row appears in Google Sheets (from any intake form that writes to the sheet). It validates key fields, performs light deduplication by email or phone, and sends the d

Google Sheets Trigger, OpenAI, Gmail +2
AI & RAG

Language Translation with OpenAI. Uses openAi. Event-driven trigger; 13 nodes.

OpenAI
AI & RAG

Check this channel: AutoTechAi_bot

Telegram Trigger, OpenAI, Telegram
AI & RAG

Ai Customer Feedback Sentiment Analysis. Uses stickyNote, googleSheets, openAi, formTrigger. Event-driven trigger; 9 nodes.

Google Sheets, OpenAI, Form Trigger