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
Automate URL collection with n8n and Notion

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

Learn how to Build this Workflow with AI:

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.

Automate URL collection with n8n and Notion

Visit through Desktop to Interact with the Workflow.

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 Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.