25354351 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 13:02.706
Run Time 01:09.343
Inserted 3h ago
Scheduled 3h ago
Completed 2h ago (01:10)
Cancelled
Discarded

Args

%{
  "account_id" => "223470",
  "account_insight_agent_id" => "b05dd0e0-c76a-4bf0-b98b-90e61230989a"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "OoIuG9wOY0EhQNz3a9Xx1OEkU30ZzqP81cnvuwFn/uw",
  "recorded" => true,
  "return" => "g1AAAAuleJzFVt1uG0UUTpoWShDiAZDKoUIKrGrHie2Q9q6kXFTiAlWJuABkjXePvZOMZ1Yzs3HMC/AqPAwSb8Fz8J1Z/2yFE0UVFMla7575O+c733fOxJ2dnQfzT7QNelrGMCpUVAa23YjHxzN5qDxqZ0eVUVa+/3rD15rnFEsOTHHuqKrHRoeSC+Kbir1mm3MgZQuq7XIMXwusUJGUZ7KOjLNT9mSZCy66dF7qQFcaS9yEcsPK1hWVbCpYmStauNqT0ddM2l6zjc5jO10s0imei1pOhEeUlwqnN0c5U1DkECl3NmIRTTkGzL7WQUd46zypPNcFhpQxC4zUAWajIvuuhPphE3oQQB4IIA/FupdHJf8fXayik68PKu9mVcTr7pcXAgycgQmexVGoq8p5xD4VL8RlGV2DM9rARtE5g0cLubTRFoRprmNJr1/R8PnRyWl/eNw5Hg6POgM1GXTGvdNxpz+cnAz7+WQ4HozJqhlWH1TaUsEzd7CEHD9Fcx6TDCTQSlVQjwKzfYb/HDEZBljyUegw0yHIh8TQI/beeWxik5NGAeo+pqlF6NIaHNIIGbC7OmrLq+QmfB9FHQ3L2+et6VZQR6ZXvspLImJtCzdaw7zzx/1gvgPkNsT/FrA4XWlg50E857WdSvw4S4N6lXDP1QFc22Q0RPCte392Ze+XXSrvD/Jxv9fpHY37ncHR6aRzOjg+6fSO1fMccPQm36xBSGIbK2vZ/4Ngjfn/5NiTLRxrebyNYn/+1xR7V3TfkWWXEtRjMGwU+SZF+Nmymq8RaZXwREPEqeNipIv5ntUmgbQ0xUXFa+Onsi5HEkd6VmErsf12JnkQ51DMN7Je+7Qqy6F0tVmVcSSvjijAkvFN1W9BF7gBfqaumNBFnBzQGp8pi+zMZGNWQa9K+QTNBTPxvvfzS4CkkEX0mhVlWhuUiyle+Bll2fH23pZlDY/n7NvxzJxPncdSH0N8BepPHcgO/4XxWYa+l0AAetsInWXd/f0O/bSqJb98VcZYhReHhyHWhXZdVVV5zaELxRxiUji8T4U6BGAIcRq+3ifq0Dmy9gK+/KBtliXLK0bvt/Af/ClxCzByE1gnx1kIOMvGXjCvHDonOqJA7q7ZC3UARgXAu/RammttpBErj1aLVcblypQuxCyDnilgnUEGwRQ90TkmoOF66CANS/O3rdGLN98/o3mp85JCPZ2C6UFYPofQjb5i0Fs1+kUfT31ik6EGx5Zg7oSymRIO7yPGW9D8Nm2xBVDYXS2syrKnP/IBqHBZwyvPkIZcNpqF4YungDEVBUVn5y9lJaIxDaGYJqxi7d/CWJng3hvQuYcD8HYCqAXVlH+RKIRqlWlKDs9hTmJ7DFEBWE4Xp12x7LOdLlXZ1KDKa9StuEjNDeVN17O3q/XZLdrb6KmtJnGsJb9lg5B9HkqZSlujrdR8OX9kXWxq2+9ny7COVpoHqoy6ILvddjwulU0b26g85e1X9neru0vf3aC2FXLxTHtMjJuHppAAUWNSUJ7zVBLRG9e7df8GMuTrDg",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "Q4xpEPGbZ4XZ95i2yEgxcaMhOmf+kkzhDMDTiV6aOks",
  "workflow" => true,
  "workflow_id" => "019ddea7-57ac-71ed-956a-b4c2b7d3e57e"
}

Recorded Output

%{
  insights_data: [
    %{
      "action_plan" => "Review these two published experiences and unpublish any that are no longer needed. This kind of cleanup helps keep your live inventory tidy and reduces the chance that old test content gets revisited or accidentally reused later.",
      "actions" => [
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published experience with ID 59168352-2551-4af4-b08b-35f653cf5b4b named 'pin demo'. This is a web pin that had 0 seen, 0 completed, 0 dismissed, and 0 errors in the last 30 days. Unpublish it as routine cleanup.",
          "title" => "Unpublish inactive pin demo pin",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID 59168352-2551-4af4-b08b-35f653cf5b4b named 'pin demo' again, restoring it to its previously published state."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published experience with ID ac34cb30-01b3-418f-8426-02a9cb080f7b named 'test banner'. This is a web banner that had 0 seen, 0 completed, 0 dismissed, and 0 errors in the last 30 days. Unpublish it as routine cleanup.",
          "title" => "Unpublish inactive test banner",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the experience with ID ac34cb30-01b3-418f-8426-02a9cb080f7b named 'test banner' again, restoring it to its previously published state."
        }
      ],
      "cta_text" => "Review inactive experiences",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Cleaning up inactive published content should reduce clutter in your live experience set and make ongoing experience management easier.",
      "finding" => "As part of routine experience hygiene, **2 published experiences** that were published more than 3 weeks ago have had **no activity in the last 30 days**.\n\n- [pin demo](https://studio.appcues.com/pins/59168352-2551-4af4-b08b-35f653cf5b4b/settings)\n  - Type: **Pin**\n  - Designed to highlight content on a **brand positioning overview** page. Its rules target **localhost**, a single specific **user ID**, and one specific URL, which suggests it was likely a test or demo experience.\n\n- [test banner](https://studio.appcues.com/banners/ac34cb30-01b3-418f-8426-02a9cb080f7b/settings)\n  - Type: **Banner**\n  - Designed to announce **\"We've just released Banners!\"** with a CTA to explore the feature. Its rules also target **localhost**, a single specific **user ID**, and one specific URL, which suggests it was likely created for testing or internal previewing.",
      "outcomes" => ["engagement"],
      "priority" => "medium",
      "title" => "2 published experiences have had no activity for more than 30 days.",
      "type" => "issue"
    }
  ],
  notes: "Created 1 hygiene alert for 2 published experiences older than 3 weeks with zero activity in the last 30 days. Excluded older flows that still had recent seen activity."
}

Errors

No Errors