Automate Link Saving from Discord to Notion with Title Extraction
detail.loadingPreview
Triggered by a webhook, this workflow automatically saves shared URLs to a Notion database. It fetches the webpage, extracts its title, and then creates a new Notion page with both the link and its title, finally sending a confirmation back.
About This Workflow
This powerful n8n workflow streamlines the process of capturing valuable web links directly into your Notion workspace. When a specific webhook endpoint is triggered – often from a chat application like Discord – the workflow intelligently processes the incoming URL. It first retrieves the webpage content, then cleverly extracts the page's official title. This title, along with the original URL, is then meticulously organized as a new entry in your designated Notion database. A confirmation message is sent back to acknowledge the successful operation, keeping you informed every step of the way.
Key Features
- Automated Link Capture: Instantly save URLs sent via a webhook (e.g., Discord commands).
- Intelligent Title Extraction: Automatically scrapes the webpage to find and use its
<title>for better organization in Notion. - Seamless Notion Integration: Creates new database pages in Notion, populating title and URL properties.
- Conditional Processing: Differentiates between various incoming request types to execute the appropriate action.
- Real-time Confirmation: Sends a customizable reply to the triggering application upon successful link saving.
How To Use
- Configure the Webhook:
- Set up the "Webhook" node. Note down its URL. This is the endpoint your external application (e.g., Discord bot) will send data to.
- Ensure the
httpMethodis set toPOSTandresponseModeislastNode.
- Integrate with Notion:
- Provide your "Notion API Credentials" to the "Add Link to Notion" node.
- Replace
8a1638ce-da33-41b7-8fd9-37a4c272ba95with the actual ID of your target Notion database. - Adjust the "Name|title" and "Link|url" property keys if your Notion database uses different names for its title and URL properties.
- Customize the HTTP Request:
- Ensure the
urlexpression in the "HTTP Request" node correctly points to the URL from your incoming webhook payload (e.g.,{{$json["body"]["data"]["options"][0]["value"]}}).
- Ensure the
- Refine Title Extraction:
- If needed, modify the
cssSelectorin the "Extract Title" node to target different elements for title extraction beyond the standard<title>tag.
- If needed, modify the
- Adjust Reply Message:
- Customize the
data.contentvalue in the "Reply on Discord" node to change the confirmation message sent back. - If not using Discord, modify the
typeanddata.contentstructure to match the expected response format of your triggering application.
- Customize the
- Set up External Trigger:
- Configure your external application (e.g., a Discord bot, another automation tool) to send POST requests with the URL you want to save to the "Webhook" node's URL, including the URL in the
body.data.options[0].valuefield.
- Configure your external application (e.g., a Discord bot, another automation tool) to send POST requests with the URL you want to save to the "Webhook" node's URL, including the URL in the
Apps Used
Workflow JSON
{
"id": "6b15c3dc-4bde-4d58-bfd4-97c76ff87950",
"name": "Automate Link Saving from Discord to Notion with Title Extraction",
"nodes": 20,
"category": "Personal",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 6b15c3dc-4bde...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Send Obsidian Notes as Emails with Dynamic Attachments
This workflow empowers you to transform your Obsidian notes into dynamic emails, complete with custom metadata from YAML frontmatter and automated attachment handling. Seamlessly share your thoughts and files directly from your preferred note-taking environment.
Smart Expense Tracking with Telegram & AI
Automate your personal finance management by turning your Telegram chat into an intelligent expense tracker. Simply send a photo of a receipt or a text message, and this workflow uses AI to categorize your spending, extract crucial details, and provide instant summaries.
Voice Task to Notion: AI-Powered Processing
This n8n workflow automates the intelligent processing of voice-activated tasks intended for Notion or similar tools. It leverages advanced AI to understand inputs, builds a dynamic knowledge base from them, and logs processing outcomes to Google Sheets. Instantly get alerted via Slack for any errors, ensuring reliable task management.