How to Auto-Export Glasp Highlights with n8n

This post was originally published on Glasp:
👉 How to Auto-Export Glasp Highlights with n8n

Do you wish your Glasp highlights could automatically flow into Notion, Slack, Google Sheets, or any other tool you use? With the Glasp API and n8n (a workflow automation platform), you can set this up in minutes — no coding required.

In this tutorial, we’ll walk you through setting up an n8n workflow that automatically fetches your new Glasp highlights every few hours and sends them wherever you want.

What You’ll Need

A Glasp account with highlights

An n8n account (Cloud or self-hosted)

A Glasp Access Token (get it here)

What This Workflow Does

  • Runs automatically on a schedule (default: every 6 hours)

  • Fetches only new highlights since the last run

  • Skips documents you’ve already exported (no duplicates)

  • Formats highlights as both plain text and Markdown

  • Sends them to any destination you connect

Step 1: Import the Workflow

The workflow is published as an official n8n template. You can import it with just a few clicks — no need to copy-paste a URL.

  1. Go to the Glasp Highlights Export template on n8n

2 Click “Use for free”

3 Choose one of the import options:

  • Copy template to clipboard (JSON) — then paste it into your n8n instance

  • Get started free with n8n cloud — if you don’t have an n8n account yet

  • Open self-hosting installation docs — if you prefer to self-host

If you chose “Copy template to clipboard (JSON)”, go to your n8n instance and press Cmd+V (Mac) or Ctrl+V (Windows). The workflow will be imported automatically.

Once imported, you should see the workflow with four nodes:

Schedule Trigger –> Prepare Parameters –> Glasp API –> Filter & Format

Step 2: Get Your Glasp Access Token

To connect n8n with Glasp, you’ll need your personal API access token.

Once you’ve signed up for Glasp, go to Glasp Access Token, where you can get the access token. Click Generate (or copy your existing token)

💡 Keep your access token private. Don’t share it publicly or commit it to a public repository.

Step 3: Configure Your Credentials

Once the workflow is imported, you need to add your Glasp credentials.

  1. Open the Glasp API node (the HTTP Request node)

2 Confirm the settings:

  • Authentication: Generic Credential Type

  • Generic Auth Type: Bearer Auth

3 Click the Bearer Auth dropdown and select “+ Create new credential

4 In the credential modal, paste your Glasp access token into the Bearer Token field

5 Save the credential

💡 Your access token is stored in n8n’s encrypted Credentials, never in the workflow JSON. Exported doc tracking auto-cleans after 30 days. No secrets in code.

Optional: Adjust the schedule frequency by clicking the Schedule Trigger node. Default: every 6 hours.

Step 4: Test the Workflow

Click Execute Workflow at the bottom of the canvas. If everything is set up correctly, you should see your recent highlights flowing through each node.

The Filter & Format node outputs each document with these fields:

title — the article or page title

url — the original URL

highlightsText — all highlights as plain text

highlightsMarkdown — highlights formatted as Markdown

highlightCount — number of highlights

tags, domain, category — metadata

highlights[] — individual highlight objects with text, notes, and colors

Step 5: Connect Your Destination

Now connect the output to wherever you want your highlights to go. Here are some popular examples:

Example: Notion

  1. Add a Notion node –> Create Database Page

  2. Connect your Notion account

  3. Select your database

4 Map the fields:

  • Title: {{ $json.title }}

  • URL: {{ $json.url }}

  • Highlights (as a Block): {{ $json.highlightsText }}

Make sure to add the n8n integration to your Notion database (Database … menu –> Connections –> add your integration).

Example: Slack

  1. Add a Slack node –> Send Message

  2. Connect your Slack account

  3. Select your channel

  4. Set Message Text:

{{ $json.title }}

{{ $json.url }}

{{ $json.highlightCount }} highlights

{{ $json.highlightsText }}

Example: Google Sheets

  1. Add a Google Sheets node –> Append Row

  2. Connect your Google account

  3. Select your spreadsheet

  4. Map columns: title, url, domain, highlightCount, highlightsText, createdAt

Example: Webhook / Custom API

  1. Add an HTTP Request node

  2. Set method to POST

  3. Enter your webhook URL

  4. Send {{ $json }} as JSON body

Step 6: Activate the Workflow

Once you’ve tested everything and connected your destination, click Publish (top-right). The workflow is now active and will run automatically every 6 hours. You can change the frequency by clicking the Schedule Trigger node.

The Schedule Trigger node runs at your set interval (e.g., daily, hourly) and automatically exports any new highlights.

(Optional) Step 7: Customize the Schedule
By default, the workflow runs every six hour. To change the frequency:

  1. Double-click the Schedule Trigger node

  2. Adjust the interval (e.g., every hour, every week, specific time)

  3. Save and reactivate the workflow

How It Works Under the Hood

Prepare Parameters: Calculates the time range. On the first run, it looks back 24 hours. After that, it only fetches highlights updated since the last run, with a 5-minute buffer to avoid missing anything.

Glasp API: Calls the Glasp Export API with your token and handles pagination automatically.

Filter & Format: Filters out documents you’ve already exported (tracked in n8n’s static data) and formats the output with both plain text and Markdown versions.

Tracking data is automatically cleaned up after 30 days to prevent unbounded growth.

Troubleshooting

“No new highlights found”

This is normal if no new highlights were added since the last run.

Authentication error

Check that your Glasp access token is correct and hasn’t expired. Get a new one at glasp.co/settings/access_token

Notion “not found” error

Make sure the n8n integration is added to your Notion database via Connections.

Slack “not_in_channel”

Invite the Slack bot to the channel using /invite @your-bot-name.

Credential not accessible

If you’re using n8n Projects, make sure your credential is assigned to the same project as your workflow. Go to Overview –> Credentials –> … –> Move to Project.

Resources

Before you leave

Thanks for reading. We hope this tutorial helps you automate your Glasp highlights export and build a seamless knowledge workflow.

See you next time,

Glasp team

Leave a Reply