25114395 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.61
Queue Time 00:00.214
Run Time 00:00.006
Inserted 7h ago
Scheduled 7h ago
Completed
Cancelled
Discarded 7h ago

Args

%{
  "account_id" => "57410",
  "data" => %{
    "account_insight_agent_id" => "9aef2a23-a6f1-47db-ae68-d7aa5788d8b6",
    "insights" => [
      %{
        "action_plan" => "Review the inactive list as routine hygiene, starting with anything labeled **test**, **non-prod**, **QA**, or tied only to internal domains. If an experience is no longer needed, unpublish it. If ownership is unclear, open the linked settings page, confirm the target page/domain, audience, and goals, and keep it live only if it still supports an active workflow.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish these currently published web flows in account 57410 as routine hygiene cleanup: EVAN/DEAN TESTING (experience_id: de9076bd-33e9-4c00-9db4-86921a845ac5), ServiceBridge Test (experience_id: 2130be0e-34dc-4f01-9e47-c24530f3f49c), Lisa Annuity Test Flow (experience_id: 8755f925-51cf-4cdc-8877-882d4c4d2114), and Test flow - Annuity DAP (experience_id: 64359f42-a199-4732-a541-370f3ddc5d01).",
            "title" => "Unpublish obvious test web flows",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to republish these experiences in account 57410: EVAN/DEAN TESTING (experience_id: de9076bd-33e9-4c00-9db4-86921a845ac5), ServiceBridge Test (experience_id: 2130be0e-34dc-4f01-9e47-c24530f3f49c), Lisa Annuity Test Flow (experience_id: 8755f925-51cf-4cdc-8877-882d4c4d2114), and Test flow - Annuity DAP (experience_id: 64359f42-a199-4732-a541-370f3ddc5d01)."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the currently published web flow (Non-Prod) Consent Acknowledgement Modal in account 57410. Experience ID: 1f1c5139-f1d2-4c14-a19c-ce7d71d9ac71.",
            "title" => "Unpublish non-prod consent modal",
            "undo_prompt" => "Use the product_support agent and its publish_experience tool to republish the web flow (Non-Prod) Consent Acknowledgement Modal in account 57410. Experience ID: 1f1c5139-f1d2-4c14-a19c-ce7d71d9ac71."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaning up stale published content should reduce configuration clutter and lower the chance that outdated test or internal-only experiences remain live, improving ongoing engagement governance.",
        "finding" => "Routine content hygiene check: your most recent inactivity review found **19 published experiences** that were already older than 3 weeks and had **no events or enrollments in the last 30 days**. A current published-state check shows several of the clearest cleanup candidates are **still live**.\n\nExamples to review:\n- [EVAN/DEAN TESTING](https://studio.appcues.com/flows/de9076bd-33e9-4c00-9db4-86921a845ac5/settings)\n  - Type: **Flow**\n  - Designed to promote a sales accelerator about annually renewable term products on the planning page for a specific segment; frequency is set to every time and no goals are attached.\n- [ServiceBridge Test](https://studio.appcues.com/flows/2130be0e-34dc-4f01-9e47-c24530f3f49c/settings)\n  - Type: **Flow**\n  - Appears to be sample/test onboarding content on the internal ServiceBridge requests page in `int.connect.nml.com`; it has generic placeholder copy and no goals.\n- [Lisa Annuity Test Flow](https://studio.appcues.com/flows/8755f925-51cf-4cdc-8877-882d4c4d2114/settings)\n  - Type: **Flow**\n  - Event-triggered test flow for the internal eApps environment (`int.connect.nml.com`) tied to the custom event `appcues_custom:Annuity DAP App Click`; no goals are configured.\n- [Test flow - Annuity DAP](https://studio.appcues.com/flows/64359f42-a199-4732-a541-370f3ddc5d01/settings)\n  - Type: **Flow**\n  - Internal-domain test flow for `int.connect.nml.com/eapps`; marked as a test-derived experience and has no goals.\n- [(Non-Prod) Consent Acknowledgement Modal](https://studio.appcues.com/flows/1f1c5139-f1d2-4c14-a19c-ce7d71d9ac71/settings)\n  - Type: **Flow**\n  - Non-production consent acknowledgement modal for third-party lending pages across internal/QA domains; triggered by a custom consent-click event and built for acknowledgement rather than ongoing engagement.\n\nThese are good candidates for review because stale published experiences can add clutter to Studio, create uncertainty about what is still in use, and increase the risk of outdated content remaining live longer than intended.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "medium",
        "title" => "19 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "0bde16d5-7d56-424d-b3a8-ebe3f0771a6e",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777405032395821, "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+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—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+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—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+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—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+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—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+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