Triage PubMed clinical literature with Gemini and Google Sheets and Docs
Quick overview Automatically retrieve recent PubMed articles, identify the three papers most worth reading first using AI, and generate structured clinical literature triage reports in Google Sheets and Google Docs.
How it works Reads the first pending literature request from the Google Sheets "Search Requests" tab. Marks the request as “processing” in Google Sheets and builds the PubMed query parameters (keyword, max results, specialty, clinical question, and output language). Searches PubMed via the NCBI E-utilities API (esearch) and fetches the corresponding article abstracts and metadata as XML (efetch). Parses and normalizes the XML into a structured list of candidate articles including title, abstract, journal, publication year, DOI, and PubMed URL. Sends the aggregated candidate articles to Google Gemini to select and rank the best three papers and generate a structured clinical evaluation for each. Appends the three ranked papers with summaries and triage fields to a Google Sheets “Triage Results” tab. Generates a formatted triage report in Google Docs and updates the original request status to “completed” in Google Sheets.
Setup Create a Google Sheets OAuth connection and point the workflow to your spreadsheet, ensuring it has a “Search Requests” sheet with columns Keyword, Clinical Question, Specialty, Max Results, Output Language, and Status. Create a “Triage Results” sheet with columns matching the fields the workflow writes (for example Rank, Title, Journal, Pub Date, Pubmed URL, Summary 30sec, and the other triage outputs). Add a Google Gemini (PaLM) API credential for the Google Gemini chat model used to rank and summarize articles. Add a Google Docs OAuth connection and set the target Drive folder ID for where the workflow creates the report document. (Optional) Adjust the schedule interval and PubMed search parameters (such as sort order and retmax) to fit your review cadence and desired breadth.
Requirements n8n (latest stable version recommended) Google account Google Sheets Google Docs Google Gemini API credential Internet access PubMed (NCBI E-utilities)
Customization AI evaluation prompt Number of retrieved PubMed articles Number of ranked papers Output language Google Docs report format Google Sheets column structure
Additional info This workflow is Part 1 of the Evidence-Based Medical AI Workflow Series.
Unlike traditional article summarization workflows, it helps clinicians prioritize what to read by identifying the papers most worth reading first.
Related Templates
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
Restore your workflows from GitHub
This workflow restores all n8n instance workflows from GitHub backups using the n8n API node. It complements the Backup ...
Build a Restaurant Voice Assistant with VAPI and PostgreSQL for Bookings & Orders
This n8n template demonstrates how to create a comprehensive voice-powered restaurant assistant that handles table reser...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments