OpenAI background response finished notifications on your phone.

Get a push notification when an OpenAI background response completes, fails, stops early or is cancelled, louder when it fails.

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 OpenAI

Add it as a webhook for response.completed, response.failed, response.incomplete and response.cancelled.

STEP 03

Get a push on your phone

With the text, sound and buttons from the recipe.

Setup

How to set up the OpenAI response.completed, response.failed, response.incomplete and response.cancelled 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 the OpenAI platform, open Settings > Project > Webhooks (platform.openai.com/settings/project/webhooks) and click Create.
  3. Give the endpoint a name and paste your webhook URL as the URL.https://••••••••/•••••••• your personal URL, shown after install
  4. Tick the response.completed, response.failed, response.incomplete and response.cancelled event types and save. Webhooks are per project, so repeat this for each project you want pushes from.
  5. Tick **response.completed**, **response.failed**, **response.incomplete** and **response.cancelled** (or only the ones you want). These fire for responses created with `"background": true`.
  6. OpenAI's webhook only carries the response ID, not the output, so the push says which response finished and links to it in the dashboard logs. Fetch the output yourself with `GET /v1/responses/{id}`.
  7. Only want to hear about problems? Add `?failures=1` to the URL and completed or cancelled responses stay quiet:
  8. ```
  9. your webhook URL?failures=1
  10. ```
  11. The **Send test event** option on the webhook page sends a sample event with a made-up ID (such as `resp_abc123`), so the button on that push won't open anything.
  12. OpenAI signs every delivery (Standard Webhooks: `webhook-id`, `webhook-timestamp`, `webhook-signature`), but JustPush doesn't check that signature yet, so keep your endpoint URL private. You don't need the signing secret OpenAI shows you.
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// OpenAI → response.completed / response.failed / response.incomplete / response.cancelled
2// Fires when a background-mode response (Responses API with "background": true) finishes.
3// Docs: https://developers.openai.com/api/reference/resources/webhooks
4//
5// OpenAI only sends the response ID (data.id), not the output. The push tells you it's done and
6// links to the response in the dashboard logs.
7
8// Each event, how to word it, and how loud to be.
9const EVENTS = {
10 "response.completed": {
11 title: "✅ Background response ready",
12 text: "finished and is ready to fetch",
13 priority: -1, // Low: good news you were waiting for
14 failure: false,
15 },
16 "response.incomplete": {
17 title: "⚠️ Background response incomplete",
18 text: "stopped early (for example at max_output_tokens)",
19 priority: 0, // Normal: there is output, but not all of it
20 failure: true,
21 },
22 "response.failed": {
23 title: "❌ Background response failed",
24 text: "failed. Check the error in the logs",
25 priority: 1, // High: the job you queued didn't produce anything
26 failure: true,
27 },
28 "response.cancelled": {
29 title: "🚫 Background response cancelled",
30 text: "was cancelled",
31 priority: -1, // Low: someone cancelled it on purpose
32 failure: false,
33 },
34}
35
36// Table lookup that ignores inherited names such as "toString".
37function pick(table, key, fallback) {
38 return typeof key === "string" && Object.prototype.hasOwnProperty.call(table, key) ? table[key] : fallback
39}
40
41// Only link to real http(s) URLs.
42function link(url, cta) {
43 return typeof url === "string" && /^https?:\/\//.test(url) ? [{ cta, url }] : []
44}
45
46// OpenAI IDs look like "resp_abc123"; anything else isn't used in text or links.
47function cleanId(value) {
48 return typeof value === "string" && /^[A-Za-z0-9_-]{1,128}$/.test(value) ? value : null
49}
50
51function handleRequest(request) {
52 const body = request.body && typeof request.body === "object" ? request.body : {}
53 const event = pick(EVENTS, body.type, null)
54
55 // Guard: only background response events, so other OpenAI events on this integration stay quiet.
56 if (!event) {
57 console.log(`Ignoring OpenAI "${typeof body.type === "string" ? body.type : "unknown"}" event`)
58 return null
59 }
60
61 // ?failures=1 on the webhook URL only pushes failed and incomplete responses.
62 const failuresOnly = ["1", "true", "yes"].includes(String(request.query?.failures ?? "").toLowerCase())
63 if (failuresOnly && !event.failure) {
64 console.log(`Skipping ${body.type} (failures only)`)
65 return null
66 }
67
68 const id = cleanId(body.data?.id)
69
70 return {
71 title: event.title,
72 message: `${id ? `Response ${id}` : "A background response"} ${event.text}.`,
73 topic: "OpenAI",
74 priority: event.priority,
75 buttons: id ? link(`https://platform.openai.com/logs/${id}`, "View in logs") : [],
76 }
77}
Payload

The OpenAI response.completed webhook

This is what OpenAI sends to your URL for response.completed, response.failed, response.incomplete and response.cancelled. It is a sample, trimmed to the fields recipes use.

response.completed · sample.json
1{
2 "id": "evt_685343a1381c819085d44c354e1b330e",
3 "data": {
4 "id": "resp_abc123"
5 },
6 "type": "response.failed",
7 "object": "event",
8 "created_at": 1790668800
9}
FAQ

OpenAI background response 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 OpenAI 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

OpenAI on your phone in two minutes.

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