25398173 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.013
Run Time 01:05.116
Inserted 10h ago
Scheduled 10h ago
Completed 10h ago (01:06)
Cancelled
Discarded

Args

%{
  "account_id" => "121779",
  "account_insight_agent_id" => "a35ee0f0-41fa-4293-924b-5eac5af383d1"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "B5d/sATqAvCXy692RbjaKeQFxrhj2AlyTilYMYg4NiM",
  "recorded" => true,
  "return" => "g1AAABfbeJztWM1uHMcRpig5VmgEAQIECHzqnAIMloREWnJCAwEoOYgEG7IgUgeflr0zPbtt9kyP+4er8SGXXPIKeYA8QE5+DJ/8Pv6qemZn9ocBLMoHAbmQ07093VVfffVV9YS9vb395Qe1DcpXe3t37j91SgZViBOha6/ni+CFLINywqlrrZa6ngtpjDj5s4ges42zjXJBKyyrC/FAzJ2NzWj6SJxh+dZap4QP0qjPcFAa6LSswLmiiTOj/QKDFy/PRZBurgJOnojlQhslwkIJiz9OnDzit/PonKqDaUWseQ+yxctSiYUu8DOGuoBbsOaFFbWsyA1d5xYu+qDqnGxaKuxUqKBy+H+0/E3v/xRvSgOc7gb8+aiiPzIP2tbTxsiaUDv72kaxkNcwbWnTwbV6E+CVavzpwcMjkWXPyBIY7dUIiCwTpbMVe+TVvIITYha1KeCbtzTdsoOIDwLQw1PGEDG5wuXo4JhOeMUR4r1uAFC4aNKh1okrmqibFDhadh7dtWontEGN0+Bc3lsMpApNLgMmHRbjUIaFDKMQzhRt29gmGuaRLtmgwQRj5zoX2nfra6UKwE2ofphQ9YT1HcL6Hs3ezYPk/68iYb33K5xdNYEef3ztExkoQlNZS9N62DInFMkp+ik2FPgpEXDaWd2KYK3Bn8SO5CGzcYunNwbn9XMxazEb2Ce/sMuprqdR066lNNiQIFYyX2HVnoqpV97Dw5cwkULlJ6upV7D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VysZM2l4K1Eff/b963lP3vyd7oRT0hHbKzD8wKtLRIyj8r3z+l/lxBDW4bJmbNLT09geYP4vJAVIpDSsjgLWNGVVmr0LojG61OvncFEYV/YcAERu5oIVUmNuVI7H9JuU34+h7bwhuiNQp1+0P6stnVb2Yh+HNSdR2yJeSN9eJIs+3J99qml9AznACftRpNj2/pxMoxGq4ONzaUhKOiBWIE5glES3ucIs6omgjLoQhMiTXRgPFLnDK/AX7WU5nPAgoHlo4Ku1He2Vk9tMR5+VZaIISYSTRKKRIIzIlHqGskK0Nz3LfegEH/kzO1ydieBdlTl/av35yL2f76+53zd7qf+wJw9efTO78n/OhO+kricUsCpwRr3MmgzQt9VVfJKDRWf+cntAeDsylhX8IamBLeugLe8yCXnGjOZr8F0LV8vb5ut1f7sObgd+Uq5cnsjaeh60n+5yrL0fW18a6ViuKtZ6r6gTYbPc9xcpY9+XX1B+wQC88VevZFVgzdODw5xzKePuWvD/qmYnsKKyx1EvOTVfznZsZrz4XIiLrt4p6UPj493rCVipd//8XBycvJwx5JVltOWo6TlYZ+2NFglIA363OLnjv303LOdnwe+03DE+GRS18GumUMq5shDbtXRXRwW6CRVvSV21CdSUqD3NZG5dNlrDx22ISk81esEDVLO4Imox1+SPYVs6+N1+iacqNSJbAfYdvt5Z6P93G4476JXW68mT25iZ/qYMqLUjW3JWtv5kW0a6wIuIqH95id02EmZ",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_key" => "i/tZEa+VfOKU2lr45KbUqbYJXtvBDlFjd4ufNNPhtKY",
  "workflow" => true,
  "workflow_id" => "019de027-d8ef-789c-9607-89c125667ad0"
}

Recorded Output

