AutomationFlowsAI & RAG › Genmedinfo Newsletter

Genmedinfo Newsletter

GenMedInfo Newsletter. Uses httpRequest, googleGemini, gmail. Scheduled trigger; 12 nodes.

Cron / scheduled trigger★★★★☆ complexityAI-powered12 nodesHTTP RequestGoogle GeminiGmail
AI & RAG Trigger: Cron / scheduled Nodes: 12 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Gmail → Googlegemini 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 →

Download .json
{
  "name": "GenMedInfo Newsletter",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "weeks",
              "triggerAtDay": [
                1
              ],
              "triggerAtHour": 7
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -64,
        0
      ],
      "id": "ae71faa5-8145-4600-a6f8-82b237d9918d",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "db",
              "value": "pubmed"
            },
            {
              "name": "retmode",
              "value": "json"
            },
            {
              "name": "retmax",
              "value": "30"
            },
            {
              "name": "datetype",
              "value": "pdat"
            },
            {
              "name": "mindate",
              "value": "={{ $json.date_min }}"
            },
            {
              "name": "maxdate",
              "value": "={{ $json.date_max }}"
            },
            {
              "name": "term",
              "value": "=(clinical bioinformatics OR genomic medicine OR multi-omics OR transcriptomics OR epigenomics) AND (tools OR software OR pipeline OR analysis)"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        384,
        0
      ],
      "id": "8da99983-ef24-4e76-9da5-655296e02676",
      "name": "PUBMED IDs search"
    },
    {
      "parameters": {
        "modelId": {
          "__rl": true,
          "value": "models/gemini-2.5-flash",
          "mode": "list",
          "cachedResultName": "models/gemini-2.5-flash"
        },
        "messages": {
          "values": [
            {
              "content": "={{ $json.data }}"
            }
          ]
        },
        "builtInTools": {},
        "options": {
          "systemMessage": "=You are the Editor-in-Chief of \"GenMedInfo Weekly\", an elite newsletter covering Clinical Bioinformatics and Genomics.\n\nYOUR DATA SOURCE:\nYou will receive an XML containing multiple articles (<PubmedArticle>).\n\nYOUR TASK:\n1. READING: Analyze the <ArticleTitle>, <AbstractText>, and <PMID> fields.\n2. CURATION: Select the 5 to 7 most impactful articles (New tools, pipelines, multi-omics, clinical variants).\n   - EXCLUDE: Articles on fish, botany, or agriculture. Focus on humans/mice.\n3. SYNTHESIS: Summarize each article in 2-3 sentences focusing on practical utility.\n4. GENERATION: Generate the final HTML code by filling out the template below EXACTLY. Do not alter colors, fonts, or style structure.\n\nMANDATORY HTML TEMPLATE:\n--------------------------------------------------\n<!DOCTYPE html>\n<html>\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n</head>\n<body style=\"font-family:'Helvetica Neue',Arial,sans-serif;margin:0;padding:20px;background-color:#f4f7f6;color:#333\">\n\n    <div style=\"max-width:700px;margin:20px auto;background-color:#ffffff;padding:30px;border-radius:8px\">\n        <h1 style=\"color:#0056b3;text-align:center;margin-bottom:5px;font-size:28px\">GenMedInfo Weekly</h1>\n        <p style=\"text-align:center;color:#666;font-size:14px;margin-top:0;padding-bottom:20px;border-bottom:1px solid #eee\">Issue Date: [INSERT TODAY'S DATE]</p>\n\n        <h2 style=\"color:#2c3e50;margin-top:30px;margin-bottom:25px;font-size:22px\">Curated Insights for Data Scientists & Bioinformaticians</h2>\n\n        <div style=\"margin-bottom:30px;padding:20px;border-left:4px solid #0056b3;background-color:#f9f9f9;border-radius:5px\">\n            <h3 style=\"color:#0056b3;margin-top:0;margin-bottom:10px;font-size:18px\">\n                <a href=\"https://pubmed.ncbi.nlm.nih.gov/[INSERT_PMID]/\" target=\"_blank\" style=\"color:#0056b3;text-decoration:none;font-weight:bold\">\n                    [INSERT ARTICLE TITLE]\n                </a>\n            </h3>\n            <p style=\"font-size:13px;color:#555;margin-bottom:10px\">[FIRST AUTHOR] et al.</p>\n            <p style=\"line-height:1.6;font-size:15px;margin-bottom:15px\">\n                [INSERT AI GENERATED SUMMARY]\n            </p>\n            <a href=\"https://pubmed.ncbi.nlm.nih.gov/[INSERT_PMID]/\" target=\"_blank\" style=\"display:inline-block;padding:8px 15px;background-color:#0056b3;color:#ffffff;text-decoration:none;border-radius:4px;font-size:14px\">Read on PubMed</a>\n        </div>\n        <p style=\"text-align:center;margin-top:40px;font-size:12px;color:#999\">\u00a9 2026 GenMedInfo Weekly. All rights reserved.</p>\n    </div>\n\n</body>\n</html>\n--------------------------------------------------\n\nFINAL RULES:\n- Do not use Markdown (```html).\n- Deliver only raw code starting with <!DOCTYPE html>.\n- Keep all inline CSS exactly as in the template above.\n- Ensure all content is written in English."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        800,
        112
      ],
      "id": "a1a8c64c-0a88-4598-9101-15d184078085",
      "name": "Message a model",
      "credentials": {}
    },
    {
      "parameters": {
        "sendTo": "",
        "subject": "=\ud83e\uddec GenMedInfo Weekly: Updates for {{ $now.format(\"'week' WW\") }} - 2026",
        "message": "={{ $json.content.parts[0].text }}",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        1152,
        112
      ],
      "id": "ba5e63be-1e70-4784-9c7f-0adb9e9c0337",
      "name": "Send a message",
      "credentials": {
        "gmailOAuth2": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "url": "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "db",
              "value": "pubmed"
            },
            {
              "name": "retmode",
              "value": "text"
            },
            {
              "name": "retmode",
              "value": "medline"
            },
            {
              "name": "=id",
              "value": "={{ $node[\"PUBMED IDs search\"].json[\"esearchresult\"][\"idlist\"].join(\",\") }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        592,
        0
      ],
      "id": "b788527e-4d11-4a7d-aaeb-184c9575ca39",
      "name": "PUBMED Download data"
    },
    {
      "parameters": {
        "content": "## Note\nAdd your Gemini API key here.",
        "height": 96,
        "width": 192,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        0
      ],
      "typeVersion": 1,
      "id": "783f6fba-ca31-49bc-bf77-69fb4645a04a",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## Note\nAdd an valid email for sending and receiving the newsletter.",
        "height": 144,
        "width": 150,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -48
      ],
      "typeVersion": 1,
      "id": "0614df5b-2d01-4529-9816-659e405ac6fa",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "585c9a0b-e765-47f5-b3aa-65b9a1f18ab8",
              "name": "date_max",
              "value": "={{ $now.format('yyyy/MM/dd') }}",
              "type": "string"
            },
            {
              "id": "06097a8f-cabc-48f0-82d4-b85428fd18d2",
              "name": "date_min",
              "value": "={{ $now.minus({days: 7}).format('yyyy/MM/dd') }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        160,
        0
      ],
      "id": "09ef709e-34bc-4117-8b30-e26a11af3874",
      "name": "Setting week range"
    },
    {
      "parameters": {
        "content": "## Note\nGets paper ids, for the query search terms. You can change these terms here.",
        "width": 150
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        -176
      ],
      "typeVersion": 1,
      "id": "990c1ffe-6b31-4fc6-aeef-7e70a83e81f2",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "## Note\nDownload IDs data from pubmed.",
        "width": 150
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -176
      ],
      "typeVersion": 1,
      "id": "0522077d-ef47-4ab0-90b0-285108020d21",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "content": "## Note\nSets the week range for the e-utils query.",
        "width": 150
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -176
      ],
      "typeVersion": 1,
      "id": "a489e910-c400-4d71-b59f-e51bb218a9c1",
      "name": "Sticky Note4"
    },
    {
      "parameters": {
        "content": "## Note\nTrigger that activates the workflow. Default: 7:00am at Mondays.",
        "width": 150
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -176
      ],
      "typeVersion": 1,
      "id": "657c7acc-b208-4c7e-807a-7b5cb61e28f4",
      "name": "Sticky Note5"
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Setting week range",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PUBMED IDs search": {
      "main": [
        [
          {
            "node": "PUBMED Download data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PUBMED Download data": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Setting week range": {
      "main": [
        [
          {
            "node": "PUBMED IDs search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": false
  },
  "versionId": "d16ec5b6-4170-4ae2-8e0f-65a40a383b2f",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "0dFD59q4kIdYC1GX4_6ij",
  "tags": [
    {
      "updatedAt": "2026-01-30T01:08:06.712Z",
      "createdAt": "2026-01-30T01:08:06.712Z",
      "id": "FV5dSJnYCeNElM8c",
      "name": "Genetics"
    },
    {
      "updatedAt": "2026-01-30T01:07:28.290Z",
      "createdAt": "2026-01-30T01:07:28.290Z",
      "id": "HgOWCcUh5PCmf42L",
      "name": "Bioinformatics"
    },
    {
      "updatedAt": "2026-01-30T01:07:35.218Z",
      "createdAt": "2026-01-30T01:07:35.218Z",
      "id": "kTIDqllVjzca8zVs",
      "name": "Science"
    }
  ]
}

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

GenMedInfo Newsletter. Uses httpRequest, googleGemini, gmail. Scheduled trigger; 12 nodes.

Source: https://gist.github.com/joaoluna-dev/271efc2613576c87ce13405b04129471 — 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

This workflow is a complete outbound automation system that discovers local businesses, extracts contact emails, generates personalized cold emails using AI, and runs a multi-step follow-up sequence —

Stop And Error, Google Sheets, HTTP Request +2
AI & RAG

N8Nflow Zhtw. Uses executeCommand, readBinaryFiles, httpRequest, googleGemini. Scheduled trigger; 28 nodes.

Execute Command, Read Binary Files, HTTP Request +2
AI & RAG

N8Nflow En. Uses executeCommand, readBinaryFiles, httpRequest, googleGemini. Scheduled trigger; 28 nodes.

Execute Command, Read Binary Files, HTTP Request +2
AI & RAG

This workflow automatically fetches the latest business news, analyzes its impact on clients using AI and sends alerts for high-impact articles while logging all processed data in Google Sheets. It en

HTTP Request, Google Gemini, Gmail +1
AI & RAG

This scheduled workflow pulls the latest AI-related articles from NewsAPI, uses Google Gemini to filter and draft a LinkedIn post plus image prompt, generates an image with OpenAI, uploads the image a

HTTP Request, Google Gemini, Gmail +2