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

Args

%{
  "account_id" => "20715",
  "data" => %{
    "account_insight_agent_id" => "1ba89b73-b5dc-4ba9-a75a-ce89bf18e88e",
    "insights" => [
      %{
        "action_plan" => "Review each experience and decide whether it still serves an active journey.\n\n1. Keep live content that supports a current product surface, audience, or onboarding path\n2. Unpublish content tied to retired pages, dev environments, or outdated workflows\n3. If an experience is still strategically important, update its targeting or relaunch plan before keeping it published\n\nThis is routine housekeeping to keep your live experience inventory focused and easier to govern.",
        "actions" => [
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience operation to unpublish the published web flow with experience ID 55e65caf-ef57-45bf-93c9-63450584ce62 named \"Nova Antecipação - Features\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days and was published on 2022-08-09.",
            "title" => "Unpublish inactive feature walkthrough flow",
            "undo_prompt" => nil
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience operation to unpublish the published web flow with experience ID 1e101e6a-d5b8-4637-8c1a-7c8407d0c14b named \"teste\". This flow has had 0 seen, 0 completed, and 0 skipped users in the last 30 days and was published on 2021-06-18. Note: this experience has pending draft changes, so only unpublish the live experience.",
            "title" => "Unpublish inactive welcome modal flow",
            "undo_prompt" => nil
          },
          %{
            "cta" => "Unpublish",
            "prompt" => "Use the product_support agent and the unpublish_experience operation to unpublish the published checklist with experience ID -LNVvfKJNVWjDutiqkWc named \"Próximos passos\". This checklist has had 0 seen, 0 completed, 0 skipped, and 0 dismissed users in the last 30 days.",
            "title" => "Unpublish inactive onboarding checklist",
            "undo_prompt" => nil
          }
        ],
        "cta_text" => "Review inactive experiences",
        "entity_id" => nil,
        "entity_type" => nil,
        "expected_impact" => "Unpublishing truly inactive experiences should reduce operational clutter, lower the risk of outdated guidance resurfacing, and make it easier for your team to maintain only current onboarding and adoption content.",
        "finding" => "This looks like routine content hygiene: **3 published experiences** that were published more than 3 weeks ago have had **no activity in the last 30 days**.\n\n- [**Nova Antecipação - Features**](https://studio.appcues.com/flows/55e65caf-ef57-45bf-93c9-63450584ce62/settings)\n  - Type: **Flow**\n  - Designed to guide users through the **new receivables anticipation workflow**, including account setup, total available receivables, buyer-level opportunity review, pricing model, request options, and the anticipation basket\n  - Targeting: shown **once** on **/anticipation/new** across supplier domains\n  - Goals: **none configured**\n\n- [**teste**](https://studio.appcues.com/flows/1e101e6a-d5b8-4637-8c1a-7c8407d0c14b/settings)\n  - Type: **Flow**\n  - Designed as a **welcome modal** introducing Antecipa and its receivables anticipation marketplace\n  - Targeting: shown **every time** on the root path **/** of the supplier dev environment\n  - Goals: **none configured**\n\n- [**Próximos passos**](https://studio.appcues.com/checklists/-LNVvfKJNVWjDutiqkWc/edit)\n  - Type: **Checklist**\n  - Designed as a **sequential onboarding checklist** with milestones such as **Acessei**, **Me cadastrei**, **Assinei contrato**, and **Solicitei primeira antecipação**\n  - Targeting/goals: not exposed in the metadata retrieved for this legacy checklist\n\nNone of these experiences recorded seen events or enrollments during the last 30 days, so they are good candidates to review for retirement.",
        "outcomes" => ["engagement", "retention"],
        "priority" => "medium",
        "title" => "3 published experiences have had no activity for more than 30 days.",
        "type" => "issue"
      }
    ]
  },
  "notification_id" => "3c49ec26-d277-4035-ab29-c01d96788111",
  "workflow_key" => "insight-issue-added"
}

Meta

%{"orig_scheduled_at" => 1777557175488499, "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