25115105 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.61
Queue Time 00:00.346
Run Time 00:00.008
Inserted 9h ago
Scheduled 9h ago
Completed
Cancelled
Discarded 9h ago

Args

%{
  "account_id" => "108268",
  "data" => %{
    "account_insight_agent_id" => "3756819f-65db-46e6-94c3-b66aab21d075",
    "insights" => [
      %{
        "action_plan" => "Review whether these flows still support an active use case. If they were only for past releases, testing, or limited audiences, unpublishing them is a clean way to reduce clutter and prevent accidental delivery later. Keep any experience that is still intentionally live, but consider adding goals or revisiting targeting so future hygiene reviews are easier.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support unpublish_experience tool to unpublish the published web flow with ID aae1c73b-ec9e-4038-91f2-bf747e021aa1 named \"Test notification\". This is a routine hygiene cleanup for an older published experience that has had no seen events or enrollments in the last 30 days and was published on 2022-10-11. After unpublishing, leave the draft intact.",
            "title" => "Unpublish Test notification flow",
            "undo_prompt" => "Use the product_support publish_experience tool to republish the web flow with ID aae1c73b-ec9e-4038-91f2-bf747e021aa1 named \"Test notification\" so it is live again in its current draft state."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support unpublish_experience tool to unpublish the published web flow with ID 4c582fc9-ef58-4f38-a19d-4dc0ef949ca1 named \"Test2\". This is a routine hygiene cleanup for an older published experience that has had no seen events or enrollments in the last 30 days and was published on 2022-10-11. After unpublishing, leave the draft intact.",
            "title" => "Unpublish Test2 flow",
            "undo_prompt" => "Use the product_support publish_experience tool to republish the web flow with ID 4c582fc9-ef58-4f38-a19d-4dc0ef949ca1 named \"Test2\" so it is live again in its current draft state."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support unpublish_experience tool to unpublish the published web flow with ID 77bed6d2-9950-4769-83ce-240e97e97c8a named \"Test3\". This is a routine hygiene cleanup for an older published experience that has had no seen events or enrollments in the last 30 days and was published on 2022-10-11. After unpublishing, leave the draft intact.",
            "title" => "Unpublish Test3 flow",
            "undo_prompt" => "Use the product_support publish_experience tool to republish the web flow with ID 77bed6d2-9950-4769-83ce-240e97e97c8a named \"Test3\" so it is live again in its current draft state."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused experiences will reduce account clutter, lower the chance of outdated content being shown, and make it easier to focus on experiences that drive activation and engagement.",
        "finding" => "This routine hygiene review found **3 published experiences** older than 3 weeks with **no seen events or enrollments in the last 30 days**.\n\n- [Test notification](https://studio.appcues.com/flows/aae1c73b-ec9e-4038-91f2-bf747e021aa1/settings)\n  - Type: Flow\n  - Designed to announce **Aiforia 5.4**, then show a follow-up tooltip linking users to the community site.\n  - Targeting: specific user IDs on **beta.aiforia.com**, shown on the root app URL, frequency set to **every time**.\n  - Goals: none configured.\n\n- [Test2](https://studio.appcues.com/flows/4c582fc9-ef58-4f38-a19d-4dc0ef949ca1/settings)\n  - Type: Flow\n  - Designed to surface a tooltip that sends users to **Aiforia Community** content about AI.\n  - Targeting: specific user IDs on **dev.aiforia.com**, **test.aiforia.com**, and **beta.aiforia.com**, on training-related URLs, frequency set to **every time**.\n  - Goals: none configured.\n\n- [Test3](https://studio.appcues.com/flows/77bed6d2-9950-4769-83ce-240e97e97c8a/settings)\n  - Type: Flow\n  - Designed as a short welcome modal with embedded video and introductory copy.\n  - Targeting: specific user IDs on **dev.aiforia.com**, **test.aiforia.com**, and **beta.aiforia.com**, on library-related URLs, frequency set to **every time**.\n  - Goals: none configured.\n\nNo older published pins, banners, checklists, or launchpads were found in scope.",
        "outcomes" => ["activation", "engagement"],
        "priority" => "medium",
        "title" => "3 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "14bbf2a6-42b6-4bbe-851e-337140eea663",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

Attempt 5—9h 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+88574494) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+88574494) 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—9h 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+88574494) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+88574494) 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—9h 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+88574494) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+88574494) 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—9h 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+88574494) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+88574494) 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—9h 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+88574494) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+88574494) 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