[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78ZEWWMH0RZ7JV92RJ1RCCR":3,"skill-same:01M78ZEWWMH0RZ7JV92RJ1RCCR":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":35,"commitSha":36,"skillDirectory":37,"forksCount":38,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M78ZEWWMH0RZ7JV92RJ1RCCR","deepgram-webhooks-events",null,"Implement Deepgram callback and webhook handling for async transcription.\nUse when implementing callback URLs, processing async transcription results,\nor handling Deepgram event notifications.\nTrigger: \"deepgram callback\", \"deepgram webhook\", \"async transcription\",\n\"deepgram events\", \"deepgram notifications\", \"deepgram async\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--deepgram-pack--deepgram-webhooks-events\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: deepgram-webhooks-events\ndescription: |\n  Implement Deepgram callback and webhook handling for async transcription.\n  Use when implementing callback URLs, processing async transcription results,\n  or handling Deepgram event notifications.\n  Trigger: \"deepgram callback\", \"deepgram webhook\", \"async transcription\",\n  \"deepgram events\", \"deepgram notifications\", \"deepgram async\".\nallowed-tools: Read, Write, Edit, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\ntags: [saas, deepgram, webhooks, transcription, async]\n---\n# Deepgram Webhooks & Callbacks\n\n## Overview\nImplement async transcription with Deepgram's callback feature. When you pass a `callback` URL, Deepgram returns a `request_id` immediately, processes audio in the background, and POSTs results to your endpoint. Supports HTTP and WebSocket callbacks with automatic retry (10 attempts, 30s intervals).\n\n## Deepgram Callback Flow\n```\n1. Client -> POST \u002Fv1\u002Flisten?callback=https:\u002F\u002Fyou.com\u002Fwebhook  (with audio)\n2. Deepgram -> 200 { request_id: \"...\" }                       (immediate)\n3. Deepgram processes audio asynchronously\n4. Deepgram -> POST https:\u002F\u002Fyou.com\u002Fwebhook                    (results)\n   Retries up to 10 times (30s delay) on non-2xx response\n```\n\n## Instructions\n\n### Step 1: Submit Async Transcription\n\n```typescript\nimport { createClient } from '@deepgram\u002Fsdk';\n\nconst deepgram = createClient(process.env.DEEPGRAM_API_KEY!);\n\nasync function submitAsync(audioUrl: string, callbackUrl: string) {\n  \u002F\u002F Deepgram sends transcription via callback URL instead of\n  \u002F\u002F holding the connection open.\n  const { result, error } = await deepgram.listen.prerecorded.transcribeUrl(\n    { url: audioUrl },\n    {\n      model: 'nova-3',\n      smart_format: true,\n      diarize: true,\n      utterances: true,\n      callback: callbackUrl,  \u002F\u002F Your HTTPS endpoint\n      \u002F\u002F callback_method: 'put',  \u002F\u002F Optional: use PUT instead of POST\n    }\n  );\n\n  if (error) throw new Error(`Submit failed: ${error.message}`);\n\n  \u002F\u002F Deepgram returns immediately with request_id\n  const requestId = result.metadata.request_id;\n  console.log(`Submitted. Request ID: ${requestId}`);\n  console.log(`Results will be POSTed to: ${callbackUrl}`);\n  return requestId;\n}\n\n\u002F\u002F Also works with direct curl:\n\u002F\u002F curl -X POST 'https:\u002F\u002Fapi.deepgram.com\u002Fv1\u002Flisten?model=nova-3&callback=https:\u002F\u002Fyou.com\u002Fwebhook' \\\n\u002F\u002F   -H \"Authorization: Token $DEEPGRAM_API_KEY\" \\\n\u002F\u002F   -H \"Content-Type: application\u002Fjson\" \\\n\u002F\u002F   -d '{\"url\":\"https:\u002F\u002Fexample.com\u002Faudio.wav\"}'\n```\n\n### Step 2: Callback Server\n\n```typescript\nimport express from 'express';\nimport crypto from 'crypto';\n\nconst app = express();\n\n\u002F\u002F IMPORTANT: Use raw body for HMAC signature verification\napp.use('\u002Fwebhooks\u002Fdeepgram', express.raw({ type: 'application\u002Fjson', limit: '50mb' }));\n\napp.post('\u002Fwebhooks\u002Fdeepgram', async (req, res) => {\n  try {\n    \u002F\u002F 1. Verify signature (if webhook secret configured)\n    const signature = req.headers['x-deepgram-signature'] as string;\n    if (process.env.DEEPGRAM_WEBHOOK_SECRET && signature) {\n      const expected = crypto\n        .createHmac('sha256', process.env.DEEPGRAM_WEBHOOK_SECRET)\n        .update(req.body)\n        .digest('hex');\n\n      \u002F\u002F Timing-safe comparison to prevent timing attacks\n      if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {\n        console.error('Invalid webhook signature');\n        return res.status(401).json({ error: 'Invalid signature' });\n      }\n    }\n\n    \u002F\u002F 2. Parse result\n    const result = JSON.parse(req.body.toString());\n    const requestId = result.metadata?.request_id;\n    const transcript = result.results?.channels?.[0]?.alternatives?.[0]?.transcript;\n    const duration = result.metadata?.duration;\n\n    console.log(`Callback received: ${requestId}`);\n    console.log(`Duration: ${duration}s`);\n    console.log(`Transcript: ${transcript?.substring(0, 200)}...`);\n\n    \u002F\u002F 3. Process and store\n    await processTranscriptionResult(requestId, result);\n\n    \u002F\u002F 4. Return 200 — Deepgram retries on non-2xx\n    res.status(200).json({ received: true, request_id: requestId });\n  } catch (err: any) {\n    console.error('Callback processing error:', err.message);\n    \u002F\u002F Return 500 to trigger Deepgram retry\n    res.status(500).json({ error: 'Processing failed' });\n  }\n});\n\nasync function processTranscriptionResult(requestId: string, result: any) {\n  const transcript = result.results.channels[0].alternatives[0];\n\n  \u002F\u002F Store transcript\n  const record = {\n    requestId,\n    transcript: transcript.transcript,\n    confidence: transcript.confidence,\n    duration: result.metadata.duration,\n    words: transcript.words?.length ?? 0,\n    utterances: result.results.utterances?.map((u: any) => ({\n      speaker: u.speaker,\n      text: u.transcript,\n      start: u.start,\n      end: u.end,\n    })),\n    processedAt: new Date().toISOString(),\n  };\n\n  \u002F\u002F Save to database \u002F notify clients \u002F trigger downstream\n  console.log('Processed:', JSON.stringify(record, null, 2));\n  return record;\n}\n```\n\n### Step 3: Job Tracking with Redis\n\n```typescript\nimport Redis from 'ioredis';\n\nconst redis = new Redis(process.env.REDIS_URL ?? 'redis:\u002F\u002Flocalhost:6379');\n\nclass TranscriptionJobTracker {\n  async submit(requestId: string, metadata: Record\u003Cstring, any>) {\n    await redis.hset(`job:${requestId}`, {\n      status: 'processing',\n      submittedAt: new Date().toISOString(),\n      ...metadata,\n    });\n    \u002F\u002F Auto-expire after 24 hours\n    await redis.expire(`job:${requestId}`, 86400);\n  }\n\n  async complete(requestId: string, result: any) {\n    await redis.hset(`job:${requestId}`, {\n      status: 'completed',\n      completedAt: new Date().toISOString(),\n      transcript: result.results.channels[0].alternatives[0].transcript,\n      duration: result.metadata.duration,\n    });\n    \u002F\u002F Publish for real-time notification\n    await redis.publish('transcription:complete', JSON.stringify({\n      requestId,\n      duration: result.metadata.duration,\n    }));\n  }\n\n  async getStatus(requestId: string) {\n    return redis.hgetall(`job:${requestId}`);\n  }\n}\n\n\u002F\u002F Client-facing status endpoint\napp.get('\u002Fapi\u002Ftranscription\u002F:requestId', async (req, res) => {\n  const tracker = new TranscriptionJobTracker();\n  const status = await tracker.getStatus(req.params.requestId);\n\n  if (!status || Object.keys(status).length === 0) {\n    return res.status(404).json({ error: 'Job not found' });\n  }\n  res.json(status);\n});\n```\n\n### Step 4: Client SDK with Submit\u002FPoll\u002FWait\n\n```typescript\nclass AsyncTranscriptionClient {\n  private deepgram: ReturnType\u003Ctypeof createClient>;\n  private baseUrl: string;\n\n  constructor(apiKey: string, serverBaseUrl: string) {\n    this.deepgram = createClient(apiKey);\n    this.baseUrl = serverBaseUrl;\n  }\n\n  async submit(audioUrl: string): Promise\u003Cstring> {\n    const callbackUrl = `${this.baseUrl}\u002Fwebhooks\u002Fdeepgram`;\n    const { result, error } = await this.deepgram.listen.prerecorded.transcribeUrl(\n      { url: audioUrl },\n      { model: 'nova-3', smart_format: true, diarize: true, callback: callbackUrl }\n    );\n    if (error) throw error;\n    return result.metadata.request_id;\n  }\n\n  async poll(requestId: string): Promise\u003Cany> {\n    const res = await fetch(`${this.baseUrl}\u002Fapi\u002Ftranscription\u002F${requestId}`);\n    if (res.status === 404) return null;\n    return res.json();\n  }\n\n  async waitForResult(requestId: string, timeoutMs = 300000): Promise\u003Cany> {\n    const start = Date.now();\n    while (Date.now() - start \u003C timeoutMs) {\n      const status = await this.poll(requestId);\n      if (status?.status === 'completed') return status;\n      if (status?.status === 'failed') throw new Error('Transcription failed');\n      await new Promise(r => setTimeout(r, 2000));  \u002F\u002F Poll every 2s\n    }\n    throw new Error('Timeout waiting for transcription');\n  }\n}\n\n\u002F\u002F Usage:\nconst client = new AsyncTranscriptionClient(\n  process.env.DEEPGRAM_API_KEY!,\n  'https:\u002F\u002Fyour-server.com'\n);\nconst requestId = await client.submit('https:\u002F\u002Fexample.com\u002Flong-recording.wav');\nconst result = await client.waitForResult(requestId);\n```\n\n### Step 5: Local Testing with ngrok\n\n```bash\n# Expose local callback server to Deepgram\nngrok http 3000\n\n# Use the ngrok URL as callback\ncurl -X POST 'https:\u002F\u002Fapi.deepgram.com\u002Fv1\u002Flisten?model=nova-3&callback=https:\u002F\u002Fabc123.ngrok.io\u002Fwebhooks\u002Fdeepgram' \\\n  -H \"Authorization: Token $DEEPGRAM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fstatic.deepgram.com\u002Fexamples\u002Fnasa-podcast.wav\"}'\n```\n\n### Step 6: Idempotent Processing\n\n```typescript\n\u002F\u002F Deepgram retries callbacks — ensure idempotent processing\nconst processedRequests = new Set\u003Cstring>();\n\napp.post('\u002Fwebhooks\u002Fdeepgram', async (req, res) => {\n  const result = JSON.parse(req.body.toString());\n  const requestId = result.metadata?.request_id;\n\n  \u002F\u002F Skip if already processed\n  if (processedRequests.has(requestId)) {\n    console.log(`Duplicate callback for ${requestId} — skipping`);\n    return res.status(200).json({ received: true, duplicate: true });\n  }\n\n  processedRequests.add(requestId);\n  \u002F\u002F In production, use Redis SET with NX for distributed dedup:\n  \u002F\u002F const isNew = await redis.set(`processed:${requestId}`, '1', 'NX', 'EX', 86400);\n  \u002F\u002F if (!isNew) return res.status(200).json({ duplicate: true });\n\n  await processTranscriptionResult(requestId, result);\n  res.status(200).json({ received: true });\n});\n```\n\n## Output\n- Async transcription submission with callback URL\n- Callback server with signature verification\n- Redis-backed job tracking with pub\u002Fsub notifications\n- Client SDK with submit\u002Fpoll\u002Fwait pattern\n- Idempotent callback processing\n- Local testing setup with ngrok\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Callback not received | Endpoint unreachable | Check HTTPS, firewall, use ngrok for local |\n| Duplicate callbacks | Deepgram retry after slow response | Implement idempotency with request_id |\n| Invalid signature | Wrong webhook secret | Verify `DEEPGRAM_WEBHOOK_SECRET` matches Console |\n| Processing timeout | Slow downstream | Return 200 immediately, process async |\n| Large payload | Long audio transcript | Increase `express.raw` limit |\n\n## Resources\n- [Callback Feature](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fcallback)\n- [Callback Not Received](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fpayload-too-large)\n- [STT Callback API](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fusing-callbacks-to-return-transcripts-to-your-server)\n","# Deepgram Webhooks & Callbacks\n\n## Overview\nImplement async transcription with Deepgram's callback feature. When you pass a `callback` URL, Deepgram returns a `request_id` immediately, processes audio in the background, and POSTs results to your endpoint. Supports HTTP and WebSocket callbacks with automatic retry (10 attempts, 30s intervals).\n\n## Deepgram Callback Flow\n```\n1. Client -> POST \u002Fv1\u002Flisten?callback=https:\u002F\u002Fyou.com\u002Fwebhook  (with audio)\n2. Deepgram -> 200 { request_id: \"...\" }                       (immediate)\n3. Deepgram processes audio asynchronously\n4. Deepgram -> POST https:\u002F\u002Fyou.com\u002Fwebhook                    (results)\n   Retries up to 10 times (30s delay) on non-2xx response\n```\n\n## Instructions\n\n### Step 1: Submit Async Transcription\n\n```typescript\nimport { createClient } from '@deepgram\u002Fsdk';\n\nconst deepgram = createClient(process.env.DEEPGRAM_API_KEY!);\n\nasync function submitAsync(audioUrl: string, callbackUrl: string) {\n  \u002F\u002F Deepgram sends transcription via callback URL instead of\n  \u002F\u002F holding the connection open.\n  const { result, error } = await deepgram.listen.prerecorded.transcribeUrl(\n    { url: audioUrl },\n    {\n      model: 'nova-3',\n      smart_format: true,\n      diarize: true,\n      utterances: true,\n      callback: callbackUrl,  \u002F\u002F Your HTTPS endpoint\n      \u002F\u002F callback_method: 'put',  \u002F\u002F Optional: use PUT instead of POST\n    }\n  );\n\n  if (error) throw new Error(`Submit failed: ${error.message}`);\n\n  \u002F\u002F Deepgram returns immediately with request_id\n  const requestId = result.metadata.request_id;\n  console.log(`Submitted. Request ID: ${requestId}`);\n  console.log(`Results will be POSTed to: ${callbackUrl}`);\n  return requestId;\n}\n\n\u002F\u002F Also works with direct curl:\n\u002F\u002F curl -X POST 'https:\u002F\u002Fapi.deepgram.com\u002Fv1\u002Flisten?model=nova-3&callback=https:\u002F\u002Fyou.com\u002Fwebhook' \\\n\u002F\u002F   -H \"Authorization: Token $DEEPGRAM_API_KEY\" \\\n\u002F\u002F   -H \"Content-Type: application\u002Fjson\" \\\n\u002F\u002F   -d '{\"url\":\"https:\u002F\u002Fexample.com\u002Faudio.wav\"}'\n```\n\n### Step 2: Callback Server\n\n```typescript\nimport express from 'express';\nimport crypto from 'crypto';\n\nconst app = express();\n\n\u002F\u002F IMPORTANT: Use raw body for HMAC signature verification\napp.use('\u002Fwebhooks\u002Fdeepgram', express.raw({ type: 'application\u002Fjson', limit: '50mb' }));\n\napp.post('\u002Fwebhooks\u002Fdeepgram', async (req, res) => {\n  try {\n    \u002F\u002F 1. Verify signature (if webhook secret configured)\n    const signature = req.headers['x-deepgram-signature'] as string;\n    if (process.env.DEEPGRAM_WEBHOOK_SECRET && signature) {\n      const expected = crypto\n        .createHmac('sha256', process.env.DEEPGRAM_WEBHOOK_SECRET)\n        .update(req.body)\n        .digest('hex');\n\n      \u002F\u002F Timing-safe comparison to prevent timing attacks\n      if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {\n        console.error('Invalid webhook signature');\n        return res.status(401).json({ error: 'Invalid signature' });\n      }\n    }\n\n    \u002F\u002F 2. Parse result\n    const result = JSON.parse(req.body.toString());\n    const requestId = result.metadata?.request_id;\n    const transcript = result.results?.channels?.[0]?.alternatives?.[0]?.transcript;\n    const duration = result.metadata?.duration;\n\n    console.log(`Callback received: ${requestId}`);\n    console.log(`Duration: ${duration}s`);\n    console.log(`Transcript: ${transcript?.substring(0, 200)}...`);\n\n    \u002F\u002F 3. Process and store\n    await processTranscriptionResult(requestId, result);\n\n    \u002F\u002F 4. Return 200 — Deepgram retries on non-2xx\n    res.status(200).json({ received: true, request_id: requestId });\n  } catch (err: any) {\n    console.error('Callback processing error:', err.message);\n    \u002F\u002F Return 500 to trigger Deepgram retry\n    res.status(500).json({ error: 'Processing failed' });\n  }\n});\n\nasync function processTranscriptionResult(requestId: string, result: any) {\n  const transcript = result.results.channels[0].alternatives[0];\n\n  \u002F\u002F Store transcript\n  const record = {\n    requestId,\n    transcript: transcript.transcript,\n    confidence: transcript.confidence,\n    duration: result.metadata.duration,\n    words: transcript.words?.length ?? 0,\n    utterances: result.results.utterances?.map((u: any) => ({\n      speaker: u.speaker,\n      text: u.transcript,\n      start: u.start,\n      end: u.end,\n    })),\n    processedAt: new Date().toISOString(),\n  };\n\n  \u002F\u002F Save to database \u002F notify clients \u002F trigger downstream\n  console.log('Processed:', JSON.stringify(record, null, 2));\n  return record;\n}\n```\n\n### Step 3: Job Tracking with Redis\n\n```typescript\nimport Redis from 'ioredis';\n\nconst redis = new Redis(process.env.REDIS_URL ?? 'redis:\u002F\u002Flocalhost:6379');\n\nclass TranscriptionJobTracker {\n  async submit(requestId: string, metadata: Record\u003Cstring, any>) {\n    await redis.hset(`job:${requestId}`, {\n      status: 'processing',\n      submittedAt: new Date().toISOString(),\n      ...metadata,\n    });\n    \u002F\u002F Auto-expire after 24 hours\n    await redis.expire(`job:${requestId}`, 86400);\n  }\n\n  async complete(requestId: string, result: any) {\n    await redis.hset(`job:${requestId}`, {\n      status: 'completed',\n      completedAt: new Date().toISOString(),\n      transcript: result.results.channels[0].alternatives[0].transcript,\n      duration: result.metadata.duration,\n    });\n    \u002F\u002F Publish for real-time notification\n    await redis.publish('transcription:complete', JSON.stringify({\n      requestId,\n      duration: result.metadata.duration,\n    }));\n  }\n\n  async getStatus(requestId: string) {\n    return redis.hgetall(`job:${requestId}`);\n  }\n}\n\n\u002F\u002F Client-facing status endpoint\napp.get('\u002Fapi\u002Ftranscription\u002F:requestId', async (req, res) => {\n  const tracker = new TranscriptionJobTracker();\n  const status = await tracker.getStatus(req.params.requestId);\n\n  if (!status || Object.keys(status).length === 0) {\n    return res.status(404).json({ error: 'Job not found' });\n  }\n  res.json(status);\n});\n```\n\n### Step 4: Client SDK with Submit\u002FPoll\u002FWait\n\n```typescript\nclass AsyncTranscriptionClient {\n  private deepgram: ReturnType\u003Ctypeof createClient>;\n  private baseUrl: string;\n\n  constructor(apiKey: string, serverBaseUrl: string) {\n    this.deepgram = createClient(apiKey);\n    this.baseUrl = serverBaseUrl;\n  }\n\n  async submit(audioUrl: string): Promise\u003Cstring> {\n    const callbackUrl = `${this.baseUrl}\u002Fwebhooks\u002Fdeepgram`;\n    const { result, error } = await this.deepgram.listen.prerecorded.transcribeUrl(\n      { url: audioUrl },\n      { model: 'nova-3', smart_format: true, diarize: true, callback: callbackUrl }\n    );\n    if (error) throw error;\n    return result.metadata.request_id;\n  }\n\n  async poll(requestId: string): Promise\u003Cany> {\n    const res = await fetch(`${this.baseUrl}\u002Fapi\u002Ftranscription\u002F${requestId}`);\n    if (res.status === 404) return null;\n    return res.json();\n  }\n\n  async waitForResult(requestId: string, timeoutMs = 300000): Promise\u003Cany> {\n    const start = Date.now();\n    while (Date.now() - start \u003C timeoutMs) {\n      const status = await this.poll(requestId);\n      if (status?.status === 'completed') return status;\n      if (status?.status === 'failed') throw new Error('Transcription failed');\n      await new Promise(r => setTimeout(r, 2000));  \u002F\u002F Poll every 2s\n    }\n    throw new Error('Timeout waiting for transcription');\n  }\n}\n\n\u002F\u002F Usage:\nconst client = new AsyncTranscriptionClient(\n  process.env.DEEPGRAM_API_KEY!,\n  'https:\u002F\u002Fyour-server.com'\n);\nconst requestId = await client.submit('https:\u002F\u002Fexample.com\u002Flong-recording.wav');\nconst result = await client.waitForResult(requestId);\n```\n\n### Step 5: Local Testing with ngrok\n\n```bash\n# Expose local callback server to Deepgram\nngrok http 3000\n\n# Use the ngrok URL as callback\ncurl -X POST 'https:\u002F\u002Fapi.deepgram.com\u002Fv1\u002Flisten?model=nova-3&callback=https:\u002F\u002Fabc123.ngrok.io\u002Fwebhooks\u002Fdeepgram' \\\n  -H \"Authorization: Token $DEEPGRAM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"url\":\"https:\u002F\u002Fstatic.deepgram.com\u002Fexamples\u002Fnasa-podcast.wav\"}'\n```\n\n### Step 6: Idempotent Processing\n\n```typescript\n\u002F\u002F Deepgram retries callbacks — ensure idempotent processing\nconst processedRequests = new Set\u003Cstring>();\n\napp.post('\u002Fwebhooks\u002Fdeepgram', async (req, res) => {\n  const result = JSON.parse(req.body.toString());\n  const requestId = result.metadata?.request_id;\n\n  \u002F\u002F Skip if already processed\n  if (processedRequests.has(requestId)) {\n    console.log(`Duplicate callback for ${requestId} — skipping`);\n    return res.status(200).json({ received: true, duplicate: true });\n  }\n\n  processedRequests.add(requestId);\n  \u002F\u002F In production, use Redis SET with NX for distributed dedup:\n  \u002F\u002F const isNew = await redis.set(`processed:${requestId}`, '1', 'NX', 'EX', 86400);\n  \u002F\u002F if (!isNew) return res.status(200).json({ duplicate: true });\n\n  await processTranscriptionResult(requestId, result);\n  res.status(200).json({ received: true });\n});\n```\n\n## Output\n- Async transcription submission with callback URL\n- Callback server with signature verification\n- Redis-backed job tracking with pub\u002Fsub notifications\n- Client SDK with submit\u002Fpoll\u002Fwait pattern\n- Idempotent callback processing\n- Local testing setup with ngrok\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Callback not received | Endpoint unreachable | Check HTTPS, firewall, use ngrok for local |\n| Duplicate callbacks | Deepgram retry after slow response | Implement idempotency with request_id |\n| Invalid signature | Wrong webhook secret | Verify `DEEPGRAM_WEBHOOK_SECRET` matches Console |\n| Processing timeout | Slow downstream | Return 200 immediately, process async |\n| Large payload | Long audio transcript | Increase `express.raw` limit |\n\n## Resources\n- [Callback Feature](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fcallback)\n- [Callback Not Received](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fpayload-too-large)\n- [STT Callback API](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fusing-callbacks-to-return-transcripts-to-your-server)\n",{"name":5,"tags":24,"author":30,"license":15,"version":31,"description":32,"allowed-tools":33,"compatible-with":34},[25,26,27,28,29],"saas","deepgram","webhooks","transcription","async","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Deepgram callback and webhook handling for async transcription.\nUse when implementing callback URLs, processing async transcription results,\nor handling Deepgram event notifications.\nTrigger: \"deepgram callback\", \"deepgram webhook\", \"async transcription\",\n\"deepgram events\", \"deepgram notifications\", \"deepgram async\".\n","Read, Write, Edit, Bash(curl:*)","claude-code, codex, openclaw","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--deepgram-pack--deepgram-webhooks-events",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill deepgram-webhooks-events",{"tool":50,"command":51},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill deepgram-webhooks-events",{"tool":53,"command":54},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill deepgram-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--deepgram-pack--deepgram-webhooks-events\u002FSKILL.md",true,[],[59,66,73,80,87,95],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]