{
  "ok": true,
  "tenantSlug": "fdme",
  "lead": {
    "name": "FDME Proof Lead 20260513015014",
    "phone": "954-555-0198",
    "email": "fdme-proof-20260513015014@example.com",
    "serviceRequested": "AI lead employee install for missed marketing-service inquiries",
    "city": "Boca Raton",
    "address": "FDME proof lead address",
    "message": "We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.",
    "source": "codex_paid_install_proof_video_20260513015014",
    "preferredContact": "phone",
    "timestamp": "2026-05-13T01:50:15.309Z"
  },
  "ocsp": {
    "ok": true,
    "mode": "paid_customer_install_agent_run",
    "result": {
      "tenant": {
        "slug": "fdme",
        "displayName": "Florida Digital Marketing Experts",
        "businessName": "Florida Digital Marketing Experts",
        "businessType": "AI employee installer",
        "phoneLabel": "FDME AI Lead Employee line"
      },
      "triggerSource": "website_form",
      "input": {
        "businessName": "Florida Digital Marketing Experts",
        "businessType": "AI employee installer",
        "serviceArea": [
          "Boca Raton",
          "Fort Lauderdale",
          "Miami",
          "West Palm Beach",
          "Florida"
        ],
        "ownerName": "Garfield",
        "ownerPhone": "owner-review-required",
        "ownerEmail": "floridadigitalmarketingexperts@gmail.com",
        "bookingLink": "https://cal.com/garfield-lawrence-pkoxkw/30min",
        "sandbox": false,
        "lead": {
          "name": "FDME Proof Lead 20260513015014",
          "phone": "954-555-0198",
          "email": "fdme-proof-20260513015014@example.com",
          "serviceRequested": "AI lead employee install for missed marketing-service inquiries",
          "city": "Boca Raton",
          "address": "FDME proof lead address",
          "message": "We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.",
          "source": "codex_paid_install_proof_video_20260513015014",
          "preferredContact": "phone",
          "timestamp": "2026-05-13T01:50:15.309Z"
        }
      },
      "run": {
        "runId": "lbalt-1778637015371-0cri49",
        "status": "needs_owner_review",
        "noSend": false,
        "unsafeActionsBlocked": [
          "customer-facing follow-up without consent",
          "charge payment"
        ],
        "agents": [
          {
            "agent": "Lead Intake Agent",
            "buyerName": "Missed Lead Helper",
            "status": "passed",
            "output": {
              "leadRecord": {
                "lead_id": "florida-digital-marketing-experts-fdme-proof-lead-20260513015014-ai-lead-employee-install-for-missed-marketing-service-inquiries",
                "name": "Fdme Proof Lead 20260513015014",
                "phone": "954-555-0198",
                "email": "fdme-proof-20260513015014@example.com",
                "service_requested": "AI lead employee install for missed marketing-service inquiries",
                "city": "Boca Raton",
                "address": "FDME proof lead address",
                "source": "codex_paid_install_proof_video_20260513015014",
                "urgency": "normal",
                "status": "ready_for_follow_up",
                "received_at": "2026-05-13T01:50:15.309Z"
              },
              "ownerAlert": "New AI lead employee install for missed marketing-service inquiries lead\nName: Fdme Proof Lead 20260513015014\nPhone: 954-555-0198\nEmail: fdme-proof-20260513015014@example.com\nCity: Boca Raton\nProblem: We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.\nUrgency: normal\nNext step: send follow-up draft",
              "missingQuestions": [
                "When would you like help?"
              ]
            },
            "proof": "Normalized lead record and owner alert generated from the inbound lead."
          },
          {
            "agent": "Website Chat Agent",
            "buyerName": "Website Lead Chat Helper",
            "status": "passed",
            "output": {
              "transcript": [
                {
                  "role": "assistant",
                  "text": "Hi, this is Florida Digital Marketing Experts. What do you need help with?"
                },
                {
                  "role": "visitor",
                  "text": "We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff."
                },
                {
                  "role": "assistant",
                  "text": "I can help with AI lead employee install for missed marketing-service inquiries. What is your name, phone, city, and how urgent is this?"
                },
                {
                  "role": "system",
                  "text": "Captured Fdme Proof Lead 20260513015014, 954-555-0198, Boca Raton, urgency normal."
                }
              ],
              "qualificationScore": 72
            },
            "proof": "Chat intake converted the visitor message into structured qualification data."
          },
          {
            "agent": "Follow-Up Agent",
            "buyerName": "Warm Lead Follow-Up Helper",
            "status": "needs_owner_review",
            "output": {
              "draft": "Hi Fdme Proof Lead 20260513015014, this is Florida Digital Marketing Experts. We saw your request about AI lead employee install for missed marketing-service inquiries. Do you still need help, and is now a good time for Garfield to call? Reply STOP to opt out.",
              "consentRequired": true,
              "sent": false
            },
            "proof": "Follow-up was drafted only. No outbound communication was sent."
          },
          {
            "agent": "Booking Handoff Agent",
            "buyerName": "Book More Jobs Helper",
            "status": "needs_owner_review",
            "output": {
              "action": "send_booking_link_draft",
              "booking_link": "https://cal.com/garfield-lawrence-pkoxkw/30min",
              "assignee": "Garfield"
            },
            "proof": "Booking handoff was prepared as an owner-approved next step."
          },
          {
            "agent": "Owner Report Agent",
            "buyerName": "Lead Report Helper",
            "status": "passed",
            "output": {
              "new_leads": 1,
              "hot_leads": 0,
              "blocked_leads": 0,
              "follow_up_drafts": 1,
              "booking_handoffs": 1,
              "open_owner_actions": 0,
              "revenue_leak_note": "Follow-up draft is ready before the lead gets cold."
            },
            "proof": "Owner report summarized the run, open action, and leak risk."
          },
          {
            "agent": "Safety Review Agent",
            "buyerName": "AI Safety Check Helper",
            "status": "needs_owner_review",
            "output": {
              "no_send": false,
              "allowed_actions": [
                "classify lead",
                "draft response",
                "send owner alert",
                "write CRM",
                "prepare booking handoff",
                "create proof output"
              ],
              "blocked_actions": [
                "customer-facing follow-up without consent",
                "charge payment"
              ],
              "launch_gate": "paid_customer_install_active",
              "approval_required_for": [
                "customer-facing outbound messages",
                "payment collection",
                "public claims"
              ]
            },
            "proof": "Safety gate blocked live sends/writes/calls and listed approval requirements."
          }
        ],
        "proofLedger": [
          {
            "proof_id": "lbalt-1778637015371-0cri49-lead-intake-agent",
            "agent": "Lead Intake Agent",
            "status": "passed",
            "detail": "Normalized lead record and owner alert generated from the inbound lead.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          },
          {
            "proof_id": "lbalt-1778637015371-0cri49-website-chat-agent",
            "agent": "Website Chat Agent",
            "status": "passed",
            "detail": "Chat intake converted the visitor message into structured qualification data.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          },
          {
            "proof_id": "lbalt-1778637015371-0cri49-follow-up-agent",
            "agent": "Follow-Up Agent",
            "status": "needs_owner_review",
            "detail": "Follow-up was drafted only. No outbound communication was sent.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          },
          {
            "proof_id": "lbalt-1778637015371-0cri49-booking-handoff-agent",
            "agent": "Booking Handoff Agent",
            "status": "needs_owner_review",
            "detail": "Booking handoff was prepared as an owner-approved next step.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          },
          {
            "proof_id": "lbalt-1778637015371-0cri49-owner-report-agent",
            "agent": "Owner Report Agent",
            "status": "passed",
            "detail": "Owner report summarized the run, open action, and leak risk.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          },
          {
            "proof_id": "lbalt-1778637015371-0cri49-safety-review-agent",
            "agent": "Safety Review Agent",
            "status": "needs_owner_review",
            "detail": "Safety gate blocked live sends/writes/calls and listed approval requirements.",
            "timestamp": "2026-05-13T01:50:15.372Z",
            "no_send": true
          }
        ],
        "runHistory": {
          "run_id": "lbalt-1778637015371-0cri49",
          "business": "Florida Digital Marketing Experts",
          "lead_source": "codex_paid_install_proof_video_20260513015014",
          "started_at": "2026-05-13T01:50:15.372Z",
          "completed_at": "2026-05-13T01:50:15.372Z",
          "sandbox": false,
          "status": "needs_owner_review",
          "agent_count": 6,
          "proof_rows": 6
        },
        "ownerSummary": "New AI lead employee install for missed marketing-service inquiries lead\nName: Fdme Proof Lead 20260513015014\nPhone: 954-555-0198\nEmail: fdme-proof-20260513015014@example.com\nCity: Boca Raton\nProblem: We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.\nUrgency: normal\nNext step: send follow-up draft",
        "nextAction": "Owner can approve the follow-up draft or booking handoff."
      },
      "timeline": [
        {
          "step": 1,
          "label": "Missed Lead Helper ran",
          "status": "passed",
          "detail": "Normalized lead record and owner alert generated from the inbound lead.",
          "output": {
            "leadRecord": {
              "lead_id": "florida-digital-marketing-experts-fdme-proof-lead-20260513015014-ai-lead-employee-install-for-missed-marketing-service-inquiries",
              "name": "Fdme Proof Lead 20260513015014",
              "phone": "954-555-0198",
              "email": "fdme-proof-20260513015014@example.com",
              "service_requested": "AI lead employee install for missed marketing-service inquiries",
              "city": "Boca Raton",
              "address": "FDME proof lead address",
              "source": "codex_paid_install_proof_video_20260513015014",
              "urgency": "normal",
              "status": "ready_for_follow_up",
              "received_at": "2026-05-13T01:50:15.309Z"
            },
            "ownerAlert": "New AI lead employee install for missed marketing-service inquiries lead\nName: Fdme Proof Lead 20260513015014\nPhone: 954-555-0198\nEmail: fdme-proof-20260513015014@example.com\nCity: Boca Raton\nProblem: We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.\nUrgency: normal\nNext step: send follow-up draft",
            "missingQuestions": [
              "When would you like help?"
            ]
          }
        },
        {
          "step": 2,
          "label": "Website Lead Chat Helper ran",
          "status": "passed",
          "detail": "Chat intake converted the visitor message into structured qualification data.",
          "output": {
            "transcript": [
              {
                "role": "assistant",
                "text": "Hi, this is Florida Digital Marketing Experts. What do you need help with?"
              },
              {
                "role": "visitor",
                "text": "We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff."
              },
              {
                "role": "assistant",
                "text": "I can help with AI lead employee install for missed marketing-service inquiries. What is your name, phone, city, and how urgent is this?"
              },
              {
                "role": "system",
                "text": "Captured Fdme Proof Lead 20260513015014, 954-555-0198, Boca Raton, urgency normal."
              }
            ],
            "qualificationScore": 72
          }
        },
        {
          "step": 3,
          "label": "Warm Lead Follow-Up Helper ran",
          "status": "needs_owner_review",
          "detail": "Follow-up was drafted only. No outbound communication was sent.",
          "output": {
            "draft": "Hi Fdme Proof Lead 20260513015014, this is Florida Digital Marketing Experts. We saw your request about AI lead employee install for missed marketing-service inquiries. Do you still need help, and is now a good time for Garfield to call? Reply STOP to opt out.",
            "consentRequired": true,
            "sent": false
          }
        },
        {
          "step": 4,
          "label": "Book More Jobs Helper ran",
          "status": "needs_owner_review",
          "detail": "Booking handoff was prepared as an owner-approved next step.",
          "output": {
            "action": "send_booking_link_draft",
            "booking_link": "https://cal.com/garfield-lawrence-pkoxkw/30min",
            "assignee": "Garfield"
          }
        },
        {
          "step": 5,
          "label": "Lead Report Helper ran",
          "status": "passed",
          "detail": "Owner report summarized the run, open action, and leak risk.",
          "output": {
            "new_leads": 1,
            "hot_leads": 0,
            "blocked_leads": 0,
            "follow_up_drafts": 1,
            "booking_handoffs": 1,
            "open_owner_actions": 0,
            "revenue_leak_note": "Follow-up draft is ready before the lead gets cold."
          }
        },
        {
          "step": 6,
          "label": "AI Safety Check Helper ran",
          "status": "needs_owner_review",
          "detail": "Safety gate blocked live sends/writes/calls and listed approval requirements.",
          "output": {
            "no_send": false,
            "allowed_actions": [
              "classify lead",
              "draft response",
              "send owner alert",
              "write CRM",
              "prepare booking handoff",
              "create proof output"
            ],
            "blocked_actions": [
              "customer-facing follow-up without consent",
              "charge payment"
            ],
            "launch_gate": "paid_customer_install_active",
            "approval_required_for": [
              "customer-facing outbound messages",
              "payment collection",
              "public claims"
            ]
          }
        }
      ],
      "persisted": {
        "ok": true,
        "table": "local_business_ai_lead_team_runs"
      },
      "actionQueue": {
        "ok": true,
        "table": "local_business_ai_action_queue",
        "queued": 5,
        "blocked": 0,
        "actions": [
          {
            "id": "b1b90a4a-b8eb-4f3e-8eb6-1a0059844234",
            "run_id": "lbalt-1778637015371-0cri49",
            "tenant_slug": "fdme",
            "action_type": "lead_intake_agent",
            "status": "approved_pending_execution",
            "channel": "crm",
            "recipient": "hubspot-service-key",
            "payload": {
              "lead": {
                "city": "Boca Raton",
                "name": "FDME Proof Lead 20260513015014",
                "email": "fdme-proof-20260513015014@example.com",
                "phone": "954-555-0198",
                "source": "codex_paid_install_proof_video_20260513015014",
                "address": "FDME proof lead address",
                "message": "We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.",
                "timestamp": "2026-05-13T01:50:15.309Z",
                "preferredContact": "phone",
                "serviceRequested": "AI lead employee install for missed marketing-service inquiries"
              },
              "nextAction": "Owner can approve the follow-up draft or booking handoff.",
              "businessName": "Florida Digital Marketing Experts",
              "businessType": "AI employee installer",
              "ownerSummary": "New AI lead employee install for missed marketing-service inquiries lead\nName: Fdme Proof Lead 20260513015014\nPhone: 954-555-0198\nEmail: fdme-proof-20260513015014@example.com\nCity: Boca Raton\nProblem: We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.\nUrgency: normal\nNext step: send follow-up draft"
            },
            "approval_required": false,
            "approved_at": null,
            "approved_by": null,
            "executed_at": null,
            "execution_result": {},
            "source": "website_form",
            "created_at": "2026-05-13T01:50:17.032743+00:00",
            "updated_at": "2026-05-13T01:50:17.032743+00:00"
          },
          {
            "id": "3d8af8b4-5062-4d45-b943-80f9ea4a0eba",
            "run_id": "lbalt-1778637015371-0cri49",
            "tenant_slug": "fdme",
            "action_type": "owner_alert",
            "status": "approved_pending_execution",
            "channel": "email",
            "recipient": "floridadigitalmarketingexperts@gmail.com",
            "payload": {
              "nextAction": "Owner can approve the follow-up draft or booking handoff.",
              "ownerSummary": "New AI lead employee install for missed marketing-service inquiries lead\nName: Fdme Proof Lead 20260513015014\nPhone: 954-555-0198\nEmail: fdme-proof-20260513015014@example.com\nCity: Boca Raton\nProblem: We are getting after-hours inquiries and need the AI employee to capture, summarize, alert the owner, and prepare booking handoff.\nUrgency: normal\nNext step: send follow-up draft"
            },
            "approval_required": false,
            "approved_at": null,
            "approved_by": null,
            "executed_at": null,
            "execution_result": {},
            "source": "website_form",
            "created_at": "2026-05-13T01:50:17.032743+00:00",
            "updated_at": "2026-05-13T01:50:17.032743+00:00"
          },
          {
            "id": "5596e6d5-d58e-4fe7-a50b-44ed29864f48",
            "run_id": "lbalt-1778637015371-0cri49",
            "tenant_slug": "fdme",
            "action_type": "follow_up_agent",
            "status": "pending_owner_review",
            "channel": "sms",
            "recipient": "954-555-0198",
            "payload": {
              "sent": false,
              "draft": "Hi Fdme Proof Lead 20260513015014, this is Florida Digital Marketing Experts. We saw your request about AI lead employee install for missed marketing-service inquiries. Do you still need help, and is now a good time for Garfield to call? Reply STOP to opt out.",
              "consentRequired": true
            },
            "approval_required": true,
            "approved_at": null,
            "approved_by": null,
            "executed_at": null,
            "execution_result": {},
            "source": "website_form",
            "created_at": "2026-05-13T01:50:17.032743+00:00",
            "updated_at": "2026-05-13T01:50:17.032743+00:00"
          },
          {
            "id": "73bc4bf2-df0c-4314-be56-2fb8cd763203",
            "run_id": "lbalt-1778637015371-0cri49",
            "tenant_slug": "fdme",
            "action_type": "booking_handoff_agent",
            "status": "approved_pending_execution",
            "channel": "internal",
            "recipient": "floridadigitalmarketingexperts@gmail.com",
            "payload": {
              "action": "send_booking_link_draft",
              "assignee": "Garfield",
              "booking_link": "https://cal.com/garfield-lawrence-pkoxkw/30min"
            },
            "approval_required": true,
            "approved_at": null,
            "approved_by": null,
            "executed_at": null,
            "execution_result": {},
            "source": "website_form",
            "created_at": "2026-05-13T01:50:17.032743+00:00",
            "updated_at": "2026-05-13T01:50:17.032743+00:00"
          },
          {
            "id": "cfa77e66-61bd-4006-a3c9-29f81e2b4be5",
            "run_id": "lbalt-1778637015371-0cri49",
            "tenant_slug": "fdme",
            "action_type": "safety_review_agent",
            "status": "pending_owner_review",
            "channel": "internal",
            "recipient": "floridadigitalmarketingexperts@gmail.com",
            "payload": {
              "no_send": false,
              "launch_gate": "paid_customer_install_active",
              "allowed_actions": [
                "classify lead",
                "draft response",
                "send owner alert",
                "write CRM",
                "prepare booking handoff",
                "create proof output"
              ],
              "blocked_actions": [
                "customer-facing follow-up without consent",
                "charge payment"
              ],
              "approval_required_for": [
                "customer-facing outbound messages",
                "payment collection",
                "public claims"
              ]
            },
            "approval_required": true,
            "approved_at": null,
            "approved_by": null,
            "executed_at": null,
            "execution_result": {},
            "source": "website_form",
            "created_at": "2026-05-13T01:50:17.032743+00:00",
            "updated_at": "2026-05-13T01:50:17.032743+00:00"
          }
        ]
      },
      "executedActions": {
        "attempted": 3,
        "executed": 3,
        "results": [
          {
            "actionId": "b1b90a4a-b8eb-4f3e-8eb6-1a0059844234",
            "actionType": "lead_intake_agent",
            "result": {
              "ok": true,
              "provider": "hubspot",
              "status": "executed",
              "providerResponse": {
                "contactId": "485197471469",
                "contactAction": "created",
                "dealId": "324836354775",
                "hubSpotPortal": "246135876"
              }
            }
          },
          {
            "actionId": "3d8af8b4-5062-4d45-b943-80f9ea4a0eba",
            "actionType": "owner_alert",
            "result": {
              "ok": true,
              "provider": "agentmail",
              "status": "executed",
              "providerResponse": {
                "status": 200,
                "fallbackReason": "resend_domain_not_verified"
              }
            }
          },
          {
            "actionId": "73bc4bf2-df0c-4314-be56-2fb8cd763203",
            "actionType": "booking_handoff_agent",
            "result": {
              "ok": true,
              "provider": "calcom",
              "status": "executed",
              "providerResponse": {
                "mode": "booking_link_handoff",
                "bookingUrl": "https://cal.com/garfield-lawrence-pkoxkw/30min",
                "actionId": "73bc4bf2-df0c-4314-be56-2fb8cd763203",
                "tenant": "fdme"
              }
            }
          }
        ]
      },
      "readiness": {
        "status": "production_ready_with_owner_approval",
        "readyForAutonomousLiveSends": true,
        "readyForRealInboundCapture": true,
        "checks": [
          {
            "key": "supabase_admin",
            "ok": true,
            "required": true
          },
          {
            "key": "retell_api_key",
            "ok": true,
            "required": true
          },
          {
            "key": "agent_tenants",
            "ok": true,
            "required": true
          },
          {
            "key": "outbound_approval_gate",
            "ok": true,
            "required": true
          },
          {
            "key": "safety_gate",
            "ok": true,
            "required": true
          },
          {
            "key": "run_inspector",
            "ok": true,
            "required": true
          },
          {
            "key": "email_provider",
            "ok": true,
            "required": true
          },
          {
            "key": "sms_provider_twilio",
            "ok": true,
            "required": true
          },
          {
            "key": "crm_writeback",
            "ok": true,
            "required": true
          },
          {
            "key": "calendar_writeback",
            "ok": true,
            "required": true
          },
          {
            "key": "table_local_business_ai_lead_team_runs",
            "ok": true,
            "required": true
          },
          {
            "key": "table_local_business_ai_action_queue",
            "ok": true,
            "required": true
          },
          {
            "key": "table_retell_call_events",
            "ok": true,
            "required": true
          }
        ],
        "blockers": []
      }
    }
  }
}