News & Insights

Building a Telecom AI Agent That Can Explain the Bill

A $10 data add-on costs $5 if the bill credit applies to it, $10 if the credit applies elsewhere, and an unknown amount if the order link is missing.

Building a Telecom AI Agent That Can Explain the Bill


A language model can work out what a subscriber means by “just for the weekend”. Connecting that request to the right offer, an authorised purchase and a charge the customer can verify takes a different set of engineering decisions.


A subscriber opens a bill, finds a $10 charge for extra data and asks, “Why is this ten? Your chat said five.” The operator still has the conversation. It also has a record of a $5 credit. A care agent could read both, do the arithmetic and give the customer a confident, entirely wrong answer. The credit might belong to a different purchase.


That possibility changes how you design the shopping agent in the first place. When it quotes a price, it creates something a colleague in billing may have to defend weeks later. The campaign could be over by then. The customer could have changed plans. The colleague needs a way back to the line, the terms and the purchase that the quote covered. Searching old chat messages for the number five is a poor substitute.


This is an architectural question for agentic business support systems (BSS). A language model can interpret an unfamiliar request, decide which information to fetch and revise its next step when a customer corrects it. The operator’s catalogue, order, charging and billing systems own different pieces of the answer. An agent earns its place when it can bring those pieces together for a customer who has little reason to know how the operator organises them.


Cloudnet.ai's Veris Agent Builder demo shows the shopping end of this problem. A subscriber running low on data while streaming opens a WhatsApp-style chat, checks their remaining allowance and explores add-ons. The reference design below follows a hypothetical promotion further, through consent, fulfilment and the first bill. The promotion and invoice examples are illustrative.



What does “just for the weekend” mean?


Consider two messages about the same advertised offer. “How much is another 5 GB?” asks for a price. “Can you put that on my other number, but only if it won’t renew?” introduces a line change, a condition on the purchase and a reference to something mentioned earlier. An intent classifier could label both messages “data add-on”. The label discards the information most likely to prevent a bad sale.


A conventional checkout already handles a subscriber who has selected a line, picked a product and pressed a button. Its steps are predictable and inexpensive. The case for involving a language model starts earlier, when the subscriber says what they want in their own terms. “Just for the weekend” gives the agent a time horizon. It suggests checking expiry and renewal. It leaves open whether the customer would accept a recurring product. “Only if it won’t renew” settles that question and rules some products out. Treating an inference as an explicit instruction is a surprisingly consequential mistake here.


A practical agent keeps a small, structured record of the request across turns. It records the selected line, any spending limit the subscriber actually gave, whether recurrence is acceptable and which quote, if any, the customer has seen. It can also record that a detail remains unknown. When the customer switches lines, their preference for a one-off purchase still applies. The old line’s eligibility decision and quote no longer do. A chat summary that says “customer wants the $5 offer” loses all three distinctions.


With two possible lines, the agent asks which one. With the line identified, it can read the balance and reset date, then request a qualified quote. If the customer replies, “Actually, I already bought it yesterday,” it has a reason to look up an existing order and stop the sale. The calls it makes depend on what it learns. A form could handle each of these paths individually. The engineering question is how many of the ordinary ways customers move between them the operator wants to encode by hand. Anthropic draws a similar distinction between predefined workflows and agents that select tools as a task unfolds.


On each turn, let the model propose a question, a read or an answer using the tools available in that state. The application executes an authorised read and returns a typed observation, including the source record and an “as of” time. The model can then revise its plan. An eligibility lookup that comes back unavailable may justify a retry. A second identical failure is a good stopping point for a handoff. Asking the customer to rephrase “weekend” will do nothing to bring a catalogue service back online. In a trace, you want to see the failed call, the observation and the next action. Those are enough to diagnose this error without access to the model’s private reasoning.


The agent can check records throughout the conversation. Placing an order requires the subscriber to confirm a specific quote for a specific line. Once billing posts the charge, the agent can look up what happened.



The agent can revisit a read when a customer changes the question. A confirmed quote follows its own path through ordering, fulfilment and billing.

