25368288 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.009
Inserted 7h ago
Scheduled 7h ago
Completed
Cancelled
Discarded 7h ago

Args

%{
  "account_id" => "216487",
  "data" => %{
    "account_insight_agent_id" => "b120a1de-1d65-470f-bbc6-a93c0c225856",
    "insights" => [
      %{
        "action_plan" => "Review whether these banners still support a live lifecycle message. If the trial-status messaging is no longer relevant or the audience is no longer qualifying, unpublish them to keep your production experience set clean. If the campaigns are still strategically important, keep them live only after confirming the targeting logic and underlying `trialStatus` data are still in use.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published banner experience named \"Trial Expired banner\" with experience ID \"10daa0e7-34f5-43db-a255-9673a33882f5\". This experience has had 0 seen, 0 completed, and 0 dismissed users in the last 30 days and is being retired as routine hygiene.",
            "title" => "Unpublish Trial Expired banner",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the banner experience named \"Trial Expired banner\" with experience ID \"10daa0e7-34f5-43db-a255-9673a33882f5\" after it was unpublished during the inactive-experience cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published banner experience named \"Trial Active banner\" with experience ID \"a0219766-4f29-4966-b933-069fa456d0ce\". This experience has had 0 seen, 0 completed, and 0 dismissed users in the last 30 days and is being retired as routine hygiene.",
            "title" => "Unpublish Trial Active banner",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the banner experience named \"Trial Active banner\" with experience ID \"a0219766-4f29-4966-b933-069fa456d0ce\" after it was unpublished during the inactive-experience cleanup."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused experiences reduces clutter in your live portfolio and helps your team focus on messages that are still reaching users. If these banners are meant to be active, reviewing them may also uncover stale targeting or lifecycle data issues.",
        "finding" => "As part of routine experience hygiene, I checked published flows, banners, pins, and checklists that were published more than 3 weeks ago and looked for any activity in the last 30 days. **2 experiences were completely inactive**.\n\n- [Trial Expired banner](https://studio.appcues.com/banners/10daa0e7-34f5-43db-a255-9673a33882f5/settings)\n  - Type: Banner\n  - Published: 2024-12-06\n  - Activity in last 30 days: **0 seen**, **0 completed**, **0 dismissed**\n  - Designed to show a sitewide banner to users whose **trialStatus = expired** on **all URLs**, prompting them to contact sales to upgrade. No goals are attached.\n- [Trial Active banner](https://studio.appcues.com/banners/a0219766-4f29-4966-b933-069fa456d0ce/settings)\n  - Type: Banner\n  - Published: 2024-12-06\n  - Activity in last 30 days: **0 seen**, **0 completed**, **0 dismissed**\n  - Designed to show a sitewide banner to users whose **trialStatus = active** on **all URLs**, reminding them how many trial days remain and prompting them to contact sales. No goals are attached.",
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "2 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "f7855722-171e-4177-87c5-dc856a49bbd4",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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