Automate URL Collection & Notion Integration with n8n Webhook

This n8n workflow automates capturing URLs via a webhook, fetching page titles, and saving them into Notion, with a Discord notification. It solves tedious manual link tracking and organization efficiently.
webhook
httpRequest
if
+3
Workflow Identifier: 2365
NODES in Use: Webhook, HTTP Request, If, HTML Extract, Notion, Set

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What this workflow does

This workflow gets web links from a webhook and sorts them properly.

It checks if incoming data meets a specific rule.

It gets the webpage content from the link.

It pulls out the page title to name the link.

It saves the link and title inside a Notion database.

It sends a message to Discord confirming the link was added.


Who should use this workflow

This is for any team or person who gets many web links shared often.

People who want to stop manual copying and pasting links.

Those who want to store links nicely in Notion and get alerts.

It works well if you send web links via Discord or any place that can send POST requests.


Tools and services used

  • n8n: Runs the workflow and connects nodes.
  • Notion API: Receives new pages with link info.
  • Discord Webhook or Bot API: Sends confirmation messages.
  • HTTP Request node: Retrieves webpage HTML for title extraction.
  • HTML Extract node: Pulls the title text from HTML content.

Beginner step-by-step: How to build this in n8n

Importing and setup

  1. Click the Download button on this page to get the workflow JSON.
  2. Open your n8n editor and choose Import from File under Workflows.
  3. Choose the downloaded JSON file to import this workflow.
  4. After import, find the Webhook node and check the HTTP Method is POST.

Configure credentials and settings

  1. Add your Notion API Key under credentials to the Notion node.
  2. Update the Notion database ID in the Notion node to match your target database.
  3. If you use a Discord node, add your Discord webhook URL or bot token.
  4. Check the webhook URL path in the Webhook node and make sure your sender will post to it.

Test and activate

  1. Send a test HTTP POST request with a sample payload including a URL and type=1.
  2. Watch the workflow run in n8n and check for errors.
  3. Once verified, activate the workflow by toggling the Active switch.
  4. Now the workflow will run automatically whenever a request hits your webhook URL.

For self hosting n8n, it is helpful to check self-host n8n resources.


Inputs, processing and output

Inputs

  • Receives POST calls to Webhook node containing JSON with at least a URL and a type field.

Processing

  • The Check type node tests if type == 1.
  • If true, the HTTP Request node fetches the full HTML content from the URL.
  • The HTML Extract node extracts the text inside the <title> tag from the HTML.
  • The Notion node creates a new page, setting the title as the page name and the URL as a property.
  • The workflow sends a confirmation message to Discord through a Set node (or optionally a Discord node).
  • If the type is not 1, the workflow sets a response acknowledging receipt.

Output

  • New page in Notion database with link title and URL.
  • Message sent to Discord channel confirming addition.
  • Webhook response to sender confirming processing.

Edge cases and failures

HTTP Request failures

Malformed URLs or websites blocking bots can cause failures.

Try adding headers to mimic browser requests in the HTTP Request node.

Notion errors

Wrong database ID or invalid API key prevent page creation.

Check API keys and database permissions carefully.

Webhook no response

Often caused by inactive workflow or incorrect webhook URL.

Activate workflow and confirm webhook path matches POST request URL.


Customization ideas

  • Change Notion database by updating the database ID in the Notion node.
  • Add more HTML Extract nodes for description, keywords, or images from the webpage.
  • Switch the last Set node with a real Discord node for live message posting.
  • Adjust the Check type node condition to accept more or different types.
  • Integrate with other tools by posting to the webhook URL from other apps or bots.

Summary

✓ Sends received web links to Notion with their page titles.

✓ Filters links by type to process only relevant ones.

✓ Automatically adds confirmation messages in Discord.

→ Saves time by avoiding manual data entry.

→ Keeps links organized and easy to track.

Frequently Asked Questions

The Check type node looks for the type field in the webhook JSON payload. Only if type equals 1 will the workflow fetch the webpage and add the link to Notion.
Verify that the Notion API Key is correct and has write permissions. Also confirm the database ID in the Notion node matches your Notion database.
Discord messages can be sent by connecting the final node to a Discord webhook or Discord node configured with the webhook URL or bot token.
The webhook must receive a POST request with JSON containing a URL in body.data.options[0].value and a type field indicating if the URL should be processed (type=1).

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free