Can I pin a page and send it to trello, notion etc
I tend to do a lot of research daily and come across a lot of websites and data that I need to either Quickly copy, pin or even bookmark a page for future reference.
Is there a way I can use n8n as a some kind of collector, quickly pin, copy and bookmark pages from the web?
Hi @Imperol, this should be possible by creating what’s called a bookmarklet sending data to n8n.
Consider a workflow with a simple webhook like this:
This accepts any POST request sent to it.
Now once you add a suitable bookmarklet to your bookmark bar you can simply click it on every website you’re on and send the current URL to your n8n webhook.
Here’s example code for your bookmarklet I’ve tested just now:
javascript:(() => {
var currentUrl = window.location.href;
var webhookUrl = 'https://$yourN8nInstanceUrl/webhook/1c04b027-39d2-491a-a9c6-194289fe400c';
var xhr = new XMLHttpRequest();
xhr.open('POST', webhookUrl, true);
xhr.setRequestHeader('Content-Type', 'application/json');
var data = JSON.stringify({ url: currentUrl });
xhr.send(data);
})();
In n8n you can then read the body.url field and send it to Notion, Trello, or any other service:
@Imperol that’s great to hear! If you have some down time in future, would be amazing if you could submit it as a Workflow Template for our global community to benefit from
You can learn more about submitting workflow templates to our community from the Creators’ Hub: https://creators.n8n.io/hub