Webhook integration

From aj-geddes/useful-ai-prompts · View interactive version

Webhook integration is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Implement secure webhook systems for event-driven integrations, including signature verification, retry logic, and delivery guarantees. Use when building third-party integrations, event notifications, or real-time data synchronization.

How to use this skill

Skill file

Webhook Integration

Table of Contents

Overview

Implement robust webhook systems for event-driven architectures, enabling real-time communication between services and third-party integrations.

When to Use

Quick Start

Minimal working example:

import crypto from "crypto";
import axios from "axios";

interface WebhookEvent {
  id: string;
  type: string;
  timestamp: number;
  data: any;
}

interface WebhookEndpoint {
  url: string;
  secret: string;
  events: string[];
  active: boolean;
}

interface DeliveryAttempt {
  attemptNumber: number;
  timestamp: number;
  statusCode?: number;
  error?: string;
  duration: number;
}

// ... (see reference guides for full implementation)

Reference Guides

Detailed implementations in the references/ directory:

| Guide | Contents |

|---|---|

| Webhook Sender (TypeScript) | Webhook Sender (TypeScript) |

| Webhook Receiver (Express) | Webhook Receiver (Express) |

| Webhook Queue with Bull | Webhook Queue with Bull |

| Webhook Testing Utilities | Webhook Testing Utilities |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.