> ## Documentation Index
> Fetch the complete documentation index at: https://docs.n8negri.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Event Rules

> Trigger renders automatically from external events

**Event rules** automate render generation in response to events from external systems (Stripe, webhooks, schedule triggers).

## Anatomy

| Field         | Description                                          |
| ------------- | ---------------------------------------------------- |
| `id`          | Rule identifier                                      |
| `name`        | Human-readable label                                 |
| `event_type`  | Source event (e.g. `stripe.checkout.completed`)      |
| `template_id` | Template to render when the rule fires               |
| `mapping`     | JSON path expressions: event payload → modifications |
| `enabled`     | Whether the rule is active                           |

## Example: render certificate on payment

```json theme={null}
{
  "name": "Order confirmation card",
  "event_type": "stripe.checkout.completed",
  "template_id": "tpl_receipt",
  "mapping": {
    "customer": "$.data.object.customer_details.name",
    "amount": "$.data.object.amount_total"
  }
}
```

When the configured webhook receives a matching event, Imtegrate evaluates the JSONPath mapping and triggers a render. The result URL is sent to the rule's destination webhook.

See the [API reference for event-rules](/api-reference/openapi#tag/event-rules).
