Workflow: Hugging Face  to Notion
Integrations: html, httpRequest, if, noOp, notion, scheduleTrigger, splitInBatches, splitOut

{"id": "FU3MrLkaTHmfdG4n", "meta": {"instanceId": "workflow-99884fcb", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:54.012116", "updatedAt": "2025-09-29T07:07:54.012126", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "Hugging Face  to Notion", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "32d5bfee-97f1-4e92-b62e-d09bdd9c3821", "name": "Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "position": [-2640, -300], "parameters": {"rule": {"interval": [{"field": "weeks", "triggerAtDay": [1, 2, 3, 4, 5], "triggerAtHour": 8}]}}, "typeVersion": 1.2, "notes": "This scheduleTrigger node performs automated tasks as part of the workflow."}, {"id": "b1f4078e-ac77-47ec-995c-f52fd98fafef", "name": "If Node", "type": "n8n-nodes-base.if", "position": [-1360, -280], "parameters": {"options": {}, "conditions": {"options": {"version": 2, "leftValue": "", "caseSensitive": true, "typeValidation": "strict"}, "combinator": "and", "conditions": [{"id": "7094d6db-1fa7-4b59-91cf-6bbd5b5f067e", "operator": {"type": "object", "operation": "empty", "singleValue": true}, "leftValue": "={{ $json }}", "rightValue": ""}]}}, "typeVersion": 2.2, "notes": "This if node performs automated tasks as part of the workflow."}, {"id": "afac08e1-b629-4467-86ef-907e4a5e8841", "name": "Loop Over Items", "type": "n8n-nodes-base.splitInBatches", "position": [-1760, -300], "parameters": {"options": {"reset": false}}, "typeVersion": 3, "notes": "This splitInBatches node performs automated tasks as part of the workflow."}, {"id": "807ba450-9c89-4f88-aa84-91f43e3adfc6", "name": "Split Out", "type": "n8n-nodes-base.splitOut", "position": [-1960, -300], "parameters": {"options": {}, "fieldToSplitOut": "url, url"}, "typeVersion": 1, "notes": "This splitOut node performs automated tasks as part of the workflow."}, {"id": "08dd3f15-2030-48f2-ab0f-f85f797268e1", "name": "Request Hugging Face Paper", "type": "n8n-nodes-base.httpRequest", "position": [-2440, -300], "parameters": {"url": "{{ $env.WEBHOOK_URL }}", "options": {}, "sendQuery": true, "queryParameters": {"parameters": [{"name": "date", "value": "={{ $now.minus(1,'days').format('yyyy-MM-dd') }}"}]}}, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "f37ba769-d881-4aad-927d-ca1f4a68b9a1", "name": "Extract Hugging Face Paper", "type": "n8n-nodes-base.html", "position": [-2200, -300], "parameters": {"options": {}, "operation": "extractHtmlContent", "extractionValues": {"values": [{"key": "YOUR_CREDENTIAL_HERE", "attribute": "href", "cssSelector": ".line-clamp-3", "returnArray": true, "returnValue": "attribute"}]}}, "typeVersion": 1.2, "notes": "This html node performs automated tasks as part of the workflow."}, {"id": "94ba99bf-a33b-4311-a4e6-86490e1bb9ad", "name": "Check Paper URL Existed", "type": "n8n-nodes-base.notion", "position": [-1540, -280], "parameters": {"filters": {"conditions": [{"key": "YOUR_CREDENTIAL_HERE", "urlValue": "{{ $env.BASE_URL }}", "condition": "equals"}]}, "options": {}, "resource": "databasePage", "operation": "getAll", "databaseId": {"__rl": true, "mode": "list", "value": "17b67aba-1fcc-80ae-baa1-d88ffda7ae83", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "huggingface-abstract"}, "filterType": "manual"}, "credentials": {"notionApi": {"id": "I5KdUzwhWnphQ862", "name": "notion"}}, "typeVersion": 2.2, "alwaysOutputData": true, "notes": "This notion node performs automated tasks as part of the workflow."}, {"id": "ece8dee2-e444-4557-aad9-5bdcb5ecd756", "name": "Request Hugging Face Paper Detail", "type": "n8n-nodes-base.httpRequest", "position": [-1080, -300], "parameters": {"url": "{{ $env.BASE_URL }}", "options": {}}, "typeVersion": 4.2, "notes": "This httpRequest node performs automated tasks as part of the workflow."}, {"id": "53b266fe-e7c4-4820-92eb-78a6ba7a6430", "name": "OpenAI Analysis Abstract", "type": "n8n-nodes-base.noOp", "position": [-640, -300], "parameters": {"modelId": {"__rl": true, "mode": "list", "value": "gpt-4o-2024-11-20", "cachedResultName": "GPT-4O-2024-11-20"}, "options": {}, "messages": {"values": [{"role": "system", "content": "Extract the following key details from the paper abstract:\n\nCore Introduction: Summarize the main contributions and objectives of the paper, highlighting its innovations and significance.\nKeyword Extraction: List 2-5 keywords that best represent the research direction and techniques of the paper.\nKey Data and Results: Extract important performance metrics, comparison results, and the paper's advantages over other studies.\nTechnical Details: Provide a brief overview of the methods, optimization techniques, and datasets mentioned in the paper.\nClassification: Assign an appropriate academic classification based on the content of the paper.\n\n\nOutput as json\uff1a\n{\n  \"Core_Introduction\": \"PaSa is an advanced Paper Search agent powered by large language models that can autonomously perform a series of decisions (including invoking search tools, reading papers, and selecting relevant references) to provide comprehensive and accurate results for complex academic queries.\",\n  \"Keywords\": [\n    \"Paper Search Agent\",\n    \"Large Language Models\",\n    \"Reinforcement Learning\",\n    \"Academic Queries\",\n    \"Performance Benchmarking\"\n  ],\n  \"Data_and_Results\": \"PaSa outperforms existing baselines (such as Google, GPT-4, chatGPT) in tests using AutoScholarQuery (35k academic queries) and RealScholarQuery (real-world academic queries). For example, PaSa-7B exceeds Google with GPT-4o by 37.78% in recall@20 and 39.90% in recall@50.\",\n  \"Technical_Details\": \"PaSa is optimized using reinforcement learning with the AutoScholarQuery synthetic dataset, demonstrating superior performance in multiple benchmarks.\",\n  \"Classification\": [\n    \"Artificial Intelligence (AI)\",\n    \"Academic Search and Information Retrieval\",\n    \"Natural Language Processing (NLP)\",\n    \"Reinforcement Learning\"\n  ]\n}\n```"}, {"content": "={{ $json.abstract }}"}]}, "jsonOutput": true}, "credentials": {"openAiApi": {"id": "LmLcxHwbzZNWxqY6", "name": "Unnamed credential"}}, "typeVersion": 1.8, "notes": "This openAi node performs automated tasks as part of the workflow."}, {"id": "f491cd7f-598e-46fd-b80c-04cfa9766dfd", "name": "Store Abstract Notion", "type": "n8n-nodes-base.notion", "position": [-300, -300], "parameters": {"options": {}, "resource": "databasePage", "databaseId": {"__rl": true, "mode": "list", "value": "17b67aba-1fcc-80ae-baa1-d88ffda7ae83", "cachedResultUrl": "{{ $env.WEBHOOK_URL }}", "cachedResultName": "huggingface-abstract"}, "propertiesUi": {"propertyValues": [{"key": "YOUR_CREDENTIAL_HERE", "urlValue": "{{ $env.BASE_URL }}"}, {"key": "YOUR_CREDENTIAL_HERE", "title": "={{ $('Extract Hugging Face Paper Abstract').item.json.title }}"}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $('Extract Hugging Face Paper Abstract').item.json.abstract.substring(0,2000) }}"}, {"key": "YOUR_CREDENTIAL_HERE", "date": "={{  $today.format('yyyy-MM-dd')  }}", "includeTime": false}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $json.message.content.Classification.join(',') }}"}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $json.message.content.Technical_Details }}"}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $json.message.content.Data_and_Results }}"}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $json.message.content.Keywords.join(',') }}"}, {"key": "YOUR_CREDENTIAL_HERE", "textContent": "={{ $json.message.content.Core_Introduction }}"}]}}, "credentials": {"notionApi": {"id": "I5KdUzwhWnphQ862", "name": "notion"}}, "typeVersion": 2.2, "notes": "This notion node performs automated tasks as part of the workflow."}, {"id": "d5816a1c-d1fa-4be2-8088-57fbf68e6b43", "name": "Extract Hugging Face Paper Abstract", "type": "n8n-nodes-base.html", "position": [-840, -300], "parameters": {"options": {}, "operation": "extractHtmlContent", "extractionValues": {"values": [{"key": "YOUR_CREDENTIAL_HERE", "cssSelector": ".text-gray-700"}, {"key": "YOUR_CREDENTIAL_HERE", "cssSelector": ".text-2xl"}]}}, "typeVersion": 1.2, "notes": "This html node performs automated tasks as part of the workflow."}], "active": true, "pinData": {}, "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "4b0ec2a3-253d-46d5-a4d4-1d9ff21ba4a3", "connections": {"08dd3f15-2030-48f2-ab0f-f85f797268e1": {"main": [[{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-815d1fd0", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-631b1e3e", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-cb950bb2", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-5edc43f0", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-67c3ac18", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-54ecb88e", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-f429042b", "type": "main", "index": 0}], [{"node": "error-handler-08dd3f15-2030-48f2-ab0f-f85f797268e1-195e5278", "type": "main", "index": 0}]]}, "ece8dee2-e444-4557-aad9-5bdcb5ecd756": {"main": [[{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-2e8718b4", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-eb3a6d28", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-db381829", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-dcee8e1b", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-9e11e57e", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-3dc4ad11", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-ab059176", "type": "main", "index": 0}], [{"node": "error-handler-ece8dee2-e444-4557-aad9-5bdcb5ecd756-7dd77475", "type": "main", "index": 0}]]}, "53b266fe-e7c4-4820-92eb-78a6ba7a6430": {"main": [[{"node": "error-handler-53b266fe-e7c4-4820-92eb-78a6ba7a6430-7134e91d", "type": "main", "index": 0}]]}}, "description": "Automated workflow: Hugging Face  to Notion. This workflow processes data and performs automated tasks.", "notes": "Excellent quality workflow: Hugging Face  to Notion. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}