25115253 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.233
Run Time 00:00.006
Inserted 8h ago
Scheduled 8h ago
Completed
Cancelled
Discarded 8h ago

Args

%{
  "account_id" => "139378",
  "data" => %{
    "account_insight_agent_id" => "1baaecd0-1ed1-4ed1-81d3-c52df196590e",
    "insights" => [
      %{
        "action_plan" => "Review whether these pins still support a live workflow or demo path. If not, unpublish them to keep your published inventory clean and focused. If either experience is still needed seasonally or for a limited audience, keep it live but confirm the targeting is still intentional and reachable.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published pin with experience ID 61b4b35c-215a-4208-8e1f-8c30ec468a80 named \"Competitor Intelligence - Snapshots (Demo)\". This is a routine hygiene cleanup for a published experience older than 21 days that had 0 seen, 0 completed, 0 dismissed, and 0 errors in the last 30 days.",
            "title" => "Unpublish inactive demo snapshots pin",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the pin with experience ID 61b4b35c-215a-4208-8e1f-8c30ec468a80 named \"Competitor Intelligence - Snapshots (Demo)\" that was previously unpublished during routine hygiene cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published pin with experience ID 5a6f3366-a0ec-4ccf-b4a1-585b076d65d9 named \"Pending Notice Filter \\\"Search Required\\\"\". This is a routine hygiene cleanup for a published experience older than 21 days that had 0 seen, 0 completed, 0 dismissed, and 0 errors in the last 30 days.",
            "title" => "Unpublish inactive search reminder pin",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the pin with experience ID 5a6f3366-a0ec-4ccf-b4a1-585b076d65d9 named \"Pending Notice Filter \\\"Search Required\\\"\" that was previously unpublished during routine hygiene cleanup."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused experiences will reduce clutter in your published inventory and make it easier to maintain only content that is actively supporting engagement or adoption.",
        "finding" => "As part of routine experience hygiene, I reviewed published experiences that were **published more than 3 weeks ago** and checked for activity in the last **30 days**. **2 experiences had no activity at all**.\n\n- [Competitor Intelligence - Snapshots (Demo)](https://studio.appcues.com/pins/61b4b35c-215a-4208-8e1f-8c30ec468a80/settings)\n  - Type: **Pin**\n  - Last 30 days: **0 seen, 0 completed, 0 dismissed, 0 errors**\n  - Designed to support a **demo competitor-intelligence snapshots page** on `platform.trackstreet.com`, targeted to a small set of specific email addresses. The pin set explains multiple dashboard widgets such as retailer overlap, merchant distribution, penetration, filters, and price comparisons. No goals are attached.\n\n- [Pending Notice Filter \"Search Required\"](https://studio.appcues.com/pins/5a6f3366-a0ec-4ccf-b4a1-585b076d65d9/settings)\n  - Type: **Pin**\n  - Last 30 days: **0 seen, 0 completed, 0 dismissed, 0 errors**\n  - Designed as a **search reminder tooltip** on the pending notifications workflow page on `platform.trackstreet.com`, prompting users to click **Search** after applying filters. 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" => "2a46f034-9019-4901-90cd-823e48add84e",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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