The gap between finding an offer and qualifying a line


Start with a fictional campaign. A 5 GB add-on ordinarily costs $10 before tax. Through Friday, a line activated in the past 30 days can buy it once for $5 through the app or chat. The extra data expires when that line’s regular allowance resets. On one household account, the main number is four years old and the second number was added two weeks ago. They have the same plan and appear on the same bill. Only the newer line meets the age condition.


The shopping problem has two parts that benefit from different techniques. Finding candidate products is a search problem. A subscriber who asks for “enough to watch the match this weekend” may never use the catalogue term one-off data add-on. Semantic retrieval can connect the two expressions. An exact search over product codes is still useful for the customer who pastes an advert into the chat. The assistant can rank the candidates by fit and ask about a trade-off if two survive. Cloudnet.ai’s whitepaper describes an offer agent querying the product catalogue against budget and usage needs, and separately describes validating a proposed adjustment against an invoice and tariff. Those two examples belong in the same design.


Qualifying a candidate is a decision about a specific subscriber at a specific time. Retrieval-augmented generation (RAG) can supply the published terms and help explain them. Even a perfect match to the advert says nothing about whether this line has already redeemed the offer. The qualification service needs the line’s activation date, redemption history, channel and effective campaign version. Looking only at the age of the household account would deny the offer to the newer line. Looking only at the plan would extend it to both. TM Forum’s TMF679 provides a standard interface for checking commercial eligibility before an order. Its API directory lists separate interfaces for quotes, product orders and customer bills. Those are useful boundaries even when an operator exposes them through older systems.


Give the model three distinguishable outcomes from that check. An eligible result permits it to request a price. An ineligible result can carry a reason the subscriber is entitled to see, such as “this number was activated more than 30 days ago.” An unavailable record leaves eligibility undetermined. Converting a timeout into “no” quietly excludes customers the campaign was intended to reach. Converting it into “yes” creates promises the operator may have to honour. The customer who hears “I can see the offer, but I can’t verify the promotional price on this number yet” at least knows which question remains open.


An illustrative tool trace shows why eligibility alone still leaves work for the shopping agent. Here the subscriber has identified the line and explicitly ruled out a recurring charge.


Subscriber constraint   one-off only, line L42
Catalogue candidates    M5 (monthly boost), P5 (one-off top-up)
Quote for M5            eligible, $4, renews monthly
Quote for P5            eligible, $5, expires Monday, no renewal
Next action             present P5 and ask for confirmation
Subscriber constraint   one-off only, line L42
Catalogue candidates    M5 (monthly boost), P5 (one-off top-up)
Quote for M5            eligible, $4, renews monthly
Quote for P5            eligible, $5, expires Monday, no renewal
Next action             present P5 and ask for confirmation
Subscriber constraint   one-off only, line L42
Catalogue candidates    M5 (monthly boost), P5 (one-off top-up)
Quote for M5            eligible, $4, renews monthly
Quote for P5            eligible, $5, expires Monday, no renewal
Next action             present P5 and ask for confirmation


Sorting eligible products by advertised price would put the $4 option first. The language model contributes the interpretation of “only if it won’t renew”. Once that preference is explicit, ordinary code can exclude recurring products before the model ranks or describes the candidates. That design also gives an engineer something specific to inspect after a bad recommendation. Did the assistant miss the condition, did the catalogue omit the renewal flag, or did the ranking step ignore it?


The evidence behind a price quote


A useful tool response gives the model enough information to answer the next customer question. A boolean saying “eligible” is too thin. Sending the entire customer record makes the model sort through unrelated lines and purchases, costs tokens and can expose information the person in the chat has no right to see. A small set of tools with a clear purpose makes it easier to trace which observation led to a customer-facing claim.


What the customer asks

Record the agent needs

What that record establishes

“Does it work on my other number?”

Qualification result for the selected line, offer version and sales channel

Whether the line qualifies now, and why.

“What will I actually pay?”

A quote with currency, charge, credit, tax treatment, renewal terms and dates

The commercial terms the customer can accept.

“Can I use the data now?”

