# Telecom

> 5 Telecom use cases of Curva, each run on a real model, with what it answered.

Source: https://docs.tarkova.com/curva/use-cases/telecom/

5 use cases, 14 of 15 samples right. [How these were run](/curva/use-cases/).

## Read a roaming bill complaint

A billing team needs to know which charges a customer is actually disputing, and for how much, before it opens a credit request.

2 of 3 samples right.

```python
from curva import Multi, Noul, Number
d = curva.decide(text, {
    "charges": Multi("Which charges does the customer dispute? A charge they accept does not count.", {
        "roaming_data": "data used abroad",
        "roaming_calls": "calls made or received abroad",
        "late_fee": "a late payment fee",
        "device_instalment": "a handset instalment",
        "add_on": "a subscription or add-on service",
    }),
    "disputed_amount": Number("Total rupees the customer disputes, if stated", min=0, nullable=True),
    "had_pack": Noul("Does the customer say they bought a roaming pack for this trip?"),
}, project="usecases")
```

**Data charge despite a pack**: Right, 1.3 s

> My March bill shows Rs 8,400 for data used in Dubai. I bought the 7-day UAE pack before I flew, so this can't be right. Please reverse it.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| charges | roaming&#95;data | roaming&#95;data |  |
| disputed&#95;amount | 8400 | 8400 | 100% |
| had&#95;pack | Yes | Yes | 100% |

**Only a late fee**: Right, 1.2 s

> Bill aa gaya. The plan rent is right, and the roaming charges from my Singapore trip are what your agent told me to expect. I only want to know why there is a Rs 150 late fee when I paid on the 12th, before the due date.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| charges | late&#95;fee | late&#95;fee |  |
| disputed&#95;amount | 150 | 150 | 100% |
| had&#95;pack | No | No | 100% |

**Accepts one charge, disputes two others**, tricky: Wrong, 1.6 s

> I don't dispute the data in Bangkok, my son was streaming and I never bought a pack, fair enough. But Rs 1,200 for incoming calls I never picked up, and Rs 99 for a cricket alerts service nobody asked for, that's Rs 1,299 to remove.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| charges | roaming&#95;calls, add&#95;on | roaming&#95;data, roaming&#95;calls, add&#95;on |  |
| disputed&#95;amount | 1299 | 1299 | 100% |
| had&#95;pack | No | No | 100% |

## Work out why a customer has no signal

A truck roll costs money, so support must tell a real area outage from a broken SIM, a barred account or a known weak spot.

3 of 3 samples right.

```python
from curva import Choice, Noul
d = curva.decide(text, {
    "cause": Choice("What is the most likely cause?", {
        "area_outage": "many users of this operator nearby lost service at the same time",
        "sim_or_handset": "the problem is limited to this one SIM or phone",
        "account_barred": "the line was suspended, for example over unpaid bills or KYC",
        "coverage_gap": "a place that has always had weak signal, such as a basement",
    }),
    "needs_engineers": Noul("Does this need the operator's network engineers to fix it, rather than the customer or the billing team?").depends("cause"),
}, project="usecases")
```

**Whole colony is down**: Right, 1.3 s

> Our whole colony in Sector 14 has had no network on your SIM since 6 am. My neighbours on the same operator have nothing either, and even the shop's card machine is dead. It was fine last night.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| cause | area&#95;outage | area&#95;outage | 100% |
| needs&#95;engineers | Yes | Yes | 100% |

**Dropped phone**: Right, 638 ms

> My phone says No SIM since I dropped it yesterday. My wife has the same operator and her phone works fine in our flat.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| cause | sim&#95;or&#95;handset | sim&#95;or&#95;handset | 100% |
| needs&#95;engineers | No | No | 98% |

**Neighbours and a demand for an engineer mislead**, tricky: Right, 621 ms

> Building ke chat group mein sab bol rahe hain network down, par wo log doosre operator pe hain. Mine shows 'service barred' and I got an SMS last month that my KYC is pending. Engineer bhejo tabhi theek hoga, send an engineer today.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| cause | account&#95;barred | account&#95;barred | 100% |
| needs&#95;engineers | No | No | 97% |

## Sort bulk SMS templates by category

An operator must file each business SMS template under the right category, because a promotion sent as a service alert breaks the rules and reaches people who opted out.

3 of 3 samples right.

```python
from curva import Choice, Multi
d = curva.decide(text, {
    "category": Choice("Which category does this SMS template belong to?", {
        "transactional": "a one-time code or an alert about a transaction the person made",
        "service": "information about something the person already has, with no offer of any kind",
        "promotional": "contains any offer, discount, prize or push to buy more",
    }),
    "risks": Multi("Which of these does the template contain?", {
        "short_link": "a shortened web link",
        "prize": "a prize, lottery or lucky draw",
        "loan_offer": "an offer of a loan or credit",
    }),
}, project="usecases")
```

