Connections
OpenRouter
Slack alerts for failed OpenRouter generations, with model, tokens, cost and duration, from OpenRouter Broadcast traces.
The OpenRouter preset receives Broadcast traces (OTLP JSON) from a webhook destination. Failed generations become Slack alerts with the model, provider, tokens, cost and duration; everything else is logged. AI events carry no customer message, so this preset never creates conversations.
Setup
About two minutes in OpenRouter. Failed generations alert Slack; the rest is logged. In Channlize, Connections → New connection → OpenRouter. The setup screen shows the connection URL (the Webhook URL) above these steps, with the secret fields and buttons at the step that needs them.
- Generate the webhook token in Channlize (or use your own: at least 24 characters, no spaces, e.g.
openssl rand -hex 32). A token made for this webhook, not your OpenRouter API key. - Add a Broadcast webhook destination: Settings → Observability → Enable Broadcast → Webhook (Open OpenRouter observability). Turn on Enable Broadcast, then click the edit icon next to Webhook.
- Paste the URL and the header: method POST, and the custom header the setup screen shows, with your token filled in:
{"Authorization": "Bearer <token>"}. - Turn on Privacy Mode and test: Privacy Mode keeps prompts and completions out of the traces. Click Test Connection: the destination only saves once the test passes, so save the token in Channlize first.
First event: the screen shows Waiting for the first event… until one arrives. Make an API request through OpenRouter. The Test Connection probe (an empty payload with X-Test-Connection: true) is authenticated and answered 200, but nothing is stored and it doesn't count as the first event. Then click Done to keep the connection. Cancel deletes the draft and its URL.
Signature
OpenRouter doesn't sign Broadcast deliveries. Instead, every request must carry Authorization: Bearer <secret> with the connection secret, compared in constant time. A request without it, or with another value, gets a 401.
Default mappings
Each span in a batch becomes its own request-log entry, deduplicated on traceId:spanId (also when a retry groups spans differently).
| Event | Action |
|---|---|
generation.failed (the span has an OTLP error status) | Alert |
generation.completed | Log |
span.failed, span.completed (provider attempts, which OpenRouter may have recovered from by routing elsewhere) | Log |
The default alert shows the event, model, provider, tokens in and out, cost, duration and trace ID. Template fields: {{type}}, {{model}}, {{provider}}, {{input_tokens}}, {{output_tokens}}, {{cost}} (USD, as reported by OpenRouter), {{duration_ms}}, {{trace_id}} and {{span_id}}. A metric OpenRouter didn't report is empty.
Privacy
Only the IDs and metrics above are kept. Prompts, completions, status messages, user and session IDs and custom metadata are dropped before anything is stored, even with Privacy Mode off. Malformed JSON is rejected without storing a preview.
Limits
Up to 5 MB and 100 spans per delivery (a trace can carry prompts and completions when Privacy Mode is off). If queuing fails partway through a batch, Channlize answers 503 and a resend resumes at the span that failed.
Two-way replies
Not available: OpenRouter traces never open conversations.