Order status and the new allowance in the charging system

Whether the operator received the order and whether the data is usable.

“Where is my discount?”

Accepted order, applicable bill and linked charge or credit entries

What the operator promised and what it posted against that purchase.


The distinction between what fits and what is worth buying matters on a Friday afternoon. Imagine the subscriber has 300 MB left and their usual allowance returns on Monday. They qualify for the one-off offer, but they would have only the weekend to use it. Three UK publishes a real example of the same timing issue. Its FAQ explains that a customer buying a £10 Monthly Boost with one day left in the billing cycle pays the whole £10 for that cycle, with just that day to use its allowance. Its Monthly Boost also renews. The deadline to buy, the deadline to use the data and the date of the next charge answer three different questions.


For the fictional offer, the chat now has enough evidence to say something useful.

“On the number ending in 42, 5 GB is $5 before tax. You can use it through Sunday. Your normal allowance resets on Monday and this add-on won’t renew. On your next bill you’ll see a $10 charge and a $5 credit. Would you like to add it to that number?”


The dates, price and renewal flag can come straight from a verified quote. The AI’s contribution is recognising which facts matter to this decision, explaining them together and leaving room for the subscriber to decide that 300 MB and a weekend on Wi-Fi will do. For a subscriber who asked whether the boost works abroad, the same agent would need the roaming terms before it could recommend anything.


A server-side tool gateway can bind reads to the authenticated account and its permitted lines. The conversation supplies the customer’s choice among those lines. The identity service supplies the authority to see or change them. A parent who shares access to usage information may reserve purchases for the account holder. A third-party shopping agent acting for the subscriber faces the same boundary. It can discover a public promotion on its own. A personalised quote requires access the subscriber has delegated and the operator recognises.


The model can make these calls itself or delegate a billing enquiry to a specialist agent with a different set of tools. Splitting the roles is worthwhile when the billing specialist needs access the shopping agent should never have. The handoff should carry the order reference, the unresolved question and the records already checked. Passing only a generated summary invites a small change in meaning. “The customer remembers a $5 offer” can become “the customer was quoted $5” before anyone has looked up the quote.

Between “yes” and five usable gigabytes


An order service ought to be able to accept a quote without asking the language model to reconstruct it. One way to do this is to issue an immutable quote identifier. The quote records the line, offer version, price, expected credit, tax treatment, relevant dates and an acceptance deadline. The order request carries that identifier and a reference to the authenticated customer’s confirmation. The trusted application binds the confirmation to the displayed quote. A model-generated field saying that the customer agreed would let a conversational misunderstanding authorise a charge.


Consider how little the word “yes” establishes on its own. After “Do you mean the number ending in 42?”, it selects a line. After “Add the one-off 5 GB to the number ending in 42 for $5?”, it can confirm the displayed purchase. Both replies would pass a schema check on a boolean called “confirmed”. Record which question is outstanding and attach the response to that question. A simple state check at the order boundary does more for this failure mode than another paragraph of instructions in the system prompt.


Suppose the subscriber asks about a different number after seeing the quote, or replies after the campaign closes. The service checks the line, the right to purchase and the quote’s validity at commit time. If the operator promised to hold a quoted price until a stated deadline, the service honours that promise under the offer rules. If the change requires a new price, the customer sees fresh terms and confirms again. The order retains the accepted version. A future catalogue update can then correct Friday’s advert without rewriting the terms of Friday’s sale.


A quieter failure happens when the order system accepts the request and the chat connection times out before the reply arrives. The subscriber sends “yes” again. The missing reply gives the agent no evidence either way about the purchase. The application should retain one idempotency key per confirmed purchase and reuse it on a retry. The order service records that key atomically with accepting the order and returns the existing order for an equivalent repeat. A genuinely new, separately confirmed purchase gets a new key. Hashing the text “yes” would collapse unrelated orders into one. Amazon’s account of idempotent APIs explains the value of caller-provided request identifiers for this exact class of ambiguity.


