Skip to main content

Daily RAG research paper hub with arXiv, Gemini AI, and Notion

Workflow preview

Workflow preview
100%
Daily RAG research paper hub with arXiv, Gemini AI, and Notion preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Fetch user specific research papers from arXiv on a daily schedule, process and structure the data, and create or update entries in a Notion database, with support for data delivery Paper Topic : s...

Best for

  • Market Research automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.scheduletrigger, n8n-nodes-base.switch, n8n-nodes-base.httprequest, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by dongou.

Original n8n.io source

1.1 Workflow description

Title
Daily RAG research paper hub with arXiv, Gemini AI, and Notion
Workflow name
Daily RAG research paper hub with arXiv, Gemini AI, and Notion

Fetch user-specific research papers from arXiv on a daily schedule, process and structure the data, and create or update entries in a Notion database, with support for data delivery

  • Paper Topic: single query keyword
  • Update Frequency: Daily updates, with fewer than 20 entries expected per day
  • Tools:
    • Platform: n8n, for end-to-end workflow configuration
    • AI Model: Gemini-2.5-Flash, for daily paper summarization and data processing
    • Database: Notion, with two tables — Daily Paper Summary and Paper Details
    • Message: Feishu (IM bot notifications), Gmail (email notifications)

1. Data Retrieval

arXiv API

The arXiv provides a public API that allows users to query research papers by topic or by predefined categories.

arXiv API User Manual

Key Notes:

  1. Response Format: The API returns data as a typical Atom Response.
  2. Timezone & Update Frequency:
    • The arXiv submission process operates on a 24-hour cycle.
    • Newly submitted articles become available in the API only at midnight after they have been processed.
    • Feeds are updated daily at midnight Eastern Standard Time (EST).
    • Therefore, a single request per day is sufficient.
  3. Request Limits:
    • The maximum number of results per call (max_results) is 30,000,
    • Results must be retrieved in slices of at most 2,000 at a time, using the max_results and start query parameters.
  4. Time Format:
    • The expected format is [YYYYMMDDTTTT+TO+YYYYMMDDTTTT],
    • TTTT is provided in 24-hour time to the minute, in GMT.

Scheduled Task

  • Execution Frequency: Daily
  • Execution Time: 6:00 AM
  • Time Parameter Handling (JS):
    According to arXiv’s update rules, the scheduled task should query the previous day’s (T-1) submittedDate data.

2. Data Extraction

Data Cleaning Rules (Convert to Standard JSON)

  1. Remove Header

    • Keep only the 【entry】【/entry】 blocks representing paper items.
  2. Single Item

    • Each 【entry】【/entry】 represents a single item.
  3. Field Processing Rules

    • 【id】【/id】 ➡️ id
      Extract content.
      Example:
      【id】http://arxiv.org/abs/2409.06062v1【/id】http://arxiv.org/abs/2409.06062v1

    • 【updated】【/updated】 ➡️ updated
      Convert timestamp to yyyy-mm-dd hh:mm:ss

    • 【published】【/published】 ➡️ published
      Convert timestamp to yyyy-mm-dd hh:mm:ss

    • 【title】【/title】 ➡️ title
      Extract text content

    • 【summary】【/summary】 ➡️ summary
      Keep text, remove line breaks

    • 【author】【/author】 ➡️ author
      Combine all authors into an array
      Example: [ "Ernest Pusateri", "Anmol Walia" ] (for Notion multi-select field)

    • 【arxiv:comment】【/arxiv:comment】 ➡️ Ignore / discard

    • 【link type="text/html"】 ➡️ html_url
      Extract URL

    • 【link type="application/pdf"】 ➡️ pdf_url
      Extract URL

    • 【arxiv:primary_category term="cs.CL"】 ➡️ primary_category
      Extract term value

    • 【category】 ➡️ category
      Merge all 【category】 values into an array
      Example: [ "eess.AS", "cs.SD" ] (for Notion multi-select field)

  4. Add Empty Fields

    • github
    • huggingface

3. Data Processing

Analyze and summarize paper data using AI, then standardize output as JSON.

  • Single Paper Basic Information Analysis and Enhancement
  • Daily Paper Summary and Multilingual Translation

4. Data Storage: Notion Database

  • Create a corresponding database in Notion with the same predefined field names.
  • In Notion, create an integration under Integrations and grant access to the database. Obtain the corresponding Secret Key.
  • Use the Notion "Create a database page" node to configure the field mapping and store the data.

Notes

  • "Create a database page" only adds new entries; data will not be updated.
  • The updated and published timestamps of arXiv papers are in UTC.
  • Notion single-select and multi-select fields only accept arrays. They do not automatically parse comma-separated strings. You need to format them as proper arrays.
  • Notion does not accept null values, which causes a 400 error.

5. Data Delivery

Set up two channels for message delivery: EMAIL and IM, and define the message format and content.

Email: Gmail

GMAIL OAuth 2.0 – Official Documentation
Configure your OAuth consent screen

Steps:

  • Enable Gmail API
  • Create OAuth consent screen
  • Create OAuth client credentials
  • Audience: Add Test users under Testing status

Message format: HTML
(Model: OpenAI GPT — used to design an HTML email template)

IM: Feishu (LARK)

Bots in groups
Use bots in groups

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 2 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - submittedDate:T-1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 6 - FEISHU

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 7 - FEISHU POST

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - gmail

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 9 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 10 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.googleGemini - googleGemini
Config choices
Version 1

Block 11 - RAG Daily Paper Summary

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 12 - JSON FORMAT

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - arXiv API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Message Construction

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - RAG Daily papers

Type / Role
n8n-nodes-base.notion - notion
Config choices
Version 2.2

Block 18 - Data Extraction

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - JSON Format

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Daily RAG research paper hub with arXiv, Gemini AI, and Notion
Complexity advanced
Nodes 22
Categories Market Research, AI RAG
Author dongou
Published 23 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8847/8847.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Daily RAG research paper hub with arXiv, Gemini AI, and Notion do?

Fetch user specific research papers from arXiv on a daily schedule, process and structure the data, and create or update entries in a Notion database, with support for data delivery Paper Topic : s...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI RAG use case.