25115177 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.0.159
Queue Time 00:00.355
Run Time 00:00.009
Inserted 18h ago
Scheduled 18h ago
Completed
Cancelled
Discarded 18h ago

Args

%{
  "account_id" => "93845",
  "data" => %{
    "account_insight_agent_id" => "c0eccf12-c36b-4a92-a9eb-f6331dc4019d",
    "insights" => [
      %{
        "action_plan" => "Review this list as routine cleanup.\n\n1. Open each linked settings page and confirm whether the flow still serves a live use case, rare edge case, or internal testing need.\n2. Unpublish flows that are no longer needed, especially legacy free-trial tours, outdated campaigns, or staging-only content.\n3. Keep flows that are intentionally dormant for support or test scenarios, but consider renaming/tagging them clearly so future hygiene checks can separate them from true cleanup candidates.\n4. Start with the lowest-risk items first: outdated one-off campaigns, review prompts, and narrowly targeted staging flows.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support agent and the unpublish_experience tool to unpublish the published web flow with ID 9ee2d93e-fb5e-40ec-a357-e8e909530b86 named \"Churned Supplier Redirect (Sell -> Buy Mode)\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and was published on 2024-03-18.",
            "title" => "Unpublish stale churn redirect flow",
            "undo_prompt" => "Use the product support agent and the publish_experience tool to republish the web flow with ID 9ee2d93e-fb5e-40ec-a357-e8e909530b86 named \"Churned Supplier Redirect (Sell -> Buy Mode)\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support agent and the unpublish_experience tool to unpublish the published web flow with ID 3b81cf2e-c877-47d7-b5f1-0b5a319736d5 named \"00 Free Trial Feedback\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and was published on 2023-03-14.",
            "title" => "Unpublish stale trial feedback flow",
            "undo_prompt" => "Use the product support agent and the publish_experience tool to republish the web flow with ID 3b81cf2e-c877-47d7-b5f1-0b5a319736d5 named \"00 Free Trial Feedback\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support agent and the unpublish_experience tool to unpublish the published web flow with ID ec4be026-2398-4ed4-9846-305f4625cd18 named \"Give us a review - Suppliers\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and was published on 2022-03-10.",
            "title" => "Unpublish stale supplier review flow",
            "undo_prompt" => "Use the product support agent and the publish_experience tool to republish the web flow with ID ec4be026-2398-4ed4-9846-305f4625cd18 named \"Give us a review - Suppliers\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support agent and the unpublish_experience tool to unpublish the published web flow with ID dc871b29-f503-455a-9f1d-9c1039c8d671 named \"Give us a review - Venues\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and was published on 2022-04-14.",
            "title" => "Unpublish stale venue review flow",
            "undo_prompt" => "Use the product support agent and the publish_experience tool to republish the web flow with ID dc871b29-f503-455a-9f1d-9c1039c8d671 named \"Give us a review - Venues\"."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product support agent and the unpublish_experience tool to unpublish the published web flow with ID 1ecc42fa-8bc9-4644-b809-b200c370a619 named \"NSW Lockdown Credit Card\". This flow has had 0 seen, 0 completed, 0 skipped, and 0 errors in the last 30 days and was published on 2021-10-14.",
            "title" => "Unpublish outdated lockdown card flow",
            "undo_prompt" => "Use the product support agent and the publish_experience tool to republish the web flow with ID 1ecc42fa-8bc9-4644-b809-b200c370a619 named \"NSW Lockdown Credit Card\"."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaning up inactive published content should reduce experience sprawl, simplify ongoing administration, and make it easier to focus optimization work on experiences that still drive activation and engagement.",
        "finding" => "Routine hygiene check: **27 published experiences** were published more than 3 weeks ago and had **0 seen events in the last 30 days** (all also had **0 completions, 0 skips, and 0 errors**). No published Pins, Banners, Checklists, or Launchpads were found in this account during the review — every inactive item below is a web Flow.\n\n- [FT 2 - Dashboard](https://studio.appcues.com/flows/101f7a7d-9bb3-421d-ad12-e5e2f684fe08/settings)\n  - Type: Flow\n  - Designed to orient free-trial users on the supplier dashboard for a targeted trial segment.\n- [FT 10 - New Order](https://studio.appcues.com/flows/e307bcf2-7d16-49df-9e1f-bf3875e105ce/settings)\n  - Type: Flow\n  - Designed to guide free-trial users through starting a new order from the supplier side.\n- [FT 1 - Welcome (starting buy-side)](https://studio.appcues.com/flows/2e99b5f2-5b85-4ba0-9cd2-09d47a1428c6/settings)\n  - Type: Flow\n  - Designed as a welcome/start screen for free-trial users entering buy-side mode.\n- [self service invoice confirmation feedback](https://studio.appcues.com/flows/38e3a104-d9c0-409a-8549-3e2e19f806b4/settings)\n  - Type: Flow\n  - Designed to collect feedback on invoice confirmation and Xero integration changes.\n- [Integration Test [DO NOT DELETE]](https://studio.appcues.com/flows/de49b2b9-7ce6-40f8-ad4d-1fe204c0b1e0/settings)\n  - Type: Flow\n  - Designed as a localhost integration test flow for a specific internal/test audience.\n- [Integration Test - with feature toggle [DO NOT DELETE]](https://studio.appcues.com/flows/cca27b8c-45a5-417d-ba51-a8691fdf5a59/settings)\n  - Type: Flow\n  - Designed as a localhost integration test flow gated by a feature toggle.\n- [New Customer Mobile](https://studio.appcues.com/flows/55ccc8db-c313-4326-8b4e-f4646cb3de04/settings)\n  - Type: Flow\n  - Designed as a mobile onboarding walkthrough for new customer marketplace users.\n- [New Customer Desktop](https://studio.appcues.com/flows/2a4b6eeb-f54e-4c69-ace0-8d5f55b58f47/settings)\n  - Type: Flow\n  - Designed as a desktop onboarding walkthrough for new customer marketplace users.\n- [Churned Supplier Redirect (Sell -> Buy Mode)](https://studio.appcues.com/flows/9ee2d93e-fb5e-40ec-a357-e8e909530b86/settings)\n  - Type: Flow\n  - Designed to redirect a targeted churned supplier away from sell mode back to buy mode.\n- [Manage Users Reminder](https://studio.appcues.com/flows/6ab4ef12-e611-46f3-822c-06a291158682/settings)\n  - Type: Flow\n  - Designed to prompt customers to add teammates for visibility and order management.\n- [FT 4 - Orders (Picking)](https://studio.appcues.com/flows/b42aa6be-9714-41e0-9554-51f033f6ced0/settings)\n  - Type: Flow\n  - Designed to teach free-trial users how to pick and manage submitted orders.\n- [00 Free Trial Feedback](https://studio.appcues.com/flows/3b81cf2e-c877-47d7-b5f1-0b5a319736d5/settings)\n  - Type: Flow\n  - Designed to collect free-trial feedback after users reached the new-order experience.\n- [FT 6 - Products](https://studio.appcues.com/flows/02f8bbd4-3fb0-4486-86d8-78c62067dd2f/settings)\n  - Type: Flow\n  - Designed to explain supplier product, pricing, visibility, and import/export management.\n- [FT 10B - New Order (placing order)](https://studio.appcues.com/flows/69e1ee87-f6f9-43fb-b73d-40b6784e4e6e/settings)\n  - Type: Flow\n  - Designed to guide free-trial users through product search while placing an order.\n- [FT 11 - Customer Marketplace](https://studio.appcues.com/flows/c4f3b02a-fb38-4751-989a-887ee0cc7641/settings)\n  - Type: Flow\n  - Designed to explain how customers browse marketplace items, pantry lists, and delivery dates.\n- [FT 7c - Customer Details](https://studio.appcues.com/flows/336469f5-5208-4018-b175-d898c6a1ea0c/settings)\n  - Type: Flow\n  - Designed to guide free-trial users through customer-detail actions.\n- [FT 5 - Deliveries](https://studio.appcues.com/flows/945c7a2e-531f-4811-ab24-ea4a79fa3da6/settings)\n  - Type: Flow\n  - Designed to explain delivery setup or delivery-management steps in the free trial.\n- [FT 4C - digital picking how-to](https://studio.appcues.com/flows/26d47d34-b9d8-45b1-b836-2c6a0df88826/settings)\n  - Ty" <> ...,
        "outcomes" => ["engagement"],
        "priority" => "medium",
        "title" => "27 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "dd2ccd71-4141-48d9-870a-01cf53e1488b",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

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