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

Args

%{
  "account_id" => "32473",
  "data" => %{
    "account_insight_agent_id" => "0f9ec293-ada2-4d08-8150-010b842905e1",
    "insights" => [
      %{
        "action_plan" => "Review whether these flows still support a live journey your users actually reach. If they are no longer needed, unpublish them to keep your published inventory clean and reduce maintenance overhead. If any are intentionally kept for rare support cases, consider leaving them live but documenting their purpose for your team.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with experience ID 3faeaae8-9b03-4e68-8feb-4ccd606a03ba named \"Edge Hard Reload \". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and is being retired as inactive hygiene cleanup.",
            "title" => "Unpublish Edge Hard Reload flow",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with experience ID 3faeaae8-9b03-4e68-8feb-4ccd606a03ba named \"Edge Hard Reload \", restoring it to a live published state."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with experience ID 7bc86caa-5284-47a0-9af5-019f432db1dc named \"Safari Hard Reload \". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and is being retired as inactive hygiene cleanup.",
            "title" => "Unpublish Safari Hard Reload flow",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with experience ID 7bc86caa-5284-47a0-9af5-019f432db1dc named \"Safari Hard Reload \", restoring it to a live published state."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with experience ID af2028b1-841a-4578-bf72-743bab034763 named \"Firefox Hard Reload \". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and is being retired as inactive hygiene cleanup.",
            "title" => "Unpublish Firefox Hard Reload flow",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with experience ID af2028b1-841a-4578-bf72-743bab034763 named \"Firefox Hard Reload \", restoring it to a live published state."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with experience ID -M8yuPvAg2ItZ12Z78fb named \"EE - Self Service Providers\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and is being retired as inactive hygiene cleanup.",
            "title" => "Unpublish Self Service Providers flow",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with experience ID -M8yuPvAg2ItZ12Z78fb named \"EE - Self Service Providers\", restoring it to a live published state."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing unused experiences will simplify content maintenance and make it easier to focus on active onboarding and employee guidance experiences, improving overall experience governance.",
        "finding" => "Routine content hygiene check: I reviewed published flows, pins, banners, and checklists that were published more than **3 weeks ago** and found **4 experiences** with **no activity in the last 30 days**.\n\n- [Edge Hard Reload](https://studio.appcues.com/flows/3faeaae8-9b03-4e68-8feb-4ccd606a03ba/settings)\n  - Type: Flow\n  - Published: **2023-02-21**\n  - Designed to help users clear cache and cookies in **Microsoft Edge** on pages matching **/gms/#/app/**.\n  - Goals: None configured.\n- [Safari Hard Reload](https://studio.appcues.com/flows/7bc86caa-5284-47a0-9af5-019f432db1dc/settings)\n  - Type: Flow\n  - Published: **2023-02-21**\n  - Designed to guide users through clearing cache and cookies in **Safari** on pages matching **/gms/#/app/**.\n  - Goals: None configured.\n- [Firefox Hard Reload](https://studio.appcues.com/flows/af2028b1-841a-4578-bf72-743bab034763/settings)\n  - Type: Flow\n  - Published: **2022-11-09**\n  - Designed to show **Firefox hard refresh / cache-clearing instructions** on pages matching **/gms/#/app/**.\n  - Goals: None configured.\n- [EE - Self Service Providers](https://studio.appcues.com/flows/-M8yuPvAg2ItZ12Z78fb/settings)\n  - Type: Flow\n  - Published: **2020-06-04**\n  - Designed as a walkthrough of the **Self Service Providers** area, including how to view provider details from the employee experience.\n  - Triggered on the self-service provider list page.\n  - Goals: None configured.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "medium",
        "title" => "4 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "146a7b1e-2da3-44c7-bf54-b8e8eb1cb76a",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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