> ## Documentation Index
> Fetch the complete documentation index at: https://bobprince-78964c2b.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AI overview

> AI-powered payload inspection, code generation, and failure diagnosis

Hookdrop's AI features turn raw webhook payloads into something you can immediately act on. Instead of decoding JSON by hand or writing boilerplate handler code from scratch, let the AI do the heavy lifting.

<Note>
  AI features require a Starter plan or above. [Upgrade your plan](/billing/plans) to
  unlock them.
</Note>

## What the AI can do

<CardGroup cols={2}>
  <Card title="Explain payload" icon="message-lines" href="/ai/explain">
    Get a plain English summary of what a webhook event means — who triggered it,
    what changed, and what it implies for your application.
  </Card>

  <Card title="Diagnose failure" icon="stethoscope" href="/ai/explain#diagnose-failure">
    When a delivery fails, get an AI explanation of exactly why it failed and
    step-by-step instructions to fix it.
  </Card>

  <Card title="Generate TypeScript interface" icon="brackets-curly" href="/ai/code-generation">
    Hookdrop inspects the payload shape and generates a fully typed TypeScript
    interface — no manual typing needed.
  </Card>

  <Card title="Generate handler code" icon="code" href="/ai/code-generation#generate-handler-code">
    Generate a complete, ready-to-paste handler function in your language and
    framework of choice directly from the payload.
  </Card>
</CardGroup>

## How to access AI features

You can use AI features in two ways:

* **Dashboard** — open any event in the Hookdrop dashboard and click **Explain**, **Diagnose**, **Generate types**, or **Generate handler** from the event detail panel.
* **API** — call the AI endpoints directly and integrate the results into your own tooling.

All AI endpoints sit under the event resource and require authentication:

```
/api/endpoints/:id/events/:eventId/ai/explain
/api/endpoints/:id/events/:eventId/ai/diagnose
/api/endpoints/:id/events/:eventId/ai/schema
/api/endpoints/:id/events/:eventId/ai/handler
```

<Tip>
  Use the API endpoints to build your own internal tooling — for example,
  automatically posting AI explanations to a Slack channel whenever a new
  webhook arrives.
</Tip>
