25356546 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 18:00.237
Run Time 01:08.868
Inserted 7h ago
Scheduled 7h ago
Completed 7h ago (01:09)
Cancelled
Discarded

Args

%{
  "account_id" => "214089",
  "account_insight_agent_id" => "50ce3d79-f3d5-4a7e-8f53-177de2412cbb"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "4dHlV2Sqc08KCvt1zcuxq5eQ9/f6JybMZbSLsatCSJE",
  "recorded" => true,
  "return" => "g1AAABH4eJytWF1v3EQUTWlDYQtU5QF4vG9ppN1NolaIFlpII0oiVSAB4QWh1ax9157GnnFnxtn4rf8B/hMSP6O/hHvH+2Fnd1U764f98KznnHvuzN57PG5nZ+eD6adSWRnFzo5C4URCY7ccvd1L+U0ETmo1yhKh6PrWm99jhIk01sHRIWRGZ2icRAuxuER4k8vgYlBOgXHunFYWnIZYhgguxhSkCuWlDHORJMUQGMxgKqSSKoLHVbyH1uo+2HxsAyMzBuyDKzLsQy5fGEEwKtqHQBAPMn6IihiMzqMYTkTmCBOOz+Dd239A2AuQrh7HuAAlUvS/awN5RtIxhFQoHxrFyfeBxShF5UiLTEI0cH42hFPJ3CAtKK0GIVpnclJ8WYLNJBTAueSbDHIshE0x06tY3jELPhUU1KW0cpwgiIgDF87f6WSKQ16Fu2VKLa9Nj9fmDo/eDpzwn7/mvDY7HxJymjn++t25FwQRJSRbMu4FBlnnng/GogMb6+lIqlEuOT8TkdiScddJlyB/++SUkzab6LdErkI9WnJ9ezMuyhoOm2h5vgnfpucWzVkrNZ+VauZT1+l5dlO+xopebGDgf0Iy39xtVH3uVdWmr1N2vA1vY3UvN7BMRIBjrS+OlUgKJwPbRuEXXuEKxDqVP27L31jpTxuYqJ46ERmR3kjql17qKsY6rZty3TyCrTetytMxml8m/N9opbPctLXpbTZtI97G6jaxZEamwhTHYSpVG3EPvLjq7HXaftiCtbG0JxtIzFgEbSR97CXxrHVSvrkBy9arY0WCdqJNgO26QLk61dltVqcJa2Npp+8leYUitL8VqtVifXVN4QJkndBNdaxFDF7vawb7iLSOHF656W0lE79xyEFJV4xkuBi6NxtiR7cYvI9XGQZkGUYyzcjx8NijkwSFIud13YlNpYtBK7JqojRfS+/oHdNEztvg7n8vNQmGo8dARTG5JpO9povZcJmFC+uTs6OB3OmBMyK4wLDvZfNobsnKkXtkf8bxGokqwGGv90qQJ7ZINvQ5PDkk+1dYcnP6aa83M0IwgD//kDj962HsXGafHhxYl4dSD0WWBTnaYaDTA8qso7DtwTK8Ax/v9xaFCeJnM7B9gp37kY6A53AEXTME3cDXIIlipRt3Q7MCS1SrzbAbrlVcIqu1pW54apBEwSW1G2RGIsBqQesGuIpYI1gUkq55FsBMZ3VH8FYzXOUhtCPcCiIRcBXsBpiRCHD5iNwNbOWRu1rovj589/bveq2rOpduuKuI+77B6NzRTLRlu6HftaFewhd3YhnF9Ua4997iXx4L+OmcPt+edJZp43JFuK+nu1T3y67y78mslB8tu2RcRNQCvGHnQxSg3bhkmz/Wr7Bq38So8Sh4VCZwCD9rgpmi4SMBF8REQzkMcmO47y17DZg84WOTCd1Jl5bPL/BKWk5jeSQhbSot9ylPO1iEOj/nGf4PLbkpiA",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "mekUwEXqH4hcOi1d6KsfxsE5KeyftDwfQ/VNlTJuWMA",
  "workflow" => true,
  "workflow_id" => "019ddeab-ea44-7941-b865-649b388e2ee3"
}

Recorded Output

%{
  notes: "Created 1 property hygiene insight for 14 stale visible group properties older than 30 days. None were matched in current experience rule references or existing non-dismissed group-property insights.",
  insights_data: [
    %{
      "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 4 properties (sso, subscription, type, uiBranding) 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 'created' and set show_in_ui to false.",
          "title" => "Hide created",
          "undo_prompt" => "Update group property 'created' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'csmUserId' and set show_in_ui to false.",
          "title" => "Hide csmUserId",
          "undo_prompt" => "Update group property 'csmUserId' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'emailBranding' and set show_in_ui to false.",
          "title" => "Hide emailBranding",
          "undo_prompt" => "Update group property 'emailBranding' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'facebookAnalytics' and set show_in_ui to false.",
          "title" => "Hide facebookAnalytics",
          "undo_prompt" => "Update group property 'facebookAnalytics' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'instagramAnalytics' and set show_in_ui to false.",
          "title" => "Hide instagramAnalytics",
          "undo_prompt" => "Update group property 'instagramAnalytics' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'numberOfUsers' and set show_in_ui to false.",
          "title" => "Hide numberOfUsers",
          "undo_prompt" => "Update group property 'numberOfUsers' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'primaryAdmin' and set show_in_ui to false.",
          "title" => "Hide primaryAdmin",
          "undo_prompt" => "Update group property 'primaryAdmin' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'rbac' and set show_in_ui to false.",
          "title" => "Hide rbac",
          "undo_prompt" => "Update group property 'rbac' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'salesforceId' and set show_in_ui to false.",
          "title" => "Hide salesforceId",
          "undo_prompt" => "Update group property 'salesforceId' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update group property 'salesforceLeadsSync' and set show_in_ui to false.",
          "title" => "Hide salesforceLeadsSync",
          "undo_prompt" => "Update group property 'salesforceLeadsSync' 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 14 stale group properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\ncreated - [View](https://studio.appcues.com/settings/properties/group?search=created)\n\ncsmUserId - [View](https://studio.appcues.com/settings/properties/group?search=csmUserId)\n\nemailBranding - [View](https://studio.appcues.com/settings/properties/group?search=emailBranding)\n\nfacebookAnalytics - [View](https://studio.appcues.com/settings/properties/group?search=facebookAnalytics)\n\ninstagramAnalytics - [View](https://studio.appcues.com/settings/properties/group?search=instagramAnalytics)\n\nnumberOfUsers - [View](https://studio.appcues.com/settings/properties/group?search=numberOfUsers)\n\nrbac - [View](https://studio.appcues.com/settings/properties/group?search=rbac)\n\nsalesforceId - [View](https://studio.appcues.com/settings/properties/group?search=salesforceId)\n\nsalesforceLeadsSync - [View](https://studio.appcues.com/settings/properties/group?search=salesforceLeadsSync)\n\nsso - [View](https://studio.appcues.com/settings/properties/group?search=sso)\n\nsubscription - [View](https://studio.appcues.com/settings/properties/group?search=subscription)\n\ntype - [View](https://studio.appcues.com/settings/properties/group?search=type)\n\nuiBranding - [View](https://studio.appcues.com/settings/properties/group?search=uiBranding)\n\nLast seen 60–90 days ago:\n\nprimaryAdmin - [View](https://studio.appcues.com/settings/properties/group?search=primaryAdmin)",
      "outcomes" => [],
      "priority" => "high",
      "title" => "Found 14 stale group properties to hide",
      "type" => "opportunity"
    }
  ]
}

Errors

No Errors