AutomationFlowsAI & RAG › Practica 7: Ejercicio 1

Practica 7: Ejercicio 1

Practica 7: Ejercicio 1. Uses postgres, googleGemini. Event-driven trigger; 4 nodes.

Event trigger★★☆☆☆ complexityAI-powered4 nodesPostgresGoogle Gemini
AI & RAG Trigger: Event Nodes: 4 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
{
  "updatedAt": "2025-12-07T22:59:11.000Z",
  "createdAt": "2025-12-07T22:27:58.445Z",
  "id": "ItCQaYMfVrW44ZBI",
  "name": "Practica 7: Ejercicio 1",
  "description": null,
  "active": false,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        -208
      ],
      "id": "b57cf118-60e0-4654-b26a-b0d6573b789c",
      "name": "When clicking \u2018Execute workflow\u2019"
    },
    {
      "parameters": {
        "operation": "executeQuery",
        "query": "SELECT * FROM task WHERE description IS NOT NULL AND description != '' LIMIT 5;",
        "options": {}
      },
      "type": "n8n-nodes-base.postgres",
      "typeVersion": 2.6,
      "position": [
        224,
        -208
      ],
      "id": "9ceba4fd-947f-49b1-aaa5-9d09be98d89b",
      "name": "Execute a SQL query",
      "credentials": {
        "postgres": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "models/gemini-2.0-flash-lite",
          "mode": "list",
          "cachedResultName": "models/gemini-2.0-flash-lite"
        },
        "messages": {
          "values": [
            {
              "content": "=Genera un resumen conciso de una sola frase (m\u00e1ximo 15 palabras) para la siguiente tarea: \"{{ $json.description }}\""
            }
          ]
        },
        "jsonOutput": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1,
      "position": [
        448,
        -208
      ],
      "id": "ed07087e-e3e6-4208-ac6d-0df2b33a8b2b",
      "name": "Message a model",
      "credentials": {
        "googlePalmApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "0c200b88-b369-4ec8-a19b-c94499442a13",
              "name": "resumen",
              "value": "={{ JSON.parse($json.content.parts[0].text)[0] }}",
              "type": "string"
            },
            {
              "id": "b9c91af3-ff9b-4be2-a58d-bab4d1b9d5b2",
              "name": "",
              "value": "",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        800,
        -208
      ],
      "id": "3db1b63b-0676-4e44-a582-71c3e45959ce",
      "name": "Edit Fields"
    }
  ],
  "connections": {
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "Execute a SQL query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute a SQL query": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "0117243a-c78e-4271-ad72-f37637e247ae",
  "activeVersionId": null,
  "versionCounter": 9,
  "triggerCount": 0,
  "tags": [],
  "shared": [
    {
      "updatedAt": "2025-12-07T22:27:58.456Z",
      "createdAt": "2025-12-07T22:27:58.456Z",
      "role": "workflow:owner",
      "workflowId": "ItCQaYMfVrW44ZBI",
      "projectId": "jEpZT8mLa3eTbWzT",
      "project": {
        "updatedAt": "2025-11-07T16:30:44.943Z",
        "createdAt": "2025-11-07T16:25:40.556Z",
        "id": "jEpZT8mLa3eTbWzT",
        "name": "Anass El Jabiry <aek676@inlumine.ual.es>",
        "type": "personal",
        "icon": null,
        "description": null,
        "creatorId": "685a70bc-7fcf-484c-be50-a33cd8a1716e"
      }
    }
  ]
}

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.

Pro

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

About this workflow

Practica 7: Ejercicio 1. Uses postgres, googleGemini. Event-driven trigger; 4 nodes.

Source: https://github.com/aek676/itsi-2026/blob/main/workflows/ItCQaYMfVrW44ZBI.json — 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

Automacao_PrecoDistribuidoraV8. Uses telegramTrigger, telegram, postgres, googleGemini. Event-driven trigger; 54 nodes.

Telegram Trigger, Telegram, Postgres +1
AI & RAG

Job Hunter. Uses httpRequest, postgres, googleGemini, errorTrigger. Event-driven trigger; 22 nodes.

HTTP Request, Postgres, Google Gemini +2
AI & RAG

Practica 7: Ejercicio guiado. Uses postgres, googleGemini, gmail. Event-driven trigger; 8 nodes.

Postgres, Google Gemini, Gmail
AI & RAG

This n8n workflow uses the Google Gemini node to generate AI videos via the Veo model. It replaces complex manual API setups with a simple, plug-and-play experience.

Google Gemini
AI & RAG

AI Product Idea Generator — Reddit → Product Hunt → Gemini. Uses n8n-nodes-tinyfish, googleGemini. Event-driven trigger; 4 nodes.

N8N Nodes Tinyfish, Google Gemini