25363770 CustomerApi.Jobs.PublishNotificationJob
Queue notifications
Attempt 5 of 5
Priority 0
Tags ...
Node customer_api@10.10.1.109
Queue Time 00:00.294
Run Time 00:00.007
Inserted 2h ago
Scheduled 2h ago
Completed
Cancelled
Discarded 2h ago

Args

%{
  "account_id" => "214529",
  "data" => %{
    "account_insight_agent_id" => "5dd01e07-a6ae-4915-a944-9f7a3e2ce314",
    "insights" => [
      %{
        "action_plan" => "Treat this as routine hygiene: review each live experience and decide whether it still supports an active workflow.\n\n1. Unpublish experiences that support retired workflows, outdated UI, or test environments.\n2. Keep live only the experiences that still matter strategically and have a realistic path to traffic.\n3. For any experience you keep, review its targeting and trigger rules to confirm it can still be reached by users.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 33833a66-cf58-49c3-a670-c9b3edbaa16a named \"User creation flow - test\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days and was published on 2025-09-04.",
            "title" => "Unpublish User creation flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 33833a66-cf58-49c3-a670-c9b3edbaa16a named \"User creation flow - test\" that was previously unpublished during stale-content cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 04a4ad44-4e40-4e8d-8af7-518058ba10e3 named \"Off-boarding: Leaving MI\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days and was published on 2025-06-14.",
            "title" => "Unpublish Off-boarding flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 04a4ad44-4e40-4e8d-8af7-518058ba10e3 named \"Off-boarding: Leaving MI\" that was previously unpublished during stale-content cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID 4140078f-f5d9-4b95-a190-4762b67995a8 named \"MI: Feedback Form\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days and was published on 2025-06-14.",
            "title" => "Unpublish MI feedback form",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID 4140078f-f5d9-4b95-a190-4762b67995a8 named \"MI: Feedback Form\" that was previously unpublished during stale-content cleanup."
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience tool to unpublish the published web flow with ID c4740cb5-e70a-4a43-9c44-319b9a7a8cd1 named \"EI: Activities Onboarding\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days, plus 6 users with errors, and it was published on 2024-10-07.",
            "title" => "Unpublish Activities onboarding flow",
            "undo_prompt" => "Use the product_support agent and the publish_experience tool to republish the web flow with ID c4740cb5-e70a-4a43-9c44-319b9a7a8cd1 named \"EI: Activities Onboarding\" that was previously unpublished during stale-content cleanup."
          }
        ],
        "cta_text" => "Review stale experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Cleaning up stale published content can reduce maintenance overhead, lower the chance of users encountering outdated guidance, and keep your live Appcues inventory focused on current adoption goals.",
        "finding" => "Routine cleanup check: **4 published experiences** that were published more than 3 weeks ago have had **no activity in the last 30 days**.\n\n- [User creation flow - test](https://studio.appcues.com/flows/33833a66-cf58-49c3-a670-c9b3edbaa16a/settings)\n  - Type: Flow\n  - Designed to guide users through creating or inviting a user, based on the step content and targeting on a test environment page.\n  - Last 30 days: **0 seen**, **0 completed**, **0 skipped**\n\n- [Off-boarding: Leaving MI](https://studio.appcues.com/flows/04a4ad44-4e40-4e8d-8af7-518058ba10e3/settings)\n  - Type: Flow\n  - Designed to catch users on the profile/settings page when leaving MI and route them to provide feedback.\n  - Targeting metadata suggests it was aimed at the **MI \"ON\"** segment on the user settings page.\n  - Last 30 days: **0 seen**, **0 completed**, **0 skipped**\n\n- [MI: Feedback Form](https://studio.appcues.com/flows/4140078f-f5d9-4b95-a190-4762b67995a8/settings)\n  - Type: Flow\n  - Designed to collect feedback about what is missing in Inquiries and how the feature helped, with an option to schedule a call.\n  - Last 30 days: **0 seen**, **0 completed**, **0 skipped**\n\n- [EI: Activities Onboarding](https://studio.appcues.com/flows/c4740cb5-e70a-4a43-9c44-319b9a7a8cd1/settings)\n  - Type: Flow\n  - Designed to introduce the Activities view and explain the transition away from separate Tasks, Interactions, and History tabs.\n  - Last 30 days: **0 seen**, **0 completed**, **0 skipped**, **6 errors**",
        "outcomes" => ["engagement", "adoption"],
        "priority" => "medium",
        "title" => "4 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "d82291ad-675c-49fa-9d89-eb85f1b611ea",
  "workflow_key" => "insight-issue-added"
}

Meta

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

Errors

Attempt 5—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 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