25353519 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.0.170
Queue Time 01:31.903
Run Time 01:38.989
Inserted 2h ago
Scheduled 2h ago
Completed 2h ago (01:39)
Cancelled
Discarded

Args

%{
  "account_id" => "126116",
  "account_insight_agent_id" => "0de2bc8e-db7b-4778-b79b-e6409c1eeb5a"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "6neCve+NiN7+TfVDUIzDhvG0PmVnRaDhoi1+Y9KMlKA",
  "recorded" => true,
  "return" => "g1AAABm6eJzVWU2TG7cRlT8UO0ql8gN8QekksXa43OW3Dqly1nGyVUnFZUu5JKktDKaHhHcGGAOYpegflso1l1SOueScv5LXAIfclXYtyuGqlAs5xOCj+73XQDcYHjx48OHq59p4vVgGf1HIICu0fRDw8bOaP6QK2pqLppIGvz/wzx3JIMJSeyG9cLYN2pD4vGlUS14s1wtNhvria7rStEI/8iToZUMO7Qo9pClEa5o2r7Rf4tcafTChdCSMFZU1C3KikS4IW4q1bZ1gC65IWJNb6QptFsI6oSpttBIr6y7Lyq6ED04GWqz74iunrdNBf0/CUW2veIAOVPvdQqoi6SqsTD4IZU0gE44whVygc2ZNtT7iNYKmQgQr4COAwbNsi+iFgO3B98V5CasIA3VViVqGQM4fiUuiBiuiU7Qa68gSb3ihUrs62QNrpFtQgKsLiqBsJ2cL05TaiNZTn3n4JPHgmZ2HzM7H3PqRCpK/f/qiQ5R//aRxtm4C0zV8AfhBgkBT0apw4dumsQAXq5oQ12VbtoRc7KiC57Zi93dsxYnSM9BYUS4i9isdluL8C0GnNJxN54NsPpifZqPxZJTJWTnKprPZZDQqJ+PTwakwssbYx3/Ysvm4L56zmuJU+Fatc7ANsO2WYjuXshAD4YkiKM4zOmxQJUHicCAKuQYlL24YGym45pK3TMxOZ7JpoATPXhLrkueNcD8MOlTET493M2rzuhTZ6hgnrSnsxR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QimhscfmNl5Z9ha2NO+Oph0SJm4qvfXdsgGb20iWIcU3ZrJr8He/tUC2/HnrJVhV1CfNdqdSlwwBa5xINNWr6SVRujFnFwDvf/CPc3+V6+FoXT8ebHUxU3mu7CiHcRSDtu8BiIfY2cSQkjPN6HjY1u6BXM44QQwUusxcHLllEtNfRTFNhGPPn/iZZ9Utt9YmyPbPrtWNpaIJadibU0+J1OUUfftRR3nW+S4Ywja/jXL2V9vGtT9oriLCUOzh2hhVU4ol4LEwTFEhH6Jk444HbR8srLuEHeI2M/ItPbg8B9cs23IzBlKvHOFYfQlkWfQnBjKCJOu625yJrQsOZEAQhj4+e+G6pSQlOjK1eRUaQdt6+z2FFzOfOH3MNeS3Z+EFh0BK575FJ34Ioz/FVYpeddv5bxEhdG1F2OwkbhvK2QKqQjBMe7Ihckn9A4ZHy8/q10rUNiB8kip6UFpHNbFMQxbwqDpHSPMeDuhsR/LMoxMwTvMQHiO+kPueURmcVmK4odZGEb9jslkk26mF/HigQ5qW7rm4n12fhaknMzKYGUODMxu7wkOrXLhLp0n+f5mHPNOLX2vqVvVw+NDSlB/ecZ/32B6U+6vyrE5s+PJFLm5C4rkPzFjJFX22RdMV+4kS7dXoOcG+SmBeYrtOMTLWWEoNlcpnhBA/ZLnYOfa3+OpCv/6ClJZGA7a/r/BefdtXE",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_key" => "UU3geml820DSUBopdplDP4OrOEvzQPNSMcdZ3KLa6+k",
  "workflow" => true,
  "workflow_id" => "019ddea7-5799-75f8-8ff7-00c140fcd795"
}

Recorded Output

