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

Args

%{
  "account_id" => "218133",
  "data" => %{
    "account_insight_agent_id" => "763d14d0-6ced-418e-8889-61a481fb6910",
    "insights" => [
      %{
        "action_plan" => "Review whether each flow still supports an active campaign, rollout, or segment. If not, unpublish it to keep your live experience inventory clean. If one is still strategically important, keep it live but confirm its targeting and trigger conditions still match where users actually engage today.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with experience ID 7cdeb70d-e379-467e-bc32-47b989139ba8 named \"Trial Ended\". This is a routine hygiene cleanup for a published experience that had zero seen, completed, skipped, and error users in the last 30 days and was published on 2026-03-30T20:33:01.060986Z.",
            "title" => "Unpublish dormant Trial Ended flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 7cdeb70d-e379-467e-bc32-47b989139ba8 named \"Trial Ended\" again, restoring it to live status after it was unpublished for hygiene review."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with experience ID 90f61bc6-e9d9-4fa5-8bd8-3529d2c1aefa named \"How to use Custom Templates\". This is a routine hygiene cleanup for a published experience that had zero seen, completed, skipped, and error users in the last 30 days and was published on 2025-01-28T00:02:35.079325Z.",
            "title" => "Unpublish dormant Custom Templates flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 90f61bc6-e9d9-4fa5-8bd8-3529d2c1aefa named \"How to use Custom Templates\" again, restoring it to live status after it was unpublished for hygiene review."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with experience ID 296888e5-e69d-4392-93e9-8546d0b12962 named \"Creating and Editing a Note\". This is a routine hygiene cleanup for a published experience that had zero seen, completed, skipped, and error users in the last 30 days and was published on 2025-01-27T23:59:20.243689Z.",
            "title" => "Unpublish dormant Note flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 296888e5-e69d-4392-93e9-8546d0b12962 named \"Creating and Editing a Note\" again, restoring it to live status after it was unpublished for hygiene review."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with experience ID 8c19c23d-1b92-4cdb-b339-46e869453c7c named \"AI-Powered Client Care Summary\". This is a routine hygiene cleanup for a published experience that had zero seen, completed, skipped, and error users in the last 30 days and was published on 2025-01-27T23:58:14.914550Z.",
            "title" => "Unpublish dormant Client Care flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to publish the web flow with experience ID 8c19c23d-1b92-4cdb-b339-46e869453c7c named \"AI-Powered Client Care Summary\" again, restoring it to live status after it was unpublished for hygiene review."
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing dormant content reduces clutter in your live experience inventory, makes ongoing audits easier, and helps your team focus optimization effort on experiences that are still driving activation and engagement.",
        "finding" => "I reviewed published experiences that were live for more than 3 weeks and found **4 experiences with no activity in the last 30 days**.\n\n- [Trial Ended](https://studio.appcues.com/flows/7cdeb70d-e379-467e-bc32-47b989139ba8/settings)\n  - Type: **Flow**\n  - Designed to show a trial-expiration message prompting users to contact an account administrator to upgrade\n  - Targeting: users on **app.circlehealth.co** in the **BeBold Users** or **WeLevelUp Users** segments\n  - Goals: **none configured**\n\n- [How to use Custom Templates](https://studio.appcues.com/flows/90f61bc6-e9d9-4fa5-8bd8-3529d2c1aefa/settings)\n  - Type: **Flow**\n  - Designed to educate users about custom templates with a video, template-library link, and expert-booking CTA\n  - Targeting: homepage/root URL on **app.circlehealth.co**\n  - Goals: **none configured**\n\n- [Creating and Editing a Note](https://studio.appcues.com/flows/296888e5-e69d-4392-93e9-8546d0b12962/settings)\n  - Type: **Flow**\n  - Designed to teach note creation and encourage users to talk to an expert\n  - Targeting: all URLs on **app.circlehealth.co**\n  - Goals: **none configured**\n\n- [AI-Powered Client Care Summary](https://studio.appcues.com/flows/8c19c23d-1b92-4cdb-b339-46e869453c7c/settings)\n  - Type: **Flow**\n  - Designed to explain AI-powered patient overview summaries and drive expert-booking\n  - Targeting: all URLs on **app.circlehealth.co**\n  - Goals: **none configured**\n\nThis looks like normal content hygiene rather than a setup mistake: these flows are still published, but they did not record any **seen**, **completed**, **skipped**, or **error** users in the last 30 days.",
        "outcomes" => ["adoption", "engagement"],
        "priority" => "medium",
        "title" => "4 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "22ac00b3-0147-445d-815f-189acc1d0f43",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777557204274141, "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—2h 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—2h 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—2h 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—2h 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