That protection applies at the boundary where it was implemented. If a fulfilment system processes the same order event twice, it could still grant 10 GB against a single 5 GB purchase. The consumer of that event needs its own way to recognise a redelivery. Similarly, a retry on Monday should first look for Friday’s accepted order. Rechecking only the current campaign would give the customer “offer expired” for a purchase that already went through.


Order acceptance and usable data can also arrive at different times. An accepted order reference supports “we’ve received your order.” A matching allowance update supports “your extra data is ready.” An operator can persist the order reference, wait for a fulfilment event and notify the subscriber when the balance changes. There is little value in paying a model to poll the same status indefinitely. If fulfilment stalls, the case can carry the order reference and the last observed status to the team that can fix it. A subscriber who returns through another channel should be able to pick up there.


Which purchase got the $5 credit?


Return to the customer who was quoted $5 and sees a $10 charge. The original promotion has ended. In the example, qualification depended on buying by Friday. An order placed on Friday still earned the discount if activation finished on Saturday. An offer whose terms required activation by Friday would raise a different dispute. An agent that consults only today’s catalogue cannot reconstruct either agreement.


A more subtle error survives even a lookup of the right bill. Consider three versions of a statement. Each shows a $10 weekend add-on, a $10 charge for a separate purchase and a $5 credit. The three entries net to $15 before tax in every version. The customer wants to know what they paid for the weekend add-on, order O7.


The following SQL runs as written in SQLite. Amounts are in cents. The order reference on a credit represents a link established by the operator’s billing records. A missing link is left empty.


WITH entries(bill, order_ref, cents) AS (
  VALUES
    ('A', 'O7', 1000), ('A', 'O8', 1000), ('A', 'O7', -500),
    ('B', 'O7', 1000), ('B', 'O8', 1000), ('B', 'O8', -500),
    ('C', 'O7', 1000), ('C', 'O8', 1000), ('C', NULL, -500)
)
SELECT bill,
       SUM(cents) AS total_cents,
       SUM(CASE WHEN order_ref = 'O7' THEN cents END) AS linked_to_o7,
       COUNT(*) - COUNT(order_ref) AS unlinked_entries
FROM entries
GROUP BY bill
ORDER BY bill;
WITH entries(bill, order_ref, cents) AS (
  VALUES
    ('A', 'O7', 1000), ('A', 'O8', 1000), ('A', 'O7', -500),
    ('B', 'O7', 1000), ('B', 'O8', 1000), ('B', 'O8', -500),
    ('C', 'O7', 1000), ('C', 'O8', 1000), ('C', NULL, -500)
)
SELECT bill,
       SUM(cents) AS total_cents,
       SUM(CASE WHEN order_ref = 'O7' THEN cents END) AS linked_to_o7,
       COUNT(*) - COUNT(order_ref) AS unlinked_entries
FROM entries
GROUP BY bill
ORDER BY bill;
WITH entries(bill, order_ref, cents) AS (
  VALUES
    ('A', 'O7', 1000), ('A', 'O8', 1000), ('A', 'O7', -500),
    ('B', 'O7', 1000), ('B', 'O8', 1000), ('B', 'O8', -500),
    ('C', 'O7', 1000), ('C', 'O8', 1000), ('C', NULL, -500)
)
SELECT bill,
       SUM(cents) AS total_cents,
       SUM(CASE WHEN order_ref = 'O7' THEN cents END) AS linked_to_o7,
       COUNT(*) - COUNT(order_ref) AS unlinked_entries
FROM entries
GROUP BY bill
ORDER BY bill;


Statement

Total of the three entries

Amount linked to O7

What care can establish

A

$15

$5

The $5 credit belongs to O7. Show the customer both entries.

B

$15

$10

The credit belongs to O8. The discount due on O7 is missing from this bill.

C

$15

$10 so far

One credit has no order reference. Its attribution is unresolved.


Statement C is a reason to look further. The billing platform may carry an adjustment reference that leads back to the original charge. A care agent can request that history. If the linkage is unavailable, a reviewer needs the receipt, quote, order and invoice entries. A model that guesses the match from similar descriptions and equal amounts turns a data-quality problem into a false assurance.


