25368306 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.214
Queue Time 00:00.332
Run Time 00:00.009
Inserted 1h ago
Scheduled 1h ago
Completed
Cancelled
Discarded 1h ago

Args

%{
  "account_id" => "89757",
  "data" => %{
    "account_insight_agent_id" => "bf9feb46-f2a0-49e8-9bfd-d0082e37d3d7",
    "insights" => [
      %{
        "action_plan" => "Review these inactive experiences as a cleanup pass rather than an error state.\n\n1. Unpublish any experience that supports an outdated workflow, old environment, or no longer-used onboarding path.\n2. Keep published only the items that still support an intentional live use case.\n3. If an experience should still matter, review its targeting and placement before leaving it live, since zero activity over 30 days often signals either obsolete content or a path users no longer reach.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg1.0 - Créez un projet\" with experience ID \"915fec27-eabb-4c55-bafe-7e3753d67cdb\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2022-11-21.",
            "title" => "Unpublish inactive create project flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg1.0 - Créez un projet\" with experience ID \"915fec27-eabb-4c55-bafe-7e3753d67cdb\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg2.0 - Planifiez votre premier chantier\" with experience ID \"025f10aa-41f3-4f79-b49f-0fde341e68c6\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2022-02-05.",
            "title" => "Unpublish inactive first job flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg2.0 - Planifiez votre premier chantier\" with experience ID \"025f10aa-41f3-4f79-b49f-0fde341e68c6\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg3.0 - Préparer l'horaire des travailleurs\" with experience ID \"6772a807-5b1c-4682-aece-3e37dcb2aa29\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-25.",
            "title" => "Unpublish inactive worker schedule flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg3.0 - Préparer l'horaire des travailleurs\" with experience ID \"6772a807-5b1c-4682-aece-3e37dcb2aa29\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg7.0 - Ajouter une photo dans le projet\" with experience ID \"d0c24a6b-5c95-46de-b59e-ee6f48bffbf0\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-25.",
            "title" => "Unpublish inactive photo upload flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg7.0 - Ajouter une photo dans le projet\" with experience ID \"d0c24a6b-5c95-46de-b59e-ee6f48bffbf0\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg6.0 - Entrez vos heures dans la feuille de temps\" with experience ID \"d3f42640-608d-42e3-ad7c-f443d3c1306b\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-25.",
            "title" => "Unpublish inactive timesheet entry flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg6.0 - Entrez vos heures dans la feuille de temps\" with experience ID \"d3f42640-608d-42e3-ad7c-f443d3c1306b\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg5.0 - Remplissez le formulaire\" with experience ID \"c5bf0a8b-046d-49eb-bc25-cd733250d31f\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-25.",
            "title" => "Unpublish inactive form flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg5.0 - Remplissez le formulaire\" with experience ID \"c5bf0a8b-046d-49eb-bc25-cd733250d31f\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg8.0 - Complétez et envoyez le rapport de chantier\" with experience ID \"c0c82bff-1b64-485f-ab3d-9df6effb01ee\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-24.",
            "title" => "Unpublish inactive report submission flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg8.0 - Complétez et envoyez le rapport de chantier\" with experience ID \"c0c82bff-1b64-485f-ab3d-9df6effb01ee\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg4.0 - Visualiser l'horaire comme un travailleur\" with experience ID \"3c116e9b-cbda-4992-9254-b00b4e408205\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-18.",
            "title" => "Unpublish inactive schedule view flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg4.0 - Visualiser l'horaire comme un travailleur\" with experience ID \"3c116e9b-cbda-4992-9254-b00b4e408205\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg3.1 - Horaire des travailleurs suite\" with experience ID \"90486cad-a573-44cd-b700-73ed5a79db16\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-11-17.",
            "title" => "Unpublish inactive schedule followup flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg3.1 - Horaire des travailleurs suite\" with experience ID \"90486cad-a573-44cd-b700-73ed5a79db16\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"Bienvenue sur votre Cactusoft Construction\" with experience ID \"34079844-049e-4998-bb9c-05620b018c32\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-04-20.",
            "title" => "Unpublish inactive welcome tour flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"Bienvenue sur votre Cactusoft Construction\" with experience ID \"34079844-049e-4998-bb9c-05620b018c32\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow named \"eg9.0 - Préparer la paie - suite\" with experience ID \"618c7748-6b02-4acb-aaf5-648056d93f5e\". This flow had 0 seen users, 0 completed users, 0 skipped users, and 0 errors in the last 30 days, and it was published on 2021-07-22.",
            "title" => "Unpublish inactive payroll prep flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow named \"eg9.0 - Préparer la paie - suite\" with experience ID \"618c7748-6b02-4acb-aaf5-648056d93f5e\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published checklist named \"Débuter votre essai gratuit\" with experience ID \"-MYgt5uS3ddNPnjUoUMR\". This checklist had 0 seen users, 0 completed users, 0 skipped users, and 0 dismissed users in the last 30 days, and it was last updated on 2022-02-07.",
            "title" => "Unpublish inactive trial checklist",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the checklist named \"Débuter votre essai gratuit\" with experience ID \"-MYgt5uS3ddNPnjUoUMR\" again, restoring it to live status after it was unpublished during inactivity cleanup."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing truly unused experiences reduces clutter in your live environment, lowers the risk of outdated guidance reaching users, and makes it easier to focus optimization work on content that still drives activation and engagement.",
        "finding" => "As part of routine experience hygiene, I reviewed published experiences that have been live for more than 3 weeks and found **12** with **no activity in the last 30 days**.\n\nEach item below had **0 seen users** in the last 30 days, and all are legacy experiences published in **2021-2022**:\n\n- [eg1.0 - Créez un projet](https://studio.appcues.com/flows/915fec27-eabb-4c55-bafe-7e3753d67cdb/settings)\n  - Type: Flow\n  - Designed to guide users through **creating a project**, with broad site targeting and no goals attached.\n- [eg2.0 - Planifiez votre premier chantier](https://studio.appcues.com/flows/025f10aa-41f3-4f79-b49f-0fde341e68c6/settings)\n  - Type: Flow\n  - Designed to walk users through **planning their first job/site**, with broad site targeting and no goals attached.\n- [eg3.0 - Préparer l'horaire des travailleurs](https://studio.appcues.com/flows/6772a807-5b1c-4682-aece-3e37dcb2aa29/settings)\n  - Type: Flow\n  - Designed to teach users how to **prepare worker schedules**, with broad site targeting and no goals attached.\n- [eg7.0 - Ajouter une photo dans le projet](https://studio.appcues.com/flows/d0c24a6b-5c95-46de-b59e-ee6f48bffbf0/settings)\n  - Type: Flow\n  - Designed to show users how to **attach photos to a project**, targeted to the formation.cactusoft.construction domain.\n- [eg6.0 - Entrez vos heures dans la feuille de temps](https://studio.appcues.com/flows/d3f42640-608d-42e3-ad7c-f443d3c1306b/settings)\n  - Type: Flow\n  - Designed to teach users how to **enter hours in the timesheet**, with broad site targeting and no goals attached.\n- [eg5.0 - Remplissez le formulaire](https://studio.appcues.com/flows/c5bf0a8b-046d-49eb-bc25-cd733250d31f/settings)\n  - Type: Flow\n  - Designed to show users how to **find and complete worksite forms**, with broad site targeting and no goals attached.\n- [eg8.0 - Complétez et envoyez le rapport de chantier](https://studio.appcues.com/flows/c0c82bff-1b64-485f-ab3d-9df6effb01ee/settings)\n  - Type: Flow\n  - Designed to guide users through **completing and submitting a worksite report**, targeted to the formation.cactusoft.construction domain.\n- [eg4.0 - Visualiser l'horaire comme un travailleur](https://studio.appcues.com/flows/3c116e9b-cbda-4992-9254-b00b4e408205/settings)\n  - Type: Flow\n  - Designed to help users **view daily schedules as a worker**, targeted to the formation.cactusoft.construction domain.\n- [eg3.1 - Horaire des travailleurs suite](https://studio.appcues.com/flows/90486cad-a573-44cd-b700-73ed5a79db16/settings)\n  - Type: Flow\n  - Designed as a **follow-up scheduling tutorial** for assigning and confirming workers, with broad site targeting and no goals attached.\n- [Bienvenue sur votre Cactusoft Construction](https://studio.appcues.com/flows/34079844-049e-4998-bb9c-05620b018c32/settings)\n  - Type: Flow\n  - Designed as a **welcome tour** for dispatchers, targeted to `/home` for users matching specific role properties.\n- [eg9.0 - Préparer la paie - suite](https://studio.appcues.com/flows/618c7748-6b02-4acb-aaf5-648056d93f5e/settings)\n  - Type: Flow\n  - Designed to guide users through **payroll preparation and verification**, targeted to the formation.cactusoft.construction domain.\n- [Débuter votre essai gratuit](https://studio.appcues.com/checklists/-MYgt5uS3ddNPnjUoUMR/edit)\n  - Type: Checklist\n  - Designed to drive **trial onboarding** through tasks like creating a project, planning a first job, scheduling workers, filling forms, submitting reports, and preparing payroll.",
        "outcomes" => ["engagement", "activation"],
        "priority" => "medium",
        "title" => "12 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "b10d58ec-6658-43ef-b030-825d83c427e7",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777558688368695, "structured" => true}

Errors

Attempt 5—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 4—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 3—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 2—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4

Attempt 1—1h ago

** (Knock.ApiKeyMissingError)   The api_key setting is required to make requests to Knock.
  Please configure :api_key in config.exs, set the KNOCK_API_KEY
  environment variable, or pass into a new client instance.

    (knock 0.5.0) lib/knock/client.ex:65: Knock.Client.new/1
    (customer_api 1.21.0+dd24b211) lib/customer_api/services/knock.ex:65: CustomerApi.Services.Knock.trigger/3
    (customer_api 1.21.0+dd24b211) lib/customer_api/jobs/publish_notification_job.ex:93: CustomerApi.Jobs.PublishNotificationJob.do_publish/4
    (oban_pro 1.6.12) lib/oban/pro/worker.ex:1156: Oban.Pro.Worker.process/3
    (oban 2.20.3) lib/oban/queue/executor.ex:145: Oban.Queue.Executor.perform/1
    (oban 2.20.3) lib/oban/queue/executor.ex:77: Oban.Queue.Executor.call/1
    (elixir 1.19.5) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.19.5) lib/task/supervised.ex:40: Task.Supervised.reply/4