Opik experiment finished notifications on your phone.

Get a push notification with the feedback scores when an Opik experiment finishes.

experiment:finishedAIMonitoring
How it works

Three steps to your first push

STEP 01

Install the recipe

One click in Studio gives you a personal webhook URL.

STEP 02

Paste your URL into Opik

Add it as a webhook for Experiment finished.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the Opik experiment finished webhook

  1. Click Install in Studio and sign in. The recipe is added to your account and you get a personal webhook URL.
  2. In Opik, open Production > Alerts and create an alert with destination type General.
  3. Paste your webhook URL as the webhook URL and select the Experiment finished events.https://••••••••/•••••••• your personal URL, shown after install
  4. Use Test trigger to send the example payload, then save.
  5. In Opik, open **Production → Alerts**, create an alert with destination type **General**, paste the URL above, and select the `experiment:finished` event. Experiment events are workspace-wide.
  6. Opik can send a secret token as `Authorization: Bearer …`, but JustPush doesn't check it yet, so keep your endpoint URL private.
The code

What runs when the webhook arrives

Studio calls handleRequest(request) with the incoming webhook and sends the message it returns. It's yours after install; change anything.

transform.js
1// Opik → experiment finished
2// Fires when an Opik experiment completes, if an alert with a General webhook destination
3// subscribes to "experiment:finished". Shows the experiment's feedback scores.
4// Docs: https://www.comet.com/docs/opik/production/alerts
5
6function handleRequest(request) {
7 const body = request.body || {}
8
9 // Guard: only experiment:finished events.
10 if (body.eventType !== "experiment:finished") {
11 console.log(`Ignoring Opik "${body.eventType ?? "unknown"}" webhook`)
12 return null
13 }
14
15 const meta = body.payload?.metadata
16 const experiments = Array.isArray(meta) ? meta : meta ? [meta] : []
17 const first = experiments[0] ?? {}
18 const scores = Array.isArray(first.feedback_scores)
19 ? first.feedback_scores
20 .filter((score) => score?.name && Number.isFinite(Number(score.value)))
21 .slice(0, 4)
22 .map((score) => `${score.name} ${Math.round(Number(score.value) * 100) / 100}`)
23 : []
24 const more = experiments.length > 1 ? ` (+${experiments.length - 1} more)` : ""
25
26 return {
27 title: `🧪 Experiment finished${first.name ? `: ${first.name}` : ""}`,
28 message: (scores.join(" · ") || "No feedback scores yet") + more,
29 topic: "Opik",
30 priority: -1, // Low — results are ready whenever you are
31 }
32}
Payload

The Opik experiment:finished webhook

This is what Opik sends to your URL for experiment finished. It is a sample, trimmed to the fields recipes use.

experiment:finished · sample.json
1{
2 "id": "webhook-event-8a4b",
3 "alertId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
4 "payload": {
5 "metadata": [
6 {
7 "id": "exp-uuid",
8 "name": "gpt-4.1-vs-baseline",
9 "created_by": "[email protected]",
10 "dataset_id": "dataset-uuid",
11 "feedback_scores": [
12 {
13 "name": "accuracy",
14 "value": 0.92
15 },
16 {
17 "name": "hallucination",
18 "value": 0.034
19 }
20 ]
21 }
22 ],
23 "alertName": "Experiments",
24 "eventType": "experiment:finished",
25 "eventCount": 1
26 },
27 "alertName": "Experiments",
28 "createdAt": "2026-09-29T10:30:00Z",
29 "eventType": "experiment:finished",
30 "workspaceId": "workspace-uuid"
31}
FAQ

Opik experiment finished notifications: questions

Does this work on iPhone and Android?

Yes. Install the JustPush app from the App Store or Google Play and sign in. Every phone signed in to your account gets the notification.

Do I need to write code?

No. Install the recipe in Studio, paste your webhook URL into Opik and you are done. The code is there if you want to change the text, the sound or the buttons.

Can I change what the notification says?

Yes. After install the recipe's code is yours. Edit it in Studio and test it against the sample payload before you save.

What does it cost?

JustPush is free for 30 days. After that it's $19.99 a year, or $39.99 once. There is no extra charge for recipes.

Ready when you are

Opik on your phone in two minutes.

Install the recipe, paste one URL, done. Free for 30 days, no credit card required.