25361869 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.268
Run Time 00:00.009
Inserted 1h ago
Scheduled 1h ago
Completed
Cancelled
Discarded 1h ago

Args

%{
  "account_id" => "55501",
  "data" => %{
    "account_insight_agent_id" => "283fef42-bcba-439b-aea3-966ed28e46f5",
    "insights" => [
      %{
        "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 6 properties (delivra_branded_product_updates, group_id, kb_doc_access, referral_partner_id, support_portal_access, user_id) can be hidden through Captain AI — ask it to hide them by name — or updated manually in the segment builder UI. Hiding is non-destructive — property data is retained and any property can be made visible again at any time.",
        "actions" => [
          %{
            "cta" => "Run",
            "prompt" => "Update group property '_groupId' and set show_in_ui to false.",
            "title" => "Hide _groupId",
            "undo_prompt" => "Update group property '_groupId' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'csm_managed' and set show_in_ui to false.",
            "title" => "Hide csm_managed",
            "undo_prompt" => "Update group property 'csm_managed' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'csm_name' and set show_in_ui to false.",
            "title" => "Hide csm_name",
            "undo_prompt" => "Update group property 'csm_name' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_annual_revenue' and set show_in_ui to false.",
            "title" => "Hide customer_annual_revenue",
            "undo_prompt" => "Update group property 'customer_annual_revenue' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_industry' and set show_in_ui to false.",
            "title" => "Hide customer_industry",
            "undo_prompt" => "Update group property 'customer_industry' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_monthly_revenue' and set show_in_ui to false.",
            "title" => "Hide customer_monthly_revenue",
            "undo_prompt" => "Update group property 'customer_monthly_revenue' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_name' and set show_in_ui to false.",
            "title" => "Hide customer_name",
            "undo_prompt" => "Update group property 'customer_name' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_plan' and set show_in_ui to false.",
            "title" => "Hide customer_plan",
            "undo_prompt" => "Update group property 'customer_plan' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_status' and set show_in_ui to false.",
            "title" => "Hide customer_status",
            "undo_prompt" => "Update group property 'customer_status' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'customer_total_revenue' and set show_in_ui to false.",
            "title" => "Hide customer_total_revenue",
            "undo_prompt" => "Update group property 'customer_total_revenue' and set show_in_ui to true."
          }
        ],
        "cta_text" => nil,
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaner segment builder with only active properties",
        "finding" => "Found 16 stale group properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\n_groupId - [View](https://studio.appcues.com/settings/properties/group?search=_groupId)\n\ncsm_managed - [View](https://studio.appcues.com/settings/properties/group?search=csm_managed)\n\ncustomer_annual_revenue - [View](https://studio.appcues.com/settings/properties/group?search=customer_annual_revenue)\n\ncustomer_industry - [View](https://studio.appcues.com/settings/properties/group?search=customer_industry)\n\ncustomer_monthly_revenue - [View](https://studio.appcues.com/settings/properties/group?search=customer_monthly_revenue)\n\ngroup_id - [View](https://studio.appcues.com/settings/properties/group?search=group_id)\n\nreferral_partner_id - [View](https://studio.appcues.com/settings/properties/group?search=referral_partner_id)\n\nuser_id - [View](https://studio.appcues.com/settings/properties/group?search=user_id)\n\nLast seen 30–60 days ago:\n\ncsm_name - [View](https://studio.appcues.com/settings/properties/group?search=csm_name)\n\ncustomer_name - [View](https://studio.appcues.com/settings/properties/group?search=customer_name)\n\ncustomer_plan - [View](https://studio.appcues.com/settings/properties/group?search=customer_plan)\n\ncustomer_status - [View](https://studio.appcues.com/settings/properties/group?search=customer_status)\n\ncustomer_total_revenue - [View](https://studio.appcues.com/settings/properties/group?search=customer_total_revenue)\n\ndelivra_branded_product_updates - [View](https://studio.appcues.com/settings/properties/group?search=delivra_branded_product_updates)\n\nkb_doc_access - [View](https://studio.appcues.com/settings/properties/group?search=kb_doc_access)\n\nsupport_portal_access - [View](https://studio.appcues.com/settings/properties/group?search=support_portal_access)",
        "outcomes" => [],
        "priority" => "high",
        "title" => "Found 16 stale group properties to hide",
        "type" => "opportunity"
      }
    ]
  },
  "notification_id" => "a333765a-e7d6-48f4-986b-9a374832f2ac",
  "workflow_key" => "insight-opportunity-added"
}

Meta

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

Errors

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