%{
  notes: "Created 1 hygiene insight covering 5 published experiences older than 3 weeks with zero activity in the last 30 days. Included direct review links and reversible unpublish actions for each experience.",
  insights_data: [
    %{
      "action_plan" => "Treat this as routine Appcues hygiene. Review these experiences and unpublish any that are no longer part of your active onboarding or clinic workflow strategy. Prioritize removing items that are clearly test content, staging-only, or tied to outdated audience lists. If one still matters, keep it live only after confirming its target page and audience are still in use.",
      "actions" => [
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with ID e2e38790-9092-4564-a8f4-788644f65202 named \"Onboarding\". This flow is currently published and had 0 seen users in the last 30 days. Unpublish the live experience so it no longer appears to end users.",
          "title" => "Unpublish inactive onboarding flow",
          "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with ID e2e38790-9092-4564-a8f4-788644f65202 named \"Onboarding\". Restore it to published status."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with ID b4b33313-c67e-4088-b124-1bba3e95495d named \"ACT Survey Flow Final\". This flow is currently published and had 0 seen users in the last 30 days. Unpublish the live experience so it no longer appears to end users.",
          "title" => "Unpublish inactive ACT survey flow",
          "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with ID b4b33313-c67e-4088-b124-1bba3e95495d named \"ACT Survey Flow Final\". Restore it to published status."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with ID e7673e9a-350c-4e91-bcc2-608bfc03d93f named \"Hospital surgery shift encouragement\". This flow is currently published and had 0 seen users in the last 30 days. Unpublish the live experience so it no longer appears to end users.",
          "title" => "Unpublish inactive surgery promotion flow",
          "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with ID e7673e9a-350c-4e91-bcc2-608bfc03d93f named \"Hospital surgery shift encouragement\". Restore it to published status."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published web flow with ID 8b9cfeec-ed3d-469c-bbc6-985a24012ce7 named \"Complete Profile Reminder (complete profile button)\". This flow is currently published and had 0 seen users in the last 30 days. Unpublish the live experience so it no longer appears to end users.",
          "title" => "Unpublish inactive profile reminder flow",
          "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the web flow with ID 8b9cfeec-ed3d-469c-bbc6-985a24012ce7 named \"Complete Profile Reminder (complete profile button)\". Restore it to published status."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and its unpublish_experience tool to unpublish the published pin with ID 81b0655d-e6d7-477d-acdb-16a63eef653e named \"test pin for prod\". This pin is currently published and had 0 seen users in the last 30 days. Unpublish the live experience so it no longer appears to end users.",
          "title" => "Unpublish inactive test pin",
          "undo_prompt" => "Use the product_support agent and its publish_experience tool to publish the pin with ID 81b0655d-e6d7-477d-acdb-16a63eef653e named \"test pin for prod\". Restore it to published status."
        }
      ],
      "cta_text" => "Review inactive experiences",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Cleaning up inactive published content should reduce operational clutter, make reporting easier to trust, and lower the chance of outdated guidance resurfacing if old targeting becomes active again.",
      "finding" => "I reviewed published **Flows, Pins, Banners, and Checklists** that were published more than **3 weeks ago** and checked for activity in the last **30 days**. **5 experiences had zero activity**, which makes them good candidates for routine cleanup.\n\n- [Onboarding](https://studio.appcues.com/flows/e2e38790-9092-4564-a8f4-788644f65202/settings)\n  - Type: **Flow**\n  - Designed to guide users through the new scheduling calendar with a welcome modal and tooltips for viewing the calendar, filtering shifts, posting a shift, and switching views\n  - Targeting: shown **once** on **/calendar** for **staging.staffing.indevets.com**\n  - Goals: none configured\n  - Last 30 days: **0 seen**\n\n- [ACT Survey Flow Final](https://studio.appcues.com/flows/b4b33313-c67e-4088-b124-1bba3e95495d/settings)\n  - Type: **Flow**\n  - Designed to collect quick feedback on the value of an IndeVets shift by driving selected clinic contacts to an external survey\n  - Targeting: shown **once** on **schedule.indevets.com** to a fixed list of email addresses\n  - Goals: none configured\n  - Last 30 days: **0 seen**\n\n- [Hospital surgery shift encouragement](https://studio.appcues.com/flows/e7673e9a-350c-4e91-bcc2-608bfc03d93f/settings)\n  - Type: **Flow**\n  - Designed to encourage hospital managers to request **Surgery** or **Exam/Surgery** coverage from IndeVets doctors\n  - Targeting: **/home** on **schedule.indevets.com** and **staging.indevets.com** for a fixed list of email addresses\n  - Goals: none configured\n  - Last 30 days: **0 seen**\n\n- [Complete Profile Reminder (complete profile button)](https://studio.appcues.com/flows/8b9cfeec-ed3d-469c-bbc6-985a24012ce7/settings)\n  - Type: **Flow**\n  - Designed to prompt partner hospitals to complete their profile so they stand out to doctors and improve shift coverage\n  - Targeting: **staging.k8s.indevets.com**\n  - Goals: none configured\n  - Last 30 days: **0 seen**\n\n- [test pin for prod](https://studio.appcues.com/pins/81b0655d-e6d7-477d-acdb-16a63eef653e/settings)\n  - Type: **Pin**\n  - Designed as a small informational pin explaining that certain tools are limited to super admins\n  - Targeting: **/tools** on **schedule.indevets.com** for a single email address\n  - Goals: none configured\n  - Last 30 days: **0 seen**",
      "outcomes" => ["engagement", "adoption"],
      "priority" => "medium",
      "title" => "5 published experiences have had no activity for more than 30 days.",
      "type" => "issue"
    }
  ]
}

Errors

No Errors