2-way-sync assignments/completion between Canvas LMS and Notion
Syncs assignments and completion states to and fro between Canvas LMS and a Notion database. Automatically triggers every 2 hours during the schoolday by default (meaning 7 times a day), but also supports manual refreshing via webhooks.
Setup
You'll need a few things to get started:
- A Canvas API key. You can generate one by going to your Canvas account settings and clicking on the "New Access Token" button. The URL looks like
https://canvas.wisc.edu/profile/settings - You'll also need to replace URLs in Canvas nodes with your institution's domain, unless you're a student at UW-Madison. Canvas nodes are all the HTTP Request nodes except the one labelled "OpenAI Categorization", which is an OpenAI node and will require a key in a later step.
- A Notion integration token. You can find this by going to your Notion integrations page and clicking "Create new integration". You can make it a "Internal Integration".
- A Notion database to sync to. I made a template for use with the workflow, but you can use any database that has the following fields:
- Status (status): Status with at least the options "Not Started" and "Completed" - assignments start out "Not Started", and are marked "Completed" when they are submitted on Canvas.
- Estimate (select): Select with at least the options "XS", "S", "M", "L", "XL" - this is where the estimated time to complete the assignment will be stored. Even if you don't use AI, they'll start out as "M"
- Priority (select): Select with at least the options "Could Do", "Should Do", "Must Do" - assignments start out "Should Do"
- ID (text): this is where the ID of the assignment will be stored. We use this to sync without having a database on the server
- Due Date (date): this is where the due date of the assignment will be stored
- Class (text): this is where the name of the class will be stored
- Link (URL): this is where the link to the assignment will be stored
- The ID of the Notion database you want to sync to. You can find this by clicking "Share" in the top right of your database and copying the link. The ID is the part of the link that comes after
https://www.notion.so/and before?v=. So forhttps://www.notion.so/tsuniiverse/1976e99d91128076b034e7379464560f?v=1976e99d911281e7bd4b000c2cbec692&pvs=4, the ID would be1976e99d91128076b034e7379464560f. - An OpenAI key for assignment length estimation or disable the node.
Manual Refreshing
Embed the production URL from the Webhook Trigger inside a "toggle list" or "toggle heading" inside Notion, then expand the heading to refresh, like so:
2-Way Sync: Assignments & Completion between Canvas LMS and Notion
This n8n workflow facilitates a two-way synchronization of assignments and their completion status between Canvas LMS and Notion. It ensures that changes in one platform are reflected in the other, streamlining task management for students or educators.
What it does
- Listens for Canvas Webhooks: The workflow is triggered by an incoming webhook from Canvas LMS, indicating a change related to assignments or submissions.
- Fetches Canvas Assignments: It makes an HTTP request to the Canvas API to retrieve assignment details, likely based on the webhook payload.
- Fetches Notion Database Entries: It queries a Notion database to get existing assignment entries, which are then compared with the Canvas data.
- Compares Datasets: The workflow uses the
Compare Datasetsnode to identify new assignments, updated assignments, or completed assignments by comparing the Canvas data with the Notion data. - Filters for New Assignments: If new assignments are found in Canvas that don't exist in Notion, they are processed.
- Creates Notion Pages for New Assignments: For each new Canvas assignment, a new page (representing the assignment) is created in the specified Notion database.
- Filters for Updated Assignments: If assignments are updated in Canvas (e.g., due date, description), these changes are identified.
- Updates Notion Pages for Assignments: The corresponding Notion pages are updated with the latest information from Canvas.
- Filters for Completed Assignments: When an assignment is marked as completed in Canvas, this status change is detected.
- Updates Notion Page Completion Status: The Notion page for the completed assignment is updated to reflect its completion status.
- Schedules Regular Sync (Optional/Placeholder): A
Schedule Triggernode is present, suggesting the possibility of a periodic sync to catch any changes not captured by webhooks or to ensure data consistency. - Handles Notion Updates (Implicit): Although not explicitly detailed in the provided JSON, the presence of a
Mergenode and multipleHTTP RequestandNotionnodes implies that changes initiated in Notion could also trigger updates back to Canvas, completing the two-way sync. TheIfnode likely directs flow based on whether the change originated from Canvas or Notion.
Prerequisites/Requirements
- n8n Instance: A running n8n instance.
- Canvas LMS Account: With API access enabled and webhook configured to send events to the n8n webhook URL.
- Notion Account: With an integration created and access granted to the relevant database(s) for assignments.
- Notion API Key: For authentication with the Notion API.
- Canvas API Token: For authentication with the Canvas LMS API.
Setup/Usage
- Import the Workflow: Import the provided JSON into your n8n instance.
- Configure Webhook:
- Activate the
Webhooknode. - Copy the webhook URL.
- In your Canvas LMS settings, configure a webhook to send assignment and submission events to this URL.
- Activate the
- Configure Credentials:
- Set up your Notion API Key credential in n8n.
- Set up your Canvas API Token credential for the
HTTP Requestnodes.
- Configure Notion Nodes:
- In the
Notionnodes, specify the Database ID where your assignments are stored. - Ensure the properties and their types in your Notion database match what the workflow expects (e.g., "Assignment Name", "Due Date", "Completion Status").
- In the
- Configure HTTP Request Nodes:
- Update the
HTTP Requestnodes with your Canvas LMS base URL and the correct API endpoints for fetching assignments and updating submission status.
- Update the
- Configure Compare Datasets and Filter Nodes:
- Adjust the key fields in the
Compare Datasetsnode to accurately match Canvas assignment IDs with Notion page IDs or unique identifiers. - Review and adjust the conditions in the
IfandFilternodes to match your specific data structures and synchronization logic.
- Adjust the key fields in the
- Activate the Workflow: Once configured, activate the workflow to start the synchronization.
- Schedule Trigger (Optional): If you intend to use the
Schedule Triggerfor periodic full syncs, configure its interval (e.g., every hour, daily).
Related Templates
Generate song lyrics and music from text prompts using OpenAI and Fal.ai Minimax
Spark your creativity instantly in any chatβturn a simple prompt like "heartbreak ballad" into original, full-length lyrics and a professional AI-generated music track, all without leaving your conversation. π What This Template Does This chat-triggered workflow harnesses AI to generate detailed, genre-matched song lyrics (at least 600 characters) from user messages, then queues them for music synthesis via Fal.ai's minimax-music model. It polls asynchronously until the track is ready, delivering lyrics and audio URL back in chat. Crafts original, structured lyrics with verses, choruses, and bridges using OpenAI Submits to Fal.ai for melody, instrumentation, and vocals aligned to the style Handles long-running generations with smart looping and status checks Returns complete song package (lyrics + audio link) for seamless sharing π§ Prerequisites n8n account (self-hosted or cloud with chat integration enabled) OpenAI account with API access for GPT models Fal.ai account for AI music generation π Required Credentials OpenAI API Setup Go to platform.openai.com β API keys (sidebar) Click "Create new secret key" β Name it (e.g., "n8n Songwriter") Copy the key and add to n8n as "OpenAI API" credential type Test by sending a simple chat completion request Fal.ai HTTP Header Auth Setup Sign up at fal.ai β Dashboard β API Keys Generate a new API key β Copy it In n8n, create "HTTP Header Auth" credential: Name="Fal.ai", Header Name="Authorization", Header Value="Key [Your API Key]" Test with a simple GET to their queue endpoint (e.g., /status) βοΈ Configuration Steps Import the workflow JSON into your n8n instance Assign OpenAI API credentials to the "OpenAI Chat Model" node Assign Fal.ai HTTP Header Auth to the "Generate Music Track", "Check Generation Status", and "Fetch Final Result" nodes Activate the workflowβchat trigger will appear in your n8n chat interface Test by messaging: "Create an upbeat pop song about road trips" π― Use Cases Content Creators: YouTubers generating custom jingles for videos on the fly, streamlining production from idea to audio export Educators: Music teachers using chat prompts to create era-specific folk tunes for classroom discussions, fostering interactive learning Gift Personalization: Friends crafting anniversary R&B tracks from shared memories via quick chats, delivering emotional audio surprises Artist Brainstorming: Songwriters prototyping hip-hop beats in real-time during sessions, accelerating collaboration and iteration β οΈ Troubleshooting Invalid JSON from AI Agent: Ensure the system prompt stresses valid JSON; test the agent standalone with a sample query Music Generation Fails (401/403): Verify Fal.ai API key has minimax-music access; check usage quotas in dashboard Status Polling Loops Indefinitely: Bump wait time to 45-60s for complex tracks; inspect fal.ai queue logs for bottlenecks Lyrics Under 600 Characters: Tweak agent prompt to enforce fuller structures like [V1][C][V2][B][C]; verify output length in executions
AI-powered code review with linting, red-marked corrections in Google Sheets & Slack
Advanced Code Review Automation (AI + Lint + Slack) Whoβs it for For software engineers, QA teams, and tech leads who want to automate intelligent code reviews with both AI-driven suggestions and rule-based linting β all managed in Google Sheets with instant Slack summaries. How it works This workflow performs a two-layer review system: Lint Check: Runs a lightweight static analysis to find common issues (e.g., use of var, console.log, unbalanced braces). AI Review: Sends valid code to Gemini AI, which provides human-like review feedback with severity classification (Critical, Major, Minor) and visual highlights (red/orange tags). Formatter: Combines lint and AI results, calculating an overall score (0β10). Aggregator: Summarizes results for quick comparison. Google Sheets Writer: Appends results to your review log. Slack Notification: Posts a concise summary (e.g., number of issues and average score) to your teamβs channel. How to set up Connect Google Sheets and Slack credentials in n8n. Replace placeholders (<YOURSPREADSHEETID>, <YOURSHEETGIDORNAME>, <YOURSLACKCHANNEL_ID>). Adjust the AI review prompt or lint rules as needed. Activate the workflow β reviews will start automatically whenever new code is added to the sheet. Requirements Google Sheets and Slack integrations enabled A configured AI node (Gemini, OpenAI, or compatible) Proper permissions to write to your target Google Sheet How to customize Add more linting rules (naming conventions, spacing, forbidden APIs) Extend the AI prompt for project-specific guidelines Customize the Slack message formatting Export analytics to a dashboard (e.g., Notion or Data Studio) Why itβs valuable This workflow brings realistic, team-oriented AI-assisted code review to n8n β combining the speed of automated linting with the nuance of human-style feedback. It saves time, improves code quality, and keeps your teamβs review history transparent and centralized.
Auto-reply & create Linear tickets from Gmail with GPT-5, gotoHuman & human review
This workflow automatically classifies every new email from your linked mailbox, drafts a personalized reply, and creates Linear tickets for bugs or feature requests. It uses a human-in-the-loop with gotoHuman and continuously improves itself by learning from approved examples. How it works The workflow triggers on every new email from your linked mailbox. Self-learning Email Classifier: an AI model categorizes the email into defined categories (e.g., Bug Report, Feature Request, Sales Opportunity, etc.). It fetches previously approved classification examples from gotoHuman to refine decisions. Self-learning Email Writer: the AI drafts a reply to the email. It learns over time by using previously approved replies from gotoHuman, with per-classification context to tailor tone and style (e.g., different style for sales vs. bug reports). Human Review in gotoHuman: review the classification and the drafted reply. Drafts can be edited or retried. Approved values are used to train the self-learning agents. Send approved Reply: the approved response is sent as a reply to the email thread. Create ticket: if the classification is Bug or Feature Request, a ticket is created by another AI agent in Linear. Human Review in gotoHuman: How to set up Most importantly, install the gotoHuman node before importing this template! (Just add the node to a blank canvas before importing) Set up credentials for gotoHuman, OpenAI, your email provider (e.g. Gmail), and Linear. In gotoHuman, select and create the pre-built review template "Support email agent" or import the ID: 6fzuCJlFYJtlu9mGYcVT. Select this template in the gotoHuman node. In the "gotoHuman: Fetch approved examples" http nodes you need to add your formId. It is the ID of the review template that you just created/imported in gotoHuman. Requirements gotoHuman (human supervision, memory for self-learning) OpenAI (classification, drafting) Gmail or your preferred email provider (for email trigger+replies) Linear (ticketing) How to customize Expand or refine the categories used by the classifier. Update the prompt to reflect your own taxonomy. Filter fetched training data from gotoHuman by reviewer so the writer adapts to their personalized tone and preferences. Add more context to the AI email writer (calendar events, FAQs, product docs) to improve reply quality.