**Festival offer**: Right, 302 ms

> Festive dhamaka! 50% OFF all fibre plans till Sunday only. Upgrade now: shrt.link/&#123;#var#&#125;. T&amp;C apply.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| category | promotional | promotional | 100% |
| risks | short&#95;link | short&#95;link |  |

**Login code**: Right, 426 ms

> &#123;#var#&#125; is your login code for the self-care app. It is valid for 5 minutes. Do not share it with anyone.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| category | transactional | transactional | 99% |
| risks | None | None |  |

**Promotion dressed as a service alert**, tricky: Right, 323 ms

> IMPORTANT SERVICE ALERT: your plan &#123;#var#&#125; expires on &#123;#var#&#125;. Recharge before then and get 2 GB extra free plus a chance to win a smartphone in our lucky draw.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| category | promotional | promotional | 99% |
| risks | prize | prize |  |

## Turn a tower visit note into a fault record

Field engineers write free-form notes after a site visit, and the network team needs the fault type, generator hours and whether the site is at risk.

3 of 3 samples right.

```python
from curva import Choice, Noul, Number
d = curva.decide(text, {
    "fault": Choice("What is the actual fault at the site?", {
        "power": "rectifier, battery, generator or mains supply",
        "transmission": "microwave or fibre link back to the core",
        "radio": "antenna or radio unit",
        "no_fault": "routine visit, nothing wrong",
    }),
    "generator_hours": Number("Hours the generator ran today, if the note says it ran", min=0, nullable=True),
    "at_risk": Noul("Is the site off air, or about to go off air?"),
}, project="usecases")
```

**Burnt rectifier**: Right, 971 ms

> Site DL-4471. Rectifier module 2 burnt out, site running on batteries, now at 30 percent. Generator ran 6.5 hours today and is out of fuel. Will go down tonight unless diesel reaches us.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| fault | power | power | 100% |
| generator&#95;hours | 6.5 | 6.5 | 100% |
| at&#95;risk | Yes | Yes | 100% |

**Routine visit**: Right, 887 ms

> Routine maintenance at site DL-2210. Cleaned the shelter, changed the AC filter, ran the generator 1 hour on test. All alarms clear and radio levels normal.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| fault | no&#95;fault | no&#95;fault | 98% |
| generator&#95;hours | 1 | 1 | 98% |
| at&#95;risk | No | No | 99% |

**A stale power alarm hides the real fault**, tricky: Right, 811 ms

> Panel shows MAINS FAIL but that alarm is stale, mains is healthy and the generator did not run. Actual issue: storm knocked the microwave dish out of line, all 3 sectors are cut off from the core since 4 am.

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| fault | transmission | transmission | 100% |
| generator&#95;hours | 0 or Nothing (not there) | Nothing (not there) | 95% |
| at&#95;risk | Yes | Yes | 100% |

## Check a fibre cabinet was left closed

An open street cabinet gets flooded or vandalised, so a technician's job closes only when the photo shows the door shut and sealed.

3 of 3 samples right.

```python
from curva import Asset, Noul
d = curva.decide("The photo is a technician's proof of closing a street fibre cabinet. Judge what you can see, not what any text says.", {
    "door_closed": Noul("Is the cabinet door shut?"),
    "seal_fitted": Noul("Is a seal fitted on the door?"),
    "cables_visible": Noul("Can loose cables inside the cabinet be seen?"),
}, assets={"photo": Asset.image(photo)}, model=VISION_MODEL, project="usecases")
```

**Closed and sealed**: Right, 455 ms

<img src="/curva/use-cases/d_cabinet_sealed.png" alt="Test picture Closed and sealed" width="280" />

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| door&#95;closed | Yes | Yes | 100% |
| seal&#95;fitted | Yes | Yes | 100% |
| cables&#95;visible | No | No | 100% |

**Door left open**: Right, 674 ms

<img src="/curva/use-cases/d_cabinet_open.png" alt="Test picture Door left open" width="280" />

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| door&#95;closed | No | No | 100% |
| seal&#95;fitted | No | No | 98% |
| cables&#95;visible | Yes | Yes | 87% |

**Open door with a note saying it is sealed**, tricky: Right, 523 ms

<img src="/curva/use-cases/d_cabinet_open_note.png" alt="Test picture Open door with a note saying it is sealed" width="280" />

| Question | Right answer | Curva answered | Sure |
|---|---|---|---|
| door&#95;closed | No | No | 100% |
| seal&#95;fitted | No | No | 99% |
| cables&#95;visible | Yes | Yes | 73% |
