25353943 CustomerApi.Jobs.Insights.ExecuteAccountInsightAgentJob
Queue insight_agents
Attempt 1 of 2
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 13:25.739
Run Time 01:05.327
Inserted 5h ago
Scheduled 5h ago
Completed 4h ago (01:06)
Cancelled
Discarded

Args

%{
  "account_id" => "211071",
  "account_insight_agent_id" => "31f1412b-3e3b-4e56-bd92-4439ebfff6b2"
}

Meta

%{
  "deps" => [],
  "name" => "execute",
  "on_hold" => false,
  "partition" => true,
  "partition_key" => "P58VDIieu+BurReYw7eavymsEOSpAKCb7bD3Dq+5g4Y",
  "recorded" => true,
  "return" => "g1AAAA2UeJzNV8uOG0UUnbwgDEJ8AJurbICW7fHMZCaa7NBEoFkgRShZIWSVu293V1xd1VRV2zF/w7ew4Df4FM6tbj8CzmiEFGBju6u66t57zrkPx6Ojo/urz7QNuqpjmBUqKoO1exEfnzbyofKonZ21Rlk832t+4KXmFa1qjjV7YpXXVBq3Ih0oRG0MeTa8VDZSdLR2nae8857x3HpXdHkkZQvKVdMqXdkwoZuSVH/FSuEOVsFZZUYUNRdyh6JWhUhGdTavR+Q8WUfG2QrmQ9e2zseAO0k8XTK9gUnL6xF1tu3mRoeadPJlwdz2Dhl5j9+27DXbnEnbJfxzfk25YWWTSzgTateZYohqzoOBEQJMEGiYjcpXHLWtUlCqK/oLA8eupdK7hoAS7NkFYsGqvBoQT8XiUe5sqX0jtnIEsIFPIO0C+zARBj7uGQjCy33h5aGsPsijku9PXm+ilKePAHHTRiHq5evAyfiA+myAimDb9hzI7hak2R4e0Tkj/u0QlFcHGs2ahlWEtOL5QJ2O9T6kNy/oUpXl2dWzi/HplC/GT3l+Nb5S03x8VTybns3zKz7FBVY1+HzyPTdzBFzrll6tW6ZrBxCA1ZMJvaqhrI3CDvkgoWBL9eQBd2BZaEiZQVqugKQAXKuCpqCA7QjfOWAyHLkYpePYWOi2xWUJdwii5010dz6lQq17Lh5FHQ3Lry9f79RlB+X9NQhxOuVQZws321Jz9NvdqLmFmH1aPjgFFJwACIhT3qhKaTu5uxCb/1yIzy4KpZ6qfMznCiiU83MAcHk5vrzMT6fT06esphcbFF5wnnCgGxy2idYSFeeGFhaXi/WCo9IGSexWeC3p5X+r0uyASrcR6l2E7xHqH/+aUD88RQdV/EaifAwFzyK/TSF/MfS3LVw7P0OSuViM65kuVg+sNgm1YSkia7aLn8u5HNTNNBpdnjLh6Fqol2YB+rcGkjvoBFEg9QycOVAD77CgBB63ZF+z6iVkJKSQovQ6LMiV5LooMiqo4RBUJfenHpIMJaEYbIPvcq9d5bVCA5XuCx5N6Ltj6NvjTrQHe2TpclxbkLNbt2Ot4q4Xb/o92wpCaeRn5WCkb2elhu5thd8Pfr8ZeiluO2Q09BcjYqYs273ROC+6RMs8xyYvkFaVy7IEUOkgYrx9hucktCzDuJCwBkmHcibLJsfHY/rxfQXwp6/qGNvw/OQkRDR4N1Ftm3fADul5IoIOJ3epsyeb9v/1MdE4mXhO3+J4enzBGMFsP/DUbNqBOWCcZUbNJ61aQzyFT0aXpyfN1ln4DzadG1LVyyRHu+1hFklQKBlpkL5A2EBg7Ee01AU7DF5mEWvvuqoeDSgaeDbGwZ8RqcwfKXWTq98Jl88xhFnuJ5iqg2wThP8oNe+A713Kw93xlQLn4gAXF5udV8iamNT6EsMuzTttCviYBjuw8Pe6CeDTeFrqtzgObUZJx73IBvrw6rv8FSrUc6d8ARq9ZGLMsluhTd0FsLCS3HcyjIIsRLurHPW6Qs4g5LmL/USOE0iTfqjc5s4IcUWyrNP0XmPg9pw7X7DkTN939roOuBtaDmK9vek8hj84yWlOvScrx7v87+ts67XzSMI0IKCU6655t11dn72nDNQKSpLeuJ/Koqy9SrDny0MpxelqHULHb1aPLPhO9fvXa2EZ159uEKPh30+67+zASAEakxDeKTipMIlHv7C/vbxM6JtC4C00kI57o8ww1ye7O9ImfwIzRah9",
  "structured" => true,
  "uniq" => true,
  "uniq_bmp" => [1, 0, 2, 3],
  "uniq_conflict" => true,
  "uniq_key" => "Ro4z1AftiqRk8CxA8ocrgdPZrjvTbPB9mLsBDwKGHDA",
  "workflow" => true,
  "workflow_id" => "019ddea7-57a3-73aa-b3e7-f52c23e5e299"
}

