25363726 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.268
Run Time 00:00.007
Inserted 1h ago
Scheduled 1h ago
Completed
Cancelled
Discarded 1h ago

Args

%{
  "account_id" => "45574",
  "data" => %{
    "account_insight_agent_id" => "dfc07ddc-c78b-420e-8792-17db51aad518",
    "insights" => [
      %{
        "action_plan" => "Treat this as normal experience hygiene: keep live only what still serves an active use case.\n\n1. Review the linked experiences and confirm whether the targeted pages, segments, and onboarding paths are still relevant.\n2. Unpublish any experience that supports an outdated workflow, old domain, or retired onboarding journey.\n3. Keep experiences that are still strategically important, but verify whether their targeting should be updated instead of left idle.\n\nI excluded flows that had **zero seen events but non-zero errors**, because those are better investigated as delivery issues rather than unpublished as cleanup.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 16a112c0-544e-481d-b5c6-daba891b9cbc named \"Vendor Overview\". This flow was published on 2022-01-25 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Vendor Overview flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 16a112c0-544e-481d-b5c6-daba891b9cbc named \"Vendor Overview\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 944ce12e-2ee1-4e2f-be58-ce8ea3219312 named \"Procedure Help Icon\". This flow was published on 2022-01-03 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Procedure Help Icon flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 944ce12e-2ee1-4e2f-be58-ce8ea3219312 named \"Procedure Help Icon\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 88719a1c-fc05-4064-8928-17d8b00b8e85 named \"Vendor Tray Group Help\". This flow was published on 2021-12-29 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Vendor Tray Group Help",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 88719a1c-fc05-4064-8928-17d8b00b8e85 named \"Vendor Tray Group Help\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 5a5b9071-7308-42ec-bd18-e46c2c93e47e named \"Conflict Slid out\". This flow was published on 2021-05-18 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Conflict Slid out flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 5a5b9071-7308-42ec-bd18-e46c2c93e47e named \"Conflict Slid out\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LmfnLETz7lislVVOCPx named \"Tray Conflict Icon\". This flow was published on 2019-08-20 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Tray Conflict Icon flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LmfnLETz7lislVVOCPx named \"Tray Conflict Icon\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LwVasTZSo7c9bibde9C named \"Sterilizer Test Notification\". This flow was published on 2019-12-20 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Sterilizer Test Notification",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LwVasTZSo7c9bibde9C named \"Sterilizer Test Notification\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LdtAmNV8kxkYl2TvWvH named \"Schedule Case Policy\". This flow was published on 2019-05-03 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Schedule Case Policy flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LdtAmNV8kxkYl2TvWvH named \"Schedule Case Policy\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LcHt9Eb6hryMHaxqLz4 named \"Tray Group Vs Unique ID\". This flow was published on 2019-04-16 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Tray Group Vs Unique",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LcHt9Eb6hryMHaxqLz4 named \"Tray Group Vs Unique ID\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LZatKkn5mc41wwdz-S7 named \"New Procedures | Flow\". This flow was published on 2019-03-05 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish New Procedures flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LZatKkn5mc41wwdz-S7 named \"New Procedures | Flow\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LZarzCd_zG8cRDURmfQ named \"New Trays | Flow\". This flow was published on 2019-03-05 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish New Trays flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LZarzCd_zG8cRDURmfQ named \"New Trays | Flow\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LYc7_TBhSk2QuBSpQPT named \"Product Walkthrough: Procedures and Trays\". This flow was published on 2019-03-05 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Product Walkthrough flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LYc7_TBhSk2QuBSpQPT named \"Product Walkthrough: Procedures and Trays\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -L_F-al5D4qbODNosZsq named \"Dropping off trays\". This flow was published on 2019-03-05 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Dropping off trays flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -L_F-al5D4qbODNosZsq named \"Dropping off trays\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID -LZL-X_JbiKHjqqEmhGJ named \"Welcome Message 2\". This flow was published on 2019-03-04 and had zero seen, completed, and skipped users in the last 30 days.",
            "title" => "Unpublish Welcome Message 2 flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID -LZL-X_JbiKHjqqEmhGJ named \"Welcome Message 2\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published checklist with ID -MuCo7xHNkpw4h6gqG4- named \"App. My Progress\". This checklist was published before the current review period and had zero seen, completed, dismissed, and skipped users in the last 30 days.",
            "title" => "Unpublish App. My Progress checklist",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the checklist with ID -MuCo7xHNkpw4h6gqG4- named \"App. My Progress\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published checklist with ID -LYcDNILjuCWDdfPzlyC named \"My Progress\". This checklist was published before the current review period and had zero seen, completed, dismissed, and skipped users in the last 30 days.",
            "title" => "Unpublish My Progress checklist",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the checklist with ID -LYcDNILjuCWDdfPzlyC named \"My Progress\"."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaning up these unused published experiences should reduce maintenance overhead, make your live inventory easier to manage, and keep reporting focused on content that still contributes to onboarding and adoption.",
        "finding" => "I reviewed published **flows** and **checklists** that were published more than **3 weeks ago** and found **15** with **no seen events or checklist enrollments in the last 30 days**.\n\nThese look like good candidates for routine cleanup:\n- [Vendor Overview](https://studio.appcues.com/flows/16a112c0-544e-481d-b5c6-daba891b9cbc/settings)\n  - Type: Flow\n  - Designed to introduce the vendor tray process with a short overview video on **/dashboard** for a targeted segment on **app.surg.io** and **centura.surg.io**\n- [Procedure Help Icon](https://studio.appcues.com/flows/944ce12e-2ee1-4e2f-be58-ce8ea3219312/settings)\n  - Type: Flow\n  - Designed as a help hotspot linking users to procedure setup guidance on **/account/procedures** on **staging.surg.io**\n- [Vendor Tray Group Help](https://studio.appcues.com/flows/88719a1c-fc05-4064-8928-17d8b00b8e85/settings)\n  - Type: Flow\n  - Designed as a help hotspot for tray group creation on **/tray_groups** for a targeted segment on **staging.surg.io**\n- [Conflict Slid out](https://studio.appcues.com/flows/5a5b9071-7308-42ec-bd18-e46c2c93e47e/settings)\n  - Type: Flow\n  - Designed to explain tray conflict behavior and link to a support article on **/trays/find-for-case/**\n- [Tray Conflict Icon](https://studio.appcues.com/flows/-LmfnLETz7lislVVOCPx/settings)\n  - Type: Flow\n  - Designed as a tooltip explaining tray conflicts on **/trays/find-for-case/** for a targeted segment\n- [Sterilizer Test Notification](https://studio.appcues.com/flows/-LwVasTZSo7c9bibde9C/settings)\n  - Type: Flow\n  - Designed as a one-time tooltip about selecting load types on **/process/sterilizer** for a targeted segment\n- [Schedule Case Policy](https://studio.appcues.com/flows/-LdtAmNV8kxkYl2TvWvH/settings)\n  - Type: Flow\n  - Designed to explain late scheduling policy on **/dashboard** for a targeted segment\n- [Tray Group Vs Unique ID](https://studio.appcues.com/flows/-LcHt9Eb6hryMHaxqLz4/settings)\n  - Type: Flow\n  - Designed to clarify tray group naming vs unique IDs on **/tray_groups/create** for a targeted segment\n- [New Procedures | Flow](https://studio.appcues.com/flows/-LZatKkn5mc41wwdz-S7/settings)\n  - Type: Flow\n  - Designed to teach users how to add procedures with a short video on **/account/procedures** for a targeted segment\n- [New Trays | Flow](https://studio.appcues.com/flows/-LZarzCd_zG8cRDURmfQ/settings)\n  - Type: Flow\n  - Designed to teach users how to add trays with a short video on **/tray_groups** for a targeted segment\n- [Product Walkthrough: Procedures and Trays](https://studio.appcues.com/flows/-LYc7_TBhSk2QuBSpQPT/settings)\n  - Type: Flow\n  - Designed as a guided onboarding walkthrough across **dashboard, settings, procedures, trays, and help** for a targeted segment\n- [Dropping off trays](https://studio.appcues.com/flows/-L_F-al5D4qbODNosZsq/settings)\n  - Type: Flow\n  - Designed to show a short drop-off tutorial video on **/dashboard** for a targeted segment\n- [Welcome Message 2](https://studio.appcues.com/flows/-LZL-X_JbiKHjqqEmhGJ/settings)\n  - Type: Flow\n  - Designed as a welcome modal that routed users into the walkthrough or let them dismiss from **/dashboard**\n- [App. My Progress](https://studio.appcues.com/checklists/-MuCo7xHNkpw4h6gqG4-/edit)\n  - Type: Checklist\n  - Designed as a non-sequential onboarding checklist covering overview, adding procedures, adding trays, tray drop-off, and scheduling from phone\n- [My Progress](https://studio.appcues.com/checklists/-LYcDNILjuCWDdfPzlyC/edit)\n  - Type: Checklist\n  - Designed as a non-sequential onboarding checklist covering overview, adding procedures, adding trays, tray drop-off, and scheduling from phone\n\nNone of these experiences had goals attached in the published metadata I reviewed.",
        "outcomes" => ["engagement", "adoption"],
        "priority" => "medium",
        "title" => "15 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "e5554091-26f5-4f6c-8b98-c0ae19fcc82c",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777557929972108, "structured" => true}

Errors

Attempt 5—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 4—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 3—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 2—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 1—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4