25362618 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 14:50.084
Run Time 02:18.323
Inserted 2h ago
Scheduled 2h ago
Completed 2h ago (02:19)
Cancelled
Discarded

Args

%{
  "account_id" => "87532",
  "account_insight_agent_id" => "2caaadb2-1b4f-40b0-8487-60f1fd81d7b7"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "gojDMHcEDPS9oY6qdQ/UHIaYIBYFWtGGsrc2VgKObx4",
  "recorded" => true,
  "return" => "g1AAABEmeJytWE1v20YQdZq4H3LToJegPXVOTQxYcuye4jZNA7epDaQ+BHEvRSGsyZG4MbnL7A6l6NYf0X/Uf9Jf0pklRckBWYs2D5apFee9ebvizBvR1tbWR/P72ng9TciPY0Uq5bU7xC87mbyoiLQ14zxVht/fmb1JECbaeYKDJ5A7m6MjjR4SNUN4V+jocliGwEVBZI0HspDoGIESzECbWM90XKg0XYxAwBxmShttpnC4jveY0NO4Wljsgbx9jQbnKvVnlvRER0po/C5EislQSGI0TONsMU3gWOXEwPDiFP79629Q/hI0XU3mYgFGZRg+tw6KnPVjDJkyIT9OVu4Dj9MMDbEgncbo4Px0BCc6lpS1B2PNMObkXMGyZyXYMm2QDZWbHEoujK2M/C1Wd1TJZ4qTmmmvL1IENZXEFYU7SWc4kqP4pNxXLwc0kAO6J6t3I1Lh/+tCDmjrY0bOcpLLn86DICg8J10TPoqsIXxPr3CG6aOQkEcCn9j5WJtxoWWPJrzLJes2aUpRrr48kY1bjw5fkMLEdrwifX5zUt5CHG0i7Ic2jsJ5PI27iLpfiSojmwR9fzOyjcWcNePLU5E2fuG7yPsmyGvHahL8W18JbbwFv/wP45u1576L8ocr5esQTYJ/viX9xjqfNROFciqFqIu+L4K+OrRJV8tjci3dxnpaHg3tX8SZNl3UfB7UVIFNWo5uRLWxkhb4TLlLpC5CdoKQMq5Jx9ObEN32QPK0mOpuhaM8kCqww4FcQ7WxkpMW+OpKHsvDl3z3uevUw74uZTWgNGn89fZJ3LaneU14onzSvactIzv0tOvIgpi3AvApCxlLQ5/fNTrs3WfskDQtxjqul3aqJVrkWC8+wPc5RmyzxjrL2dHI2nfHKSrDqXzotOaaErCGrZgqzdXKIAZHNBE7aaZ8vf3VS8si4eAQPHvYq9LET1IifsrVJmuPjRsvFGSH5FR0ifFeUC2rHBuLORT7Jek6jSbC0WDwSrHv9cgu80d4+oTd3cKzWbNHg8G6v4Eh/PG7xvmfjxOi3B/t73sqYm1HKs+jAv0ostk+7y5x6n5/leO+5Pzco3JR8mwdcFfwS7vRE3YJxrjtXb0Xpnb4Jfd6g+2Pch2VmeqW1wtDjcbIVQPqBbfCYtSyHfQCWkIxZlWZewGtsAS1oRb2Q9EAzHzLEtULxxKMcVvHy16I2ofXkrmec3tjqxF3Q7m2BXEk+rJ4505bx5VZ3txLePS/2j++va6UljN0iJbaHmq9zXPrqDAM+3a+zVW0LNH/HDsMQ/XBqs8kiykXVLZ75c8OMOHZuyZbzsAfkoZWYCzESKF9rBVmnq4n6OTKj+DM8ifaywaVo7n2mfZS0AVxWCex/M0D5hzKKYhiEvi4yFM5nmoM9zT6D4VU4AY",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "MkyjwHAoo8L2cdFrZ8jzcyIzygi9vvOmVggWAxVVOB4",
  "workflow" => true,
  "workflow_id" => "019ddeb5-1277-7a02-9c84-2c155c6116ee"
}

Recorded Output

%{
  notes: "Created 1 property hygiene insight for 12 stale visible user properties with no detected experience references. No existing non-dismissed user-property insights were found to deduplicate against.",
  insights_data: [
    %{
      "action_plan" => "The first 10 properties have quick-action buttons to hide them individually. The remaining 2 properties (test_property, testRenewalsNotifications) 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 'contextLevel' and set show_in_ui to false.",
          "title" => "Hide contextLevel",
          "undo_prompt" => "Update user property 'contextLevel' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'courseId' and set show_in_ui to false.",
          "title" => "Hide courseId",
          "undo_prompt" => "Update user property 'courseId' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'emailRenewalsNotifications' and set show_in_ui to false.",
          "title" => "Hide emailRenewalsNotifications",
          "undo_prompt" => "Update user property 'emailRenewalsNotifications' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'emailTestRenewals' and set show_in_ui to false.",
          "title" => "Hide emailTestRenewals",
          "undo_prompt" => "Update user property 'emailTestRenewals' 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 'market' and set show_in_ui to false.",
          "title" => "Hide market",
          "undo_prompt" => "Update user property 'market' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'plugins' and set show_in_ui to false.",
          "title" => "Hide plugins",
          "undo_prompt" => "Update user property 'plugins' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'propertyTest2FromUrl' and set show_in_ui to false.",
          "title" => "Hide propertyTest2FromUrl",
          "undo_prompt" => "Update user property 'propertyTest2FromUrl' and set show_in_ui to true."
        },
        %{
          "cta" => "Run",
          "prompt" => "Update user property 'siteHash' and set show_in_ui to false.",
          "title" => "Hide siteHash",
          "undo_prompt" => "Update user property 'siteHash' 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 12 stale user properties that are visible, not auto-tracked, and not used by any experience.\n\nLast seen > 90 days ago:\n\ncontextLevel - [View](https://studio.appcues.com/settings/properties/user?search=contextLevel)\n\ncourseId - [View](https://studio.appcues.com/settings/properties/user?search=courseId)\n\nemailRenewalsNotifications - [View](https://studio.appcues.com/settings/properties/user?search=emailRenewalsNotifications)\n\nemailTestRenewals - [View](https://studio.appcues.com/settings/properties/user?search=emailTestRenewals)\n\nfirstname - [View](https://studio.appcues.com/settings/properties/user?search=firstname)\n\nisAdmin - [View](https://studio.appcues.com/settings/properties/user?search=isAdmin)\n\nmarket - [View](https://studio.appcues.com/settings/properties/user?search=market)\n\nplugins - [View](https://studio.appcues.com/settings/properties/user?search=plugins)\n\npropertyTest2FromUrl - [View](https://studio.appcues.com/settings/properties/user?search=propertyTest2FromUrl)\n\nsiteHash - [View](https://studio.appcues.com/settings/properties/user?search=siteHash)\n\ntestRenewalsNotifications - [View](https://studio.appcues.com/settings/properties/user?search=testRenewalsNotifications)\n\ntest_property - [View](https://studio.appcues.com/settings/properties/user?search=test_property)",
      "outcomes" => [],
      "priority" => "high",
      "title" => "Found 12 stale user properties to hide",
      "type" => "opportunity"
    }
  ]
}

Errors

No Errors