Webhook templates

Format the notification payloads.

For webhook delivery channels, you can configure a template to transform the notification message before delivery. Ocelloids uses handlebars external link under the hood to evaluate the templates.

Example

A simple example template applied to an XCM received message emitted by the XCM Monitor would look like this:

XCM Payload Template
Received XCM with hash {{waypoint.messageHash}} on chain {{waypoint.chainId}}.
Sent from chain {{origin.chainId}} by {{sender.signer.id}}.

Hint

The payload structure depends on the agent you are subscribing to. For the example, you can see the payload structure in the XCM Monitor documentation .