This workflow follows the Agent → Google Gemini Chat recipe pattern — see all workflows that pair these two integrations.
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 →
{
"name": "My workflow",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "gerador-fundo",
"responseMode": "responseNode",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2.1,
"position": [
-320,
16
],
"id": "63a096c6-9a0c-47af-a218-b912c8d6987d",
"name": "Webhook"
},
{
"parameters": {
"respondWith": "text",
"responseBody": "={{ $json.output }}",
"options": {}
},
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.4,
"position": [
544,
16
],
"id": "d62295cf-505f-4f6c-938b-095ae1ce33f1",
"name": "Respond to Webhook"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.body.description }}",
"options": {
"systemMessage": "Gerador de Anima\u00e7\u00f5es de FUNDO DE PAGINA CSS\nCrie uma anima\u00e7\u00e3o CSS de FUNDO DE SITE e responda somente com este formato, em json puro\n\n{\n\"code\": \"HTML gerado\",\n\"preview\": \"<div class=\"bg\"></div>\n<div class=\"bg bg2\"></div>\n<div class=\"bg bg3\"></div>\",\n\"style\": \"CSS puro\"\n}\n\nExemplo de fundo animado\n\n{\ncode: \"<div class=\"bg\"></div>\n<div class=\"bg bg2\"></div>\n<div class=\"bg bg3\"></div>\",\n\nstyle:\"html {\n height:100%;\n}\n\nbody {\n margin:0;\n}\n\n.bg {\n animation:slide 3s ease-in-out infinite alternate;\n background-image: linear-gradient(-60deg, #6c3 50%, #09f 50%);\n bottom:0;\n left:-50%;\n opacity:.5;\n position:fixed;\n right:-50%;\n top:0;\n z-index:-1;\n}\n\n.bg2 {\n animation-direction:alternate-reverse;\n animation-duration:4s;\n}\n\n.bg3 {\n animation-duration:5s;\n}\n\n.content {\n background-color:rgba(255,255,255,.8);\n border-radius:.25em;\n box-shadow:0 0 .25em rgba(0,0,0,.25);\n box-sizing:border-box;\n left:50%;\n padding:10vmin;\n position:fixed;\n text-align:center;\n top:50%;\n transform:translate(-50%, -50%);\n}\n\nh1 {\n font-family:monospace;\n}\n\n@keyframes slide {\n 0% {\n transform:translateX(-25%);\n }\n 100% {\n transform:translateX(25%);\n }\n}\"\n}\n\nREGRAS:\nSem quebras de linha\nUse aspas simples dentro das strings\nAnima\u00e7\u00f5es coloridas e impressionantes\nC\u00f3digo simples com visual marcante\nse atente pra criar todas os elementos html que voc\u00ea definiu nas classes css e vice versa\nn\u00e3o retorne nenhuma div ou estilo com loader, ou classe loader\nn\u00e3o retorne nenhuma propriedade com overflow"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 2.2,
"position": [
-80,
16
],
"id": "0ee1e175-a640-46cd-b762-e7f1576bed8b",
"name": "AI Agent"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
-80,
224
],
"id": "1a429280-ed04-4634-a1f8-6ede28ac7d58",
"name": "Google Gemini Chat Model",
"credentials": {
"googlePalmApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nconst output = $input.first().json.output.replace(\"json\",\"\").replaceAll(\"`\",\"\").replaceAll(\"\\n\",\"\");\n\nreturn {output};"
},
"type": "n8n-nodes-base.code",
"typeVersion": 2,
"position": [
272,
16
],
"id": "5c1c8831-dbf5-4755-b62c-f5e28eccd962",
"name": "Code in JavaScript"
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Code in JavaScript",
"type": "main",
"index": 0
}
]
]
},
"Respond to Webhook": {
"main": [
[]
]
},
"Code in JavaScript": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"versionId": "8ee2d7d9-1404-44c7-bd3e-3e6d2b807c11",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "8cDYON6SnQE07NnC",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
googlePalmApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Fundo-Magico. Uses agent, lmChatGoogleGemini. Webhook trigger; 5 nodes.
Source: https://github.com/ipierette/fundo-magico/blob/b58f766b31102a07ea9d7553ef822c0fc2ba4ede/fundo-magico.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
⏺ 🚀 How it works
Are you drowning in daily operational chaos, desperately trying to juggle sales, projects, content, and client communication? Imagine an AI brain that handles it all, freeing you to lead your business
CLINICAINTEGRAL_secretary. Uses postgres, mcpClientTool, googleDriveTool, toolWorkflow. Webhook trigger; 89 nodes.
secretaria. Uses postgres, n8n-nodes-evolution-api, openAi, httpRequest. Webhook trigger; 71 nodes.
LineOA. Uses httpRequest, agent, lmChatGoogleGemini, outputParserStructured. Webhook trigger; 69 nodes.