“I found the $5 quote you accepted for the weekend data and the $10 charge for it on your bill. There’s also a $5 credit, but I can’t tell which purchase it belongs to. I can ask our billing team to trace it for you.”


Statement B warrants a different response. Check whether an adjustment is already in progress, then open a case for the shortfall if needed. The operator can apply its approval rules and tell the subscriber when billing actually posts the credit.


The subscriber’s receipt matters if the records disagree. Suppose the chat confirmation says $5 but the order system recorded $10. Billing may have faithfully charged the order it received. Sending the customer back to billing with only the invoice sends them round the same loop. The reviewer needs both versions to find out where the price changed and decide what the operator owes the customer.


Customers also have reasonable questions when the billing is correct. “I only used half a gigabyte. Why did I pay for five?” On this tariff the price buys a fixed allowance. Using 500 MB of the add-on leaves 4.5 GB to expire. A pay-per-use tariff would charge for consumption instead. Here the agent needs the type of product the customer bought. Fetching more usage records will never, by itself, explain which pricing rule applied.

Would a simpler checkout do as well?


A telecom operator has a fair question for anyone proposing an agent. How much of the improvement comes from the model, and how much comes from finally giving the sales and care applications access to the same records? A conventional checkout with sound integrations can qualify an offer, enforce consent and submit an order just as reliably. A comparison that gives only the agent access to the bill will mostly measure the difference between the integrations.


Run the existing intent router or guided checkout and the proposed agent against the same catalogue versions, account fixtures, clock and tool permissions. Include straightforward purchases where the existing flow should do well. Then vary one fact at a time in conversations that require interpretation. A customer asks whether an add-on renews, then says “yes” in answer to a question about which number they meant. A customer switches numbers after seeing a quote. Another reports that the data is still missing after buying through the app. For each one, specify which clarification, read or handoff would resolve the request and which actions would be unacceptable. Several sensible sequences of reads can lead to the same correct outcome.


There is evidence for taking the conversation itself seriously. In the 2025 τ²-bench study, researchers evaluated agents in a simulated telecom troubleshooting environment where a user and an agent could both take actions. On the 114-task telecom set, GPT-4.1 achieved a 34% single-run success score under the reported default setup. Performance improved when the agent could operate all the tools itself. These were troubleshooting tasks, with different tools and policies from billing. The result is pertinent because a benchmark that hands the model a clean ticket removes some of the work a real subscriber needs it to do. A sales evaluation should preserve the ambiguous “yes”, the change of line and the customer who has already acted elsewhere.


Read the resulting traces at two levels. For the conversation, check whether the agent kept the subscriber’s conditions, asked only for information it needed and disclosed the expiry and renewal terms that affected the choice. For the transaction, inspect the resulting records. Did exactly one authorised order exist on the intended line? Did the allowance become available before the agent reported success? On the bill where the credit was due, did the linked net charge match the accepted quote? Run the same cases several times with the same initial state. An average can hide a rare wrong-line purchase that would matter far more than an unnecessary clarification.


When a run fails, replay it with the known eligible offer inserted into the search results. If the agent succeeds consistently on replay, investigate how the catalogue is indexed and which candidates retrieval returns. If it still recommends the recurring option, inspect how the planner retained the customer’s condition. If it quoted the right price and the bill was wrong, follow the order reference downstream. Recording the model, prompt and tool versions alongside the returned record IDs makes these comparisons possible after the system changes.


The pilot economics follow from those answers. Compare cost and time per verified resolution, counting model calls, downstream queries, repeat contacts and human review. Keep enquiries that correctly end without a sale in the evaluation. If the agent persuades a subscriber to buy a recurring add-on after they explicitly asked for a one-off, a conversion dashboard will reward the very error the operator needs to find.


The most revealing moment may come a month after checkout, when a care rep who has never seen the campaign opens the disputed bill. If they can show what the subscriber accepted, when the data became available and which credit belongs to the purchase, the shopping agent has left something useful behind. If all they have is a friendly transcript, the subscriber gets to explain the whole thing again.

Share This Event

Background