# 3-Month EOT Nudge Test Examples

These are example JSON payloads for testing the 3-month EOT nudge sequences via Make.com or curl.

## Endpoint

```
POST /api/lia/nudge
Headers: x-api-key: <your-api-key>
```

---

## NUDGE_1_3_NEW

**Description:** First nudge for NEW car customers at 3 months - end-of-contract check reminder + strongest loyalty support available.

```json
{
  "conversation_id": "11111111-1111-1111-1111-111111111111",
  "nudge_type": "NUDGE_1_3_NEW",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": false
}
```

---

## NUDGE_2_3_NEW

**Description:** Second nudge for NEW car customers at 3 months - last window urgency + stock availability warning.

```json
{
  "conversation_id": "11111111-1111-1111-1111-111111111111",
  "nudge_type": "NUDGE_2_3_NEW",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": false
}
```

---

## NUDGE_3_3_NEW (Advisor Bridge)

**Description:** Third nudge for NEW car customers at 3 months - advisor call option to schedule end-of-contract review.

```json
{
  "conversation_id": "11111111-1111-1111-1111-111111111111",
  "nudge_type": "NUDGE_3_3_NEW",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": false
}
```

---

## NUDGE_1_3_USED

**Description:** First nudge for USED car customers at 3 months - end-of-contract check reminder + early swap options.

```json
{
  "conversation_id": "22222222-2222-2222-2222-222222222222",
  "nudge_type": "NUDGE_1_3_USED",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": true
}
```

---

## NUDGE_2_3_USED

**Description:** Second nudge for USED car customers at 3 months - importance of reviewing options + risk of doing nothing.

```json
{
  "conversation_id": "22222222-2222-2222-2222-222222222222",
  "nudge_type": "NUDGE_2_3_USED",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": true
}
```

---

## NUDGE_3_3_USED (Advisor Bridge)

**Description:** Third nudge for USED car customers at 3 months - advisor call option for end-of-contract check.

```json
{
  "conversation_id": "22222222-2222-2222-2222-222222222222",
  "nudge_type": "NUDGE_3_3_USED",
  "template_key": "EOT_3",
  "payments_remaining": 3,
  "is_used_customer": true
}
```

---

## Testing with curl

```bash
curl -X POST "https://your-replit-url.repl.co/api/lia/nudge" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "conversation_id": "11111111-1111-1111-1111-111111111111",
    "nudge_type": "NUDGE_1_3_NEW",
    "template_key": "EOT_3",
    "payments_remaining": 3,
    "is_used_customer": false
  }'
```

---

## Expected Response

```json
{
  "conversation_id": "11111111-1111-1111-1111-111111111111",
  "nudge_type": "NUDGE_1_3_NEW",
  "template_key": "NUDGE_1_3_NEW",
  "reply": "Hi [customer_name], just a quick reminder — you're now close to the end of your agreement, so we'll need to complete your end-of-contract check soon.\n\nThis is also the point where your strongest loyalty support becomes available if you decide to upgrade.\n\nIf you want me to hold the best-value options for you, just let me know what day you could pop in."
}
```

---

## Complete 3-Month Nudge Sequence

### NEW Car Journey:
1. **NUDGE_1_3_NEW** → End-of-contract check reminder + strongest loyalty support
2. **NUDGE_2_3_NEW** → Last window urgency + stock/loyalty changes
3. **NUDGE_3_3_NEW** → Advisor bridge (schedule review call)

### USED Car Journey:
1. **NUDGE_1_3_USED** → End-of-contract check + early swap options
2. **NUDGE_2_3_USED** → Importance of reviewing + risk messaging
3. **NUDGE_3_3_USED** → Advisor bridge (protect from charges + true value)

---

## Key Messaging Differences

| Element | NEW Car Focus | USED Car Focus |
|---------|---------------|----------------|
| **Nudge 1** | Strongest loyalty support | Early swap achievability |
| **Nudge 2** | Stock availability + loyalty changes | Risk of doing nothing |
| **Nudge 3** | Settlement + unused loyalty | Unexpected charges + true value |
