25370615 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.317
Run Time 00:00.006
Inserted 2h ago
Scheduled 2h ago
Completed
Cancelled
Discarded 2h ago

Args

%{
  "account_id" => "219598",
  "data" => %{
    "account_insight_agent_id" => "4664ad8e-eeeb-4b00-874e-a3a41850dd91",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine hygiene:\n1. Review the linked experiences and confirm whether each targeted page, segment, or workflow is still in use.\n2. Unpublish any experience that is no longer relevant, especially the highly specific onboarding and test content.\n3. If an experience should still be active, keep it published and investigate whether its targeting has become too narrow or the underlying product path is no longer being reached.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 4ecc53a3-ddb4-4da4-81fb-dfbd82b80261 named \"Quick Review Appcues | Diagnoses\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish Quick Review Diagnoses flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 4ecc53a3-ddb4-4da4-81fb-dfbd82b80261 named \"Quick Review Appcues | Diagnoses\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID b943669a-b445-4818-acec-85c8ebe213cc named \"Quick Review Appcues | Vaccinations\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish Quick Review Vaccinations flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID b943669a-b445-4818-acec-85c8ebe213cc named \"Quick Review Appcues | Vaccinations\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 7cc3b023-1e2f-41b3-bc09-4231317b9e86 named \"Onboarding Quick Tip Image Review\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish Image Review quick tip",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 7cc3b023-1e2f-41b3-bc09-4231317b9e86 named \"Onboarding Quick Tip Image Review\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 85dbef73-2974-4712-a97e-0e35a628191c named \"Feature | Wounds interview | 4 Main Interview\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish Wounds interview flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 85dbef73-2974-4712-a97e-0e35a628191c named \"Feature | Wounds interview | 4 Main Interview\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 1f40503b-301f-4a17-a7ce-512c354a96e8 named \"Onboarding Quick Tip Nurse Interview Active Diagnosis\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish Active Diagnosis tip",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 1f40503b-301f-4a17-a7ce-512c354a96e8 named \"Onboarding Quick Tip Nurse Interview Active Diagnosis\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published flow with experience ID 03f428fe-b456-462f-b313-ba0f945fce5b named \"Meds V2 Step 03 View Source Tooltip\". This is a published web flow with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish View Source tooltip",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 03f428fe-b456-462f-b313-ba0f945fce5b named \"Meds V2 Step 03 View Source Tooltip\" again, restoring it to live status."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published pin with experience ID 4120dbd5-e40d-4216-8e18-6d6fd989eece named \"TEST\". This is a published web pin with no seen/completed activity in the last 30 days and is being cleaned up as inactive content.",
            "title" => "Unpublish TEST pin",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 4120dbd5-e40d-4216-8e18-6d6fd989eece named \"TEST\" again, restoring it to live status."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused content will reduce clutter in your live experience inventory, make active programs easier to manage, and lower the risk of maintaining outdated guidance.",
        "finding" => "I reviewed published experiences that were **published more than 3 weeks ago** and found **7** with **no seen or completed activity in the last 30 days**.\n\nThese look like good routine-cleanup candidates:\n- [Quick Review Appcues | Diagnoses](https://studio.appcues.com/flows/4ecc53a3-ddb4-4da4-81fb-dfbd82b80261/settings)\n  - Type: Flow\n  - Designed to introduce **Quick Review** on the diagnoses sign-off page and prompt users to review alerts.\n  - Targeting: `/field/patient` + `/sign-off` with the Diagnoses page, gated by `quickReviewEnabled = true`.\n- [Quick Review Appcues | Vaccinations](https://studio.appcues.com/flows/b943669a-b445-4818-acec-85c8ebe213cc/settings)\n  - Type: Flow\n  - Designed to introduce **Quick Review** on the vaccinations sign-off page and guide users to review alerts.\n  - Targeting: `/field/patient` + `/sign-off` with the Vaccinations page, gated by `quickReviewEnabled = true`.\n- [Onboarding Quick Tip Image Review](https://studio.appcues.com/flows/7cc3b023-1e2f-41b3-bc09-4231317b9e86/settings)\n  - Type: Flow\n  - Designed to remind users to review and fix photo issues before moving on.\n  - Targeting: the image-review interstitial during onboarding, limited to a specific onboarding segment.\n- [Feature | Wounds interview | 4 Main Interview](https://studio.appcues.com/flows/85dbef73-2974-4712-a97e-0e35a628191c/settings)\n  - Type: Flow\n  - Designed to coach users to give detailed wound interview responses.\n  - Targeting: wound-related interview pages on your app domains, after another experience has already shown.\n- [Onboarding Quick Tip Nurse Interview Active Diagnosis](https://studio.appcues.com/flows/1f40503b-301f-4a17-a7ce-512c354a96e8/settings)\n  - Type: Flow\n  - Designed to tell onboarding users they do not need to repeat previously stated details.\n  - Targeting: main interview pages with `questionShortLabel=ActiveDiagnosis`, limited to an onboarding segment.\n- [Meds V2 Step 03 View Source Tooltip](https://studio.appcues.com/flows/03f428fe-b456-462f-b313-ba0f945fce5b/settings)\n  - Type: Flow\n  - Designed to point users to the medication source button during medication-profile sign-off.\n  - Targeting: medication profile sign-off pages, a specific segment, and only after another meds flow has appeared.\n- [TEST](https://studio.appcues.com/pins/4120dbd5-e40d-4216-8e18-6d6fd989eece/settings)\n  - Type: Pin\n  - Designed as a multi-pin walkthrough for patient details like non-admit, address, and phone actions.\n  - Targeting: a single, highly specific patient page on a preview domain.\n\nNone of these experiences has goals attached in the published metadata, which makes them strong candidates for archive-by-unpublish if they are no longer part of an active program.",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "7 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "6c4c963f-7c9b-4ce2-bdae-66decf0b1720",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

Attempt 5—2h 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—2h 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—2h 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—2h 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—2h 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