25370918 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.261
Run Time 00:00.006
Inserted 1h ago
Scheduled 1h ago
Completed
Cancelled
Discarded 1h ago

Args

%{
  "account_id" => "223412",
  "data" => %{
    "account_insight_agent_id" => "ecfbe413-5116-43e6-8e23-260e962aefae",
    "insights" => [
      %{
        "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 5 properties (isVerified, monthlyRevenue, planTier, vatNumber, workspaceType) 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 'accountStatus' and set show_in_ui to false.",
            "title" => "Hide accountStatus",
            "undo_prompt" => "Update group property 'accountStatus' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'address' and set show_in_ui to false.",
            "title" => "Hide address",
            "undo_prompt" => "Update group property 'address' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'country' and set show_in_ui to false.",
            "title" => "Hide country",
            "undo_prompt" => "Update group property 'country' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'createdAt' and set show_in_ui to false.",
            "title" => "Hide createdAt",
            "undo_prompt" => "Update group property 'createdAt' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'employeeCount' and set show_in_ui to false.",
            "title" => "Hide employeeCount",
            "undo_prompt" => "Update group property 'employeeCount' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'foundationDate' and set show_in_ui to false.",
            "title" => "Hide foundationDate",
            "undo_prompt" => "Update group property 'foundationDate' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'hasGoogleDriveIntegration' and set show_in_ui to false.",
            "title" => "Hide hasGoogleDriveIntegration",
            "undo_prompt" => "Update group property 'hasGoogleDriveIntegration' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'isAiAssistantActive' and set show_in_ui to false.",
            "title" => "Hide isAiAssistantActive",
            "undo_prompt" => "Update group property 'isAiAssistantActive' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'isAiConfigured' and set show_in_ui to false.",
            "title" => "Hide isAiConfigured",
            "undo_prompt" => "Update group property 'isAiConfigured' and set show_in_ui to true."
          },
          %{
            "cta" => "Run",
            "prompt" => "Update group property 'isArchived' and set show_in_ui to false.",
            "title" => "Hide isArchived",
            "undo_prompt" => "Update group property 'isArchived' 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 15 stale group properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\naccountStatus - [View](https://studio.appcues.com/settings/properties/group?search=accountStatus)\n\naddress - [View](https://studio.appcues.com/settings/properties/group?search=address)\n\ncountry - [View](https://studio.appcues.com/settings/properties/group?search=country)\n\ncreatedAt - [View](https://studio.appcues.com/settings/properties/group?search=createdAt)\n\nemployeeCount - [View](https://studio.appcues.com/settings/properties/group?search=employeeCount)\n\nfoundationDate - [View](https://studio.appcues.com/settings/properties/group?search=foundationDate)\n\nhasGoogleDriveIntegration - [View](https://studio.appcues.com/settings/properties/group?search=hasGoogleDriveIntegration)\n\nisAiAssistantActive - [View](https://studio.appcues.com/settings/properties/group?search=isAiAssistantActive)\n\nisAiConfigured - [View](https://studio.appcues.com/settings/properties/group?search=isAiConfigured)\n\nisArchived - [View](https://studio.appcues.com/settings/properties/group?search=isArchived)\n\nisVerified - [View](https://studio.appcues.com/settings/properties/group?search=isVerified)\n\nmonthlyRevenue - [View](https://studio.appcues.com/settings/properties/group?search=monthlyRevenue)\n\nplanTier - [View](https://studio.appcues.com/settings/properties/group?search=planTier)\n\nvatNumber - [View](https://studio.appcues.com/settings/properties/group?search=vatNumber)\n\nworkspaceType - [View](https://studio.appcues.com/settings/properties/group?search=workspaceType)",
        "outcomes" => [],
        "priority" => "high",
        "title" => "Found 15 stale group properties to hide",
        "type" => "opportunity"
      }
    ]
  },
  "notification_id" => "b7ab62bd-5825-4dbf-b052-3283788232b8",
  "workflow_key" => "insight-opportunity-added"
}

Meta

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