Recorded Output

%{
  notes: "Created 1 hygiene insight for 2 published web flows older than 3 weeks that had zero activity in the last 30 days. Added direct unpublish actions for both flows.",
  insights_data: [
    %{
      "action_plan" => "Review whether each flow is still relevant to your current product and campaigns. If a flow was seasonal, tied to a past launch, or no longer supports an active journey, unpublish it to keep your live experience inventory clean. If it should still be active, review its targeting and audience setup from the linked settings page to confirm it can still reach users.",
      "actions" => [
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the currently published web flow with experience ID 6aff2975-10e5-4eb9-9a0c-9d702bc9e1ed named \"Membership Type Coaching\". This flow is currently published and is a cleanup candidate because it had 0 seen, 0 completed, and 0 skipped users in the last 30 days.",
          "title" => "Unpublish inactive Membership Type flow",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 6aff2975-10e5-4eb9-9a0c-9d702bc9e1ed named \"Membership Type Coaching\" so it is live again."
        },
        %{
          "cta" => "Unpublish",
          "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the currently published web flow with experience ID 75daa4ac-e3a5-4fb3-9d66-66c10014ea05 named \"December Incentive for I know the details power users\". This flow is currently published and is a cleanup candidate because it had 0 seen, 0 completed, and 0 skipped users in the last 30 days.",
          "title" => "Unpublish inactive December incentive flow",
          "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 75daa4ac-e3a5-4fb3-9d66-66c10014ea05 named \"December Incentive for I know the details power users\" so it is live again."
        }
      ],
      "cta_text" => "Review inactive experiences",
      "entity_id" => nil,
      "entity_type" => nil,
      "expected_impact" => "Cleaning up inactive live content reduces maintenance overhead and lowers the risk of outdated messaging reaching users later if targeting changes. It also keeps your published experience inventory focused on content that supports current engagement goals.",
      "finding" => "I reviewed published experiences that were **published more than 3 weeks ago** and found **2** with **no activity in the last 30 days**.\n\n- [Membership Type Coaching](https://studio.appcues.com/flows/6aff2975-10e5-4eb9-9a0c-9d702bc9e1ed/settings)\n  - Type: Flow\n  - Designed to help users on **lab.payleadr.com/v1/memberships** choose the right membership setup with a short explainer, video walkthrough, and follow-up question flow\n  - Goals: none configured\n\n- [December Incentive for I know the details power users](https://studio.appcues.com/flows/75daa4ac-e3a5-4fb3-9d66-66c10014ea05/settings)\n  - Type: Flow\n  - Designed to promote the redesigned Treatment Plan builder and a **December incentive** to a fixed list of power users on **live.payleadr.com/dashboard/merchant**\n  - Goals: none configured\n\nThis appears to be routine content hygiene: both flows are still published, but neither has recorded **seen, completed, or skipped** users in the last 30 days.",
      "outcomes" => ["engagement"],
      "priority" => "medium",
      "title" => "2 published experiences have had no activity for more than 30 days.",
      "type" => "issue"
    }
  ]
}

Errors

No Errors