25352733 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 09:00.761
Run Time 01:10.683
Inserted 2h ago
Scheduled 2h ago
Completed 1h ago (01:11)
Cancelled
Discarded

Args

%{
  "account_id" => "52942",
  "account_insight_agent_id" => "836bb837-a1ab-4d68-9cc0-7eec076391f8"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "gKD+jaOsOvAZ/WBZrZSrUrVIeDpg+EGMjYtt8jVzCLM",
  "recorded" => true,
  "return" => "g1AAABR9eJy9WM1y2zYQdpqkSeWmP2+AUxPPWLJkWbbk/LgedzrxNNNDpuml01EgYiUiJgEWACXrlmdo+4R5jh66CygU1ZFqSWZ7ME1C2G/32wWxH+F2dnY+mTySyspR7GxfcMcTHLvj8LKb0oVHTmrVzxKu8PnO7z/FwIbSWMdaTZYZnYFxEiyL+RjYb7mMrurBhA1y57SyzGkWSwHMxZAyqYQcS5HzJJk2GIEZSLlUUo3YSRnvSaqFHEoQ33EH+0zxFK9GJ3i1Ec6y+8yBSe15FEHmQOyz3IJ5jRNsuCWLPRZxDAQoAAEKQzA6H8XsgmcOnbLzS/bh/Z+M2ysm3WKgg6n36X/XhuUZ5gYES7nysSMRmscsjFJQDsnKRIBhby4b7KUUREdaprSqC7DO5JiScQCbcZwySjZNMkCxIDZX9Dedz5gFn3IMaiytHCTA+IgC587PdDKFBpXpQci5peLVqHj3aPRu5Lj//zqn4u18ishp5uhWvfGEfKbmDh/34RrvJKgI+kLaVFoLon/Mu+3O8PC43m21T+pH0XG7zlvdYf2oJ3rQHAwOO73eYx++BcdsrCd9qfq5pIwOeWJDjPeddAnQ3dlLSvP2vvzCzJXQ/Tmh9P8ihMWERuUpHrSbrajVPKkPhh2Mo9Uc1HsD3qp3o27n6HB41Om0ulWleB1ft07xbQitneJvV0SUTs+zLMrBXopNkvZ1SFrJelkazrZ3ujax0+U+ogTT7DahtOspBbtlZHrbOFqbxopURQZoM6WdfRMuXwUuc+NlhF5s7fK2rECNpdEq3bBCgVXJeANWa7hcm9Xz5S58r/8RO+EmnL7wnArTZYyebelubT5PlzuQ9lykUm3C5nPPZma4jMuKt/UGV7etTMKte6VHm3EJlSlMN6jMje7W5vMvDjZdaI8KOqvW2YplcJMzT+YdATxEIn0H125yV8mERj7D1026aV+KYmh3NuSmGRSDX1JjjHDX6cs0Q4FGY+2LBLjCUP4pHCfSxUwrVJY8aMW5FvYCb0jKWY3w/sEP32skyVonzKJcX6RG0tnFJA9NoRlRPWscyJ2uO8OjKxLLxJpG0VaQ1iU1Oe/jjVrtFSYIg0TR/IL1mihWpxa1pz6t1baXVKzOfvlZwuTXJ7FzmT09OLAuF1I3eGicjUinB1gLh0TtwZzRATE8s8BNFD/f3v3eqtjX0Sr/YezruKfYSwKjmmhKgIgfen4lyAGKMOdttxrgOR6il9pfJeglPESfbd+VIM+wELX8WVsJdBkQ8f1HaxW4/vu5VqNP7krwCAjxFj7aKwFeQEQPxTlAJegF2l55Tzxufnj/x+K2WCiXStwWaOi26LyVIBdoM+TKQv4IhrjhhKYS1AA1K2tli7s4IPIdXucOjcCGfp8ZqQ02c3q4F8tRvCg5vrmp+4ZTJG9NcsDLA51l2rhcIey7yX1svKGr/3UR9jPWmkuTeDrCzRP1ZjiUY3yIC5wZGCNnOlbiScIOD4vzoOVBaK8pUAgo1g6rtMGKuOlUitTAPsuVgSEY6kciPFGYGE8JChI58p5mxJ6iToiSXOCst/RO27dsABHHCOgMzZ9nfYQkYQHX0lIpSuqCmRzNGn8D23Xp1g",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "d/ZA4gmYnNICvh2z0n/A1mIvAk5cNlWWFDnRDAjQr5I",
  "workflow" => true,
  "workflow_id" => "019ddea7-577f-74bc-9d05-3781122d0d49"
}

