25352775 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 06:18.239
Run Time 01:14.674
Inserted 2h ago
Scheduled 2h ago
Completed 1h ago (01:15)
Cancelled
Discarded

Args

%{
  "account_id" => "55501",
  "account_insight_agent_id" => "c05b4571-6437-4f06-8683-a2194fb22200"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "fs+j3xctOFfAZGBWeRqbxpWyPu4kLojjJRY1s9+ehho",
  "recorded" => true,
  "return" => "g1AAAA0veJzFV81uJDUQzu5mYQlCPAASlHIBRulJz2Q2yYTTKquIFTmg1UQcEBp53DXd3nHbLdudzvBAPAFXxKtR5e75SZQsQaDlknS77XLV91V9VRN2dnaeNp8p41VeBD/NRBCa1p4E+vNpyX+EDMqaaaWFofcn300cigChUB6EB2froAwC3lToFBqJUCxzesA+vMVrhQ00BYYCHR1BjzDXtvHgg9IafF1V1gUQoNU1gjUzK1ymTA6VCEUf3sz50BKEQzAWtDU52TGIGWYHUJuqnmnlC95UQrCwQKxgaWu37Y4y12iCdUuQGoWJVlFFj3xha52Bw1IoE304oJfotAoUXp21JoTJgGyQiUrk6Pkqac1cuZKvhiBcjgEzqD06H3dfvb300e02UMbwGvuM58ctnp5Rfsoo7/LqMxkE///kahUUv31UOVtWgWH/4Yqw48toKatlmK6xy8mzeCd/XWMy3UIgWKvZ51uAQfdMbjc4i7SAESW97l84RJg4JTTQrQ4S+Am1tCXuQ0PAbYP75jXsD8ZZKk+OZXIiB7NkdCKOklPENBmNjuXpCLOBHI73+zDhjInXNJQ3m9utgWE6PE7SQTIcx0AKkUEKHtFsIZoS5GWlt3AmyjgOLXyAoxQysfQH4G2bmpyd6+SMxNcVtNBHGp4HFTTy01dryMliSxQhEuON7sYiqE1mp2s2dn5/HBvv4cLhNhcfhIHHJ9vkf022ic1zTWsWLjEXcnl/zIizU5keHydzcfQyGQ1OZDIepiIZpSMhx4jjNJV/m3VHySBNKHc+fNZ9fU/W6RgupUamHMrwYPb98cGz77+k5B2H8IJScBrwJsbzRdco1kBs7PqYpxSVCsupyppnRukISbcUlhWuFz/nc5KomqqyIlO89ucaZ24rnrrbLfMUB8kzIV5LJqwOgeIlimMT2WTLuoccUBNq2l4GshAcuZ0DEU6Nk/ZRVwiRgqpC4fjG2qyc0nSYqSnFglwwOZFV8l7igrjjvSi8YtuW7iM/KoehbRlzZbgr0vPul5PYRTeubQfDDcfqLPonDBwRs7jwXXYTrpzivR510ogz4XdfNvd6Z3t7Cfz8oAb98k0RQuXPDg99oA5p+xStrNH36eNhbO+HjxGkQ4+Bw/bf7gGnGDF5Bhd0PL7+uArwjDze9IdeL3693PKXN7R12+sdxOd1yXa7XyNNN4awImTXyk7RJSFG19a1bZF4ZYReBiU9fM/buN937V9SSvDb1pTStXKaHIjSutJWxGXOAvpEuiB5Voo7QQrKSXKjTYJZrXRrwtCYEWwp2BI01i0YQRpSAotJUK3XYttfWaBcEDhhFSifzK3Q/Qd4u1u9jyDwMaX8zwjspPZfEyhFkMU2HCIraXylKdPyjEYBdzLajmoMtsdWEUuYCblgI5FpdWtMjIImNuJ7PnlFeF5Y1xb1TWDibBwbN8UXVTPWECu/pBShgs4Uj5QSWcnuFponhaWrSM+bTddo1SKOlTOaV73VUUw6OeTTTnQTNKeLWd2UNCojTXcUFKdSLqooFy9IjjjH2xGTV/Y2chM3iMxWnDWtFFdOWUe3xCGAGoCqy9u96nz4gN6sRWVbUuYEWWkddhrUchwd22W1jqaV9zW+a54ToK3E/3bOlULmB9D9FiHYrzFK6PAO4P4+jYv0/Yru/drWh3MunhgGFRBbX/30ARrnfds85wRujIlZZEKptBXlHfb/An8vbFc",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "INJcjOhXY0QkpohLPtQypMGPBHaMq5ldcruTC/3X7Kc",
  "workflow" => true,
  "workflow_id" => "019ddea7-5780-7838-95b9-02e78bdb006f"
}

Recorded Output

%{
  notes: "Created 1 insight covering 2 published flows older than 3 weeks with zero activity in the last 30 days. Checked existing insights first and found no recent duplicate.",
  insights_data: [
    %{
      "action_plan" => "Treat this as routine experience hygiene. Review whether these flows still support a live onboarding path. If they are no longer needed, unpublish them to keep your experience inventory clean. If either should remain live, review its audience and entry pages to confirm the targeted users and URLs are still active.",
      "actions" => [
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"Free Trial User - Welcome\" with experience ID \"19d0c76c-7c1b-47a3-8ee0-446c84ed1c29\". This flow was published on 2026-01-29 and had 0 seen users and 0 completed users in the last 30 days, so this is a routine cleanup action.",
          "title" => "Unpublish inactive welcome flow",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow named \"Free Trial User - Welcome\" with experience ID \"19d0c76c-7c1b-47a3-8ee0-446c84ed1c29\"."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"Free Trial User - Toggle To Legacy\" with experience ID \"eeb8c066-fa35-417c-920a-404ac9ee900c\". This flow was published on 2023-10-30 and had 0 seen users and 0 completed users in the last 30 days, so this is a routine cleanup action.",
          "title" => "Unpublish inactive legacy redirect flow",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow named \"Free Trial User - Toggle To Legacy\" with experience ID \"eeb8c066-fa35-417c-920a-404ac9ee900c\"."
        }
      ],
      "cta_text" => "Review inactive experiences",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Unpublishing stale experiences will reduce clutter in your published inventory, lower the chance of outdated content appearing unexpectedly, and make engagement reporting easier to interpret.",
      "finding" => "These published experiences are older than 3 weeks and have had **no activity in the last 30 days**:\n\n- [Free Trial User - Welcome](https://studio.appcues.com/flows/19d0c76c-7c1b-47a3-8ee0-446c84ed1c29/settings)\n  - Type: Flow\n  - Published: **2026-01-29**\n  - Last 30 days: **0 seen**, **0 completed**\n  - Designed to welcome free-trial users on the Analytics Home page and encourage onboarding actions like uploading contacts, creating a campaign, and building an automation workflow. It is tied to a free-trial checklist completion goal.\n\n- [Free Trial User - Toggle To Legacy](https://studio.appcues.com/flows/eeb8c066-fa35-417c-920a-404ac9ee900c/settings)\n  - Type: Flow\n  - Published: **2023-10-30**\n  - Last 30 days: **0 seen**, **0 completed**\n  - Designed to catch free-trial admins who enter legacy pages and send them back to the Air experience with a redirect CTA.\n\nFor context, another published flow in this account did receive activity in the same window, so this appears to be isolated inactivity rather than an account-wide tracking gap.",
      "outcomes" => ["engagement", "adoption"],
      "priority" => "medium",
      "title" => "2 published experiences have had no activity for more than 30 days.",
      "type" => "issue"
    }
  ]
}

Errors

No Errors