⚡ Only 300 spots remaining • Closes in 2d 14h 32m

Back to Workflow Library
Utilities
Featured Blueprint
High Voltage

Webhook to OpenAI Translator

Build your own AI services. This workflow exposes a webhook endpoint that accepts text and a target language. It passes the data to OpenAI's GPT-4 model with a specialized translation prompt and returns the result instantly to the requester.

#OpenAI
#GPT-4
#Translation
#API
#Utilities

Automation Logic

n8n JSON Blueprint

This workflow is pre-configured and ready for deployment. Simply import the JSON template into your n8n instance and configure your credentials.

This is an exclusive blueprint. Copy the JSON below to use it.

QUICK DEPLOY

  • 1
    Download the .json file
  • 2
    Open n8n & click "Import"
  • 3
    Configure your API keys

PRO TIP

Always test your workflow in a development environment before pushing to production.

JSON BLUEPRINT

n8n-workflow.json
{
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "translate",
        "options": {}
      },
      "name": "Translate Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "model": "gpt-4",
        "messages": {
          "message": [
            {
              "role": "system",
              "content": "You are a professional translator. Translate the following text to the requested language."
            },
            {
              "content": "={{$node[\"Translate Webhook\"].json[\"body\"][\"text\"]}} to {{$node[\"Translate Webhook\"].json[\"body\"][\"language\"]}}"
            }
          ]
        }
      },
      "name": "OpenAI Translate",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\n  \"translation\": \"{{$node[\\\"OpenAI Translate\\\"].json[\\\"message\\\"][\\\"content\\\"]}}\"\n}"
      },
      "name": "Webhook Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Translate Webhook": {
      "main": [
        [
          {
            "node": "OpenAI Translate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Translate": {
      "main": [
        [
          {
            "node": "Webhook Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

To use this, copy the JSON above and paste it directly onto your n8n canvas.

IMPLEMENTATION GUIDE

Required Nodes

  • OpenAI Node
  • GPT-4 Node
  • Translation Node
  • API Node
  • Utilities Node
  • Cron / Webhook Trigger

Core Benefits

  • 100% Automated Execution
  • Reduces Manual Data Entry
  • Infinite Scalability

Need Help Building Your Private Cloud?

Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.

user