Recorded Output

%{
  insights_data: [
    %{
      "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 7 properties (modifiedDate, name, role, scopes, termsAccepted, userRoles, username) 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 user property '_experience_dismissed_6a835f26-8137-4c63-a18f-49d9e0bb2599' and set show_in_ui to false.",
          "title" => "Hide _experience_dismissed_6a835f26-8137-4c63-a18f-49d9e0bb2599",
          "undo_prompt" => "Update user property '_experience_dismissed_6a835f26-8137-4c63-a18f-49d9e0bb2599' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property '_experience_dismissed_b301c107-bf5f-410b-9ba1-8c8542f45518' and set show_in_ui to false.",
          "title" => "Hide _experience_dismissed_b301c107-bf5f-410b-9ba1-8c8542f45518",
          "undo_prompt" => "Update user property '_experience_dismissed_b301c107-bf5f-410b-9ba1-8c8542f45518' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property '_myAppcuesId' and set show_in_ui to false.",
          "title" => "Hide _myAppcuesId",
          "undo_prompt" => "Update user property '_myAppcuesId' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'client' and set show_in_ui to false.",
          "title" => "Hide client",
          "undo_prompt" => "Update user property 'client' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'createdDate' and set show_in_ui to false.",
          "title" => "Hide createdDate",
          "undo_prompt" => "Update user property 'createdDate' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'environment' and set show_in_ui to false.",
          "title" => "Hide environment",
          "undo_prompt" => "Update user property 'environment' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'firstName' and set show_in_ui to false.",
          "title" => "Hide firstName",
          "undo_prompt" => "Update user property 'firstName' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'isAdmin' and set show_in_ui to false.",
          "title" => "Hide isAdmin",
          "undo_prompt" => "Update user property 'isAdmin' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'lastLogin' and set show_in_ui to false.",
          "title" => "Hide lastLogin",
          "undo_prompt" => "Update user property 'lastLogin' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'lastName' and set show_in_ui to false.",
          "title" => "Hide lastName",
          "undo_prompt" => "Update user property 'lastName' 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 17 stale user properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\n_experience_dismissed_6a835f26-8137-4c63-a18f-49d9e0bb2599 - [View](https://studio.appcues.com/settings/properties/user?search=_experience_dismissed_6a835f26-8137-4c63-a18f-49d9e0bb2599)\n\n_experience_dismissed_b301c107-bf5f-410b-9ba1-8c8542f45518 - [View](https://studio.appcues.com/settings/properties/user?search=_experience_dismissed_b301c107-bf5f-410b-9ba1-8c8542f45518)\n\n_myAppcuesId - [View](https://studio.appcues.com/settings/properties/user?search=_myAppcuesId)\n\nclient - [View](https://studio.appcues.com/settings/properties/user?search=client)\n\ncreatedDate - [View](https://studio.appcues.com/settings/properties/user?search=createdDate)\n\nenvironment - [View](https://studio.appcues.com/settings/properties/user?search=environment)\n\nisAdmin - [View](https://studio.appcues.com/settings/properties/user?search=isAdmin)\n\nmodifiedDate - [View](https://studio.appcues.com/settings/properties/user?search=modifiedDate)\n\nname - [View](https://studio.appcues.com/settings/properties/user?search=name)\n\nrole - [View](https://studio.appcues.com/settings/properties/user?search=role)\n\ntermsAccepted - [View](https://studio.appcues.com/settings/properties/user?search=termsAccepted)\n\nuserRoles - [View](https://studio.appcues.com/settings/properties/user?search=userRoles)\n\nLast seen 60–90 days ago:\n\nfirstName - [View](https://studio.appcues.com/settings/properties/user?search=firstName)\n\nlastLogin - [View](https://studio.appcues.com/settings/properties/user?search=lastLogin)\n\nlastName - [View](https://studio.appcues.com/settings/properties/user?search=lastName)\n\nscopes - [View](https://studio.appcues.com/settings/properties/user?search=scopes)\n\nusername - [View](https://studio.appcues.com/settings/properties/user?search=username)",
      "outcomes" => [],
      "priority" => "high",
      "title" => "Found 17 stale user properties to hide",
      "type" => "opportunity"
    }
  ],
  notes: "Created 1 property hygiene insight after reviewing all 22 visible stale user properties older than 30 days. Found 17 non-auto, unreferenced, unreported properties eligible to hide; excluded `roles` because it is referenced by existing experience rules."
}

Errors

No Errors