25115099 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 00:00.354
Run Time 00:00.007
Inserted 9h ago
Scheduled 9h ago
Completed
Cancelled
Discarded 9h ago

Args

%{
  "account_id" => "112356",
  "data" => %{
    "account_insight_agent_id" => "4d5a6549-97c6-4a9c-a164-fdfb7e8efbfb",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine content hygiene. Review whether each experience still supports a live workflow, page, or audience:\n1. Keep live only if the experience still matches a current onboarding or education path.\n2. Unpublish anything tied to retired onboarding, legacy pages, or segments no longer receiving traffic.\n3. If an experience is still strategically important, refresh its targeting and content instead of leaving an inactive version live.\n\nThe links above go directly to each experience's settings page, and the one-click unpublish actions can be used for immediate cleanup.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published pin named \"Document Collection Tutorial Pin\" with experience ID \"479ee5c3-6328-42b9-8753-6ecd9214d9c2\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Document Collection Tutorial Pin",
            "undo_prompt" => "Use the product_support publish-state tool to publish the pin named \"Document Collection Tutorial Pin\" with experience ID \"479ee5c3-6328-42b9-8753-6ecd9214d9c2\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published checklist named \"First Job Walkthrough\" with experience ID \"-N0pVNT2hEIykzcJ0O5V\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish First Job Walkthrough checklist",
            "undo_prompt" => "Use the product_support publish-state tool to publish the checklist named \"First Job Walkthrough\" with experience ID \"-N0pVNT2hEIykzcJ0O5V\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add-Contractor UI LOR/NOA\" with experience ID \"5aca46fb-8614-40ac-a781-7adf2297576c\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add-Contractor UI LOR/NOA flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add-Contractor UI LOR/NOA\" with experience ID \"5aca46fb-8614-40ac-a781-7adf2297576c\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Customer (Refresher)\" with experience ID \"99373d46-0152-4743-98b2-83c037363cfe\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Customer Refresher",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Customer (Refresher)\" with experience ID \"99373d46-0152-4743-98b2-83c037363cfe\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Contractor (Refresher)\" with experience ID \"05626edf-02b6-4772-94bc-a17e59a86d80\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Contractor Refresher",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Contractor (Refresher)\" with experience ID \"05626edf-02b6-4772-94bc-a17e59a86d80\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Contractor\" with experience ID \"04add7d3-7926-42fd-ad59-beea7d672d8d\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Contractor flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Contractor\" with experience ID \"04add7d3-7926-42fd-ad59-beea7d672d8d\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Customer\" with experience ID \"63d2b2f3-1174-4ba9-a776-3875feb9c2ca\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Customer flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Customer\" with experience ID \"63d2b2f3-1174-4ba9-a776-3875feb9c2ca\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Job\" with experience ID \"84bf6704-a57a-43fc-9d31-5793d5d20701\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Job flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Job\" with experience ID \"84bf6704-a57a-43fc-9d31-5793d5d20701\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add a Job (Refresher)\" with experience ID \"f9f2cb09-8b60-44ae-bd13-902a8ee45761\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add a Job Refresher",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add a Job (Refresher)\" with experience ID \"f9f2cb09-8b60-44ae-bd13-902a8ee45761\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Add-Customer Modal Update\" with experience ID \"7cecd7ee-6192-4502-8e41-f971638c9ea7\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Add-Customer Modal Update flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Add-Customer Modal Update\" with experience ID \"7cecd7ee-6192-4502-8e41-f971638c9ea7\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published pin named \"Early invoicing Pin\" with experience ID \"5fab8f2d-8025-4f5c-b623-80a544742ad4\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Early invoicing Pin",
            "undo_prompt" => "Use the product_support publish-state tool to publish the pin named \"Early invoicing Pin\" with experience ID \"5fab8f2d-8025-4f5c-b623-80a544742ad4\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published pin named \"Role Management Guide\" with experience ID \"dfcedc50-646e-4ae9-8937-0531285883ff\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Role Management Guide pin",
            "undo_prompt" => "Use the product_support publish-state tool to publish the pin named \"Role Management Guide\" with experience ID \"dfcedc50-646e-4ae9-8937-0531285883ff\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published pin named \"Team Management Guides\" with experience ID \"1209a866-c5d4-4ba2-b197-b3bdfde5a9b9\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Team Management Guides pin",
            "undo_prompt" => "Use the product_support publish-state tool to publish the pin named \"Team Management Guides\" with experience ID \"1209a866-c5d4-4ba2-b197-b3bdfde5a9b9\" to restore it live."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support publish-state tool to unpublish the published flow named \"Welcome Modal\" with experience ID \"dc5f6c1c-f388-4872-8705-43c35bdc99be\". This is part of an inactivity hygiene cleanup for published experiences with no seen events or enrollments in the last 30 days.",
            "title" => "Unpublish Welcome Modal flow",
            "undo_prompt" => "Use the product_support publish-state tool to publish the flow named \"Welcome Modal\" with experience ID \"dc5f6c1c-f388-4872-8705-43c35bdc99be\" to restore it live."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing stale experiences should reduce clutter in your live experience inventory, lower the chance of outdated guidance resurfacing, and make ongoing onboarding performance reviews easier.",
        "finding" => "Routine hygiene check: **14 published experiences** that were published more than 3 weeks ago are still live but were part of the latest **30-day inactivity set** with no recent seen events or enrollments.\n\nInactive experiences to review:\n- [Document Collection Tutorial Pin](https://studio.appcues.com/pins/479ee5c3-6328-42b9-8753-6ecd9214d9c2/settings)\n  - Type: Pin\n  - Designed to help users on jobs pages learn about carrier document collection and launch a related in-app guide.\n- [First Job Walkthrough](https://studio.appcues.com/checklists/-N0pVNT2hEIykzcJ0O5V/edit)\n  - Type: Checklist\n  - Sequential checklist for first-job onboarding: sign factoring contract, add a customer, add a contractor, then add a job.\n- [Add-Contractor UI LOR/NOA](https://studio.appcues.com/flows/5aca46fb-8614-40ac-a781-7adf2297576c/settings)\n  - Type: Flow\n  - Tooltip guidance on contractor and job pages explaining NOA/LOR document requirements to speed approval and payment.\n- [Add a Customer (Refresher)](https://studio.appcues.com/flows/99373d46-0152-4743-98b2-83c037363cfe/settings)\n  - Type: Flow\n  - Refresher walkthrough on the customer page showing how to add a customer and provide credit-related details.\n- [Add a Contractor (Refresher)](https://studio.appcues.com/flows/05626edf-02b6-4772-94bc-a17e59a86d80/settings)\n  - Type: Flow\n  - Refresher walkthrough on the contractor page covering contractor setup, verification details, and payment invite guidance.\n- [Add a Contractor](https://studio.appcues.com/flows/04add7d3-7926-42fd-ad59-beea7d672d8d/settings)\n  - Type: Flow\n  - Onboarding walkthrough for adding a contractor, including verification, payment terms, and payment invite steps.\n- [Add a Customer](https://studio.appcues.com/flows/63d2b2f3-1174-4ba9-a776-3875feb9c2ca/settings)\n  - Type: Flow\n  - Onboarding walkthrough for adding a customer, including credit amount, invoicing email, and approval timing guidance.\n- [Add a Job](https://studio.appcues.com/flows/84bf6704-a57a-43fc-9d31-5793d5d20701/settings)\n  - Type: Flow\n  - Multi-step first-job tutorial for entering job details, paperwork, payment amounts, payment date, and saving a draft.\n- [Add a Job (Refresher)](https://studio.appcues.com/flows/f9f2cb09-8b60-44ae-bd13-902a8ee45761/settings)\n  - Type: Flow\n  - Refresher version of the add-job tutorial with paperwork, invoicing, payment, and save-draft guidance.\n- [Add-Customer Modal Update](https://studio.appcues.com/flows/7cecd7ee-6192-4502-8e41-f971638c9ea7/settings)\n  - Type: Flow\n  - Brief tooltip announcing updated required customer information to improve credit decision speed and accuracy.\n- [Early invoicing Pin](https://studio.appcues.com/pins/5fab8f2d-8025-4f5c-b623-80a544742ad4/settings)\n  - Type: Pin\n  - Pin on jobs pages explaining early invoicing and linking users to help content.\n- [Role Management Guide](https://studio.appcues.com/pins/dfcedc50-646e-4ae9-8937-0531285883ff/settings)\n  - Type: Pin\n  - Pin on settings pages encouraging users to learn about role-based access and launch a related video.\n- [Team Management Guides](https://studio.appcues.com/pins/1209a866-c5d4-4ba2-b197-b3bdfde5a9b9/settings)\n  - Type: Pin\n  - Pin on settings pages introducing team management and linking to supporting education.\n- [Welcome Modal](https://studio.appcues.com/flows/dc5f6c1c-f388-4872-8705-43c35bdc99be/settings)\n  - Type: Flow\n  - Welcome modal on the dashboard that points new users to a getting-started walkthrough for processing a first job.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "high",
        "title" => "14 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "2185dce3-0bb4-469e-9ce1-dabdbfc670a6",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777405235332724, "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