%{
  notes: "Created 3 insights after reviewing all 38 user properties and 0 group properties. All user properties are stale; 3 are still used in published NPS targeting, while the other 35 are currently unused and safe hide candidates. No naming inconsistencies were detected.",
  insights_data: [
    %{
      "action_plan" => "You have two safe next steps:\n1. **Hide these properties** from the segment builder so they are not reused in future targeting.\n2. **Review the published NPS targeting rules** for king nps and NPS Survey, then replace these conditions with properties that are still being populated if the targeting logic is still needed.",
      "actions" => [
        %{
          "cta" => "Run",
          "prompt" => "Use the data_analyst agent and the update_user_property tool to hide these stale user properties from the segment builder UI by setting show_in_ui to false for each property: _sessionPageviews, _sessionRandomizer.",
          "title" => "Hide stale session targeting properties",
          "undo_prompt" => "Use the data_analyst agent and the update_user_property tool to restore these user properties in the segment builder UI by setting show_in_ui to true for each property: _sessionPageviews, _sessionRandomizer."
        }
      ],
      "cta_text" => "Hide stale properties",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Removing or replacing stale targeting conditions should reduce missed audience matches and help restore reliable survey delivery and response collection.",
      "finding" => "The user properties **`_sessionPageviews`** and **`_sessionRandomizer`** have not been seen for **64 days** since **2026-02-25**, but they are still referenced in published targeting for **king nps** and **NPS Survey**.\n\nIf these properties are no longer being populated by your SDK, users will stop matching those conditions and the surveys may silently miss eligible users.",
      "outcomes" => ["engagement", "retention"],
      "priority" => "high",
      "title" => "Published NPS targeting still depends on 64-day-stale session properties",
      "type" => "issue"
    },
    %{
      "action_plan" => "Either **hide `_deviceType`** to prevent future use, or **update the NPS Survey targeting** to use a currently active property if device targeting is still required.",
      "actions" => [
        %{
          "cta" => "Run",
          "prompt" => "Use the data_analyst agent and the update_user_property tool to hide this stale user property from the segment builder UI by setting show_in_ui to false for the property: _deviceType.",
          "title" => "Hide stale device property",
          "undo_prompt" => "Use the data_analyst agent and the update_user_property tool to restore this user property in the segment builder UI by setting show_in_ui to true for the property: _deviceType."
        }
      ],
      "cta_text" => "Hide `_deviceType`",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Cleaning up this stale condition should improve targeting accuracy for the legacy survey and reduce unintended audience exclusions.",
      "finding" => "The user property **`_deviceType`** has not been seen for **64 days** since **2026-02-25**, but it still appears in published targeting for **NPS Survey**.\n\nThat creates a delivery risk: if `_deviceType` is no longer arriving from the SDK, device-based audience filters in this survey will no longer match as intended.",
      "outcomes" => ["engagement", "retention"],
      "priority" => "high",
      "title" => "Legacy NPS Survey uses a stale device property in targeting",
      "type" => "issue"
    },
    %{
      "action_plan" => "Hide these unused properties to reduce clutter in the segment builder and lower the chance that outdated fields get selected in future targeting. If any of them are expected to be active, verify the SDK or identification payload before hiding them permanently.",
      "actions" => [
        %{
          "cta" => "Run",
          "prompt" => "Use the data_analyst agent and the update_user_property tool to hide these stale user properties from the segment builder UI by setting show_in_ui to false for each property: _ABGroup, accountId, _appcuesId, _appId, _audienceRandomizer, _browser, companyName, createdAt, _currentPageTitle, _currentPageUrl, _doNotTrack, email, firstName, _firstSeenAt, _hostname, _isAnonymous, language, _lastBrowserLanguage, _lastContentShownAt, _lastPageTitle, _lastPageUrl, _lastSeenAt, _localId, location, _operatingSystem, planTier, purchasedAd, renewalDate, role, _timezoneCode, _timezoneOffset, _updatedAt, _userAgent, userId, version.",
          "title" => "Hide unused stale user properties",
          "undo_prompt" => "Use the data_analyst agent and the update_user_property tool to restore these user properties in the segment builder UI by setting show_in_ui to true for each property: _ABGroup, accountId, _appcuesId, _appId, _audienceRandomizer, _browser, companyName, createdAt, _currentPageTitle, _currentPageUrl, _doNotTrack, email, firstName, _firstSeenAt, _hostname, _isAnonymous, language, _lastBrowserLanguage, _lastContentShownAt, _lastPageTitle, _lastPageUrl, _lastSeenAt, _localId, location, _operatingSystem, planTier, purchasedAd, renewalDate, role, _timezoneCode, _timezoneOffset, _updatedAt, _userAgent, userId, version."
        }
      ],
      "cta_text" => "Hide 35 stale properties",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "A smaller, cleaner property list should make audience building faster and reduce targeting mistakes caused by selecting outdated fields.",
      "finding" => "I found **35 stale user properties** that are **not referenced in any published targeting rules**, so they appear safe to hide.\n\nNotable examples:\n- **76 days inactive:** `_lastContentShownAt`\n- **93 days inactive:** `email`, `version`\n- **122 days inactive:** `role`\n- **~1,331 days inactive:** `accountId`, `companyName`, `createdAt`, `firstName`, `language`, `location`, `planTier`, `purchasedAd`, `renewalDate`\n- **64 days inactive:** the remaining SDK-driven properties in this set, including `_browser`, `_currentPageUrl`, `_hostname`, `userId`, and others\n\nNo group properties were found in the account.",
      "outcomes" => ["engagement"],
      "priority" => "low",
      "title" => "35 stale user properties are safe to hide from the segment builder",
      "type" => "opportunity"
    }
  ]
}

Errors

No Errors