Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/granola-webhooks-events

@0d57af8
Run it yourself

Build event-driven automations with Granola's Zapier webhook triggers. Use when creating real-time notification systems, processing meeting events, or building custom integrations that react to Granola note creation. Trigger: "granola webhooks", "granola events", "granola triggers", "granola real-time", "granola event-driven".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/granola-webhooks-events

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesimplementation.md

≈972 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Granola Webhooks & Events - Implementation Details

Event Payloads

New Note Created

{
  "event_type": "note.created",
  "timestamp": "2025-01-06T14:30:00Z",
  "data": {
    "note_id": "note_abc123",
    "meeting_title": "Sprint Planning",
    "meeting_date": "2025-01-06",
    "duration_minutes": 30,
    "attendees": [{"name": "Sarah Chen", "email": "sarah@company.com"}],
    "summary": "Discussed Q1 priorities...",
    "action_items": [{"text": "Review PRs", "assignee": "@mike", "due_date": "2025-01-08"}],
    "key_points": ["Agreed on feature freeze date"],
    "granola_url": "https://app.granola.ai/notes/note_abc123"
  }
}

Note Updated

{
  "event_type": "note.updated",
  "data": {
    "note_id": "note_abc123",
    "changes": {
      "summary": { "old": "Discussed...", "new": "Finalized..." },
      "action_items": { "added": [{"text": "New action"}], "removed": [] }
    },
    "updated_by": "user@company.com"
  }
}

Custom Webhook Endpoint (Express.js)

const express = require('express');
const app = express();
app.use(express.json());

app.post('/webhook/granola', (req, res) => {
  const event = req.body;
  console.log(`Received event: ${event.event_type}`);

  switch (event.event_type) {
    case 'note.created': handleNewNote(event.data); break;
    case 'note.updated': handleNoteUpdate(event.data); break;
  }
  res.status(200).json({ received: true });
});

async function handleNewNote(data) {
  for (const action of data.action_items) { await createTask(action); }
  await notifyTeam(data);
}

Python Webhook Handler

from flask import Flask, request, jsonify

app = Flask(__name__)

@app.route('/webhook/granola', methods=['POST'])
def granola_webhook():
    event = request.json
    if event.get('event_type') == 'note.created':
        for action in event['data'].get('action_items', []):
            create_github_issue(action)
        post_to_slack(event['data'])
    return jsonify({'status': 'ok'}), 200

Event Filtering

Zapier Filters

Filter by meeting type:
  meeting_title contains "sprint" OR "planning" OR attendees count > 3

Filter by content:
  summary contains "decision" OR action_items exists

Code-Based Filtering

const data = inputData;
if (!data.action_items || data.action_items.length === 0) return { skip: true };

const externalDomains = ['client.com', 'partner.org'];
const hasExternal = data.attendees.some(a => externalDomains.some(d => a.email.includes(d)));
if (!hasExternal) return { skip: true };

return { process: true, ...data };

Processing Patterns

Immediate Notification

Meeting Ends (T+0) -> Notes Ready (T+2 min) -> Webhook (T+2.1 min) -> Slack (T+2.2 min) Total latency: ~2-3 minutes

Batch Processing

Notes Created -> Queue -> Every 15 minutes: aggregate, generate digest, send single notification

Conditional Routing

  • If external attendee -> CRM Update
  • If action items > 3 -> Create Project
  • If duration > 60 min -> Request Summary
  • Default -> Standard Processing

Retry Logic

async function processWithRetry(data, maxRetries = 3) {
  for (let attempt = 1; attempt <= maxRetries; attempt++) {
    try {
      await processEvent(data);
      return { success: true };
    } catch (error) {
      if (attempt === maxRetries) {
        await notifyError(data, error);
        return { success: false, error };
      }
      await sleep(Math.pow(2, attempt) * 1000); // Exponential backoff
    }
  }
}

Monitoring Metrics

Metric Alert Threshold
Events/hour > 100/hr
Processing latency > 30 seconds
Error rate > 5%
Queue depth > 50

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is primarily educational, providing templates for Granola event automation. However, it contains an instructional injection pattern in the 'Examples' section that attempts to override agent logging behavior. It also processes external meeting notes, creating an attack surface for indirect prompt injection from untrusted data sources.

  • Socket2mo

    1 alert: gptSecurity

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.13.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "granola",
  "webhooks",
  "automation"
]
All 6 allowed tools
ReadWriteEditBash(curl:*)Bash(node:*)Bash(python3:*)
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/granola-webhooks-events