⚡ Only 300 spots remaining • Closes in 2d 14h 32m
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.
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.
PRO TIP
Always test your workflow in a development environment before pushing to production.
{
"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.
Join the elite marketers who have offloaded their entire backend to n8n. Get direct support and custom builds in our private forum.