All guides

Tutorial

How Wasmer Works With WhatsApp Chat Data

The Analysis Pipeline

Wasmer's mechanics are simple to describe and easy to get wrong.

Ingest. Conversations are read from the store, incrementally, keyed by message identifier.

Normalise. Messages become records with a type, a direction, a timestamp and a conversation reference.

Attribute. Each inbound message is paired with the next outbound message, which is what makes response time computable.

Enrich. Topic, language and outcome, from Waportal's classification or a separate pass.

Aggregate. Counts and medians over a period, by segment.

Publish. A report, a query result, or an export.

The third step is where most analyses fail, and it deserves the attention.

Pairing Messages

Response time is not a property of a message; it is a property of a pair.

Three rules.

Pair an inbound with the next outbound in the same conversation, regardless of how many inbound messages preceded it.

Do not pair across a resolved conversation, since the next message starts a new thread.

Handle an inbound with no outbound, which is the unanswered case and should be counted rather than dropped.

The third is the one that produces the most valuable number in the whole system.

The Dimensions

Four, and they should be consistent with Waportal.

Topic, from the classification.

Language, detected per message.

Outcome, meaning resolved, escalated, abandoned, or unknown.

Segment, from the contact record where it exists.

Any report that mixes these inconsistently becomes incomparable month to month, which is why the definitions belong in one place.

Aggregation Choices

Four that change the answer.

Median rather than mean for response time, because a few very slow replies distort the average.

Business hours rather than wall clock, where the SLA is defined in business hours.

Conversation rather than message as the unit for resolution metrics.

Explicit unknown bucket, rather than dropping records with missing fields.

Each of those choices should be documented, because a reader who does not know them will misread the number.

Incremental and Repeatable

Three requirements.

Idempotent ingestion, keyed by message identifier, so a re-run does not double count.

A recorded watermark, so a re-run knows where it stopped.

Deterministic aggregation, so the same period produces the same number twice.

The third is what allows a report to be trusted, and it fails quietly when enrichment is regenerated with a different model version.

Query Access

Four properties.

Read only credentials, scoped to the conversation store.

Row level restrictions where the source supports them, so an analyst sees their own region.

Query logging, since analysis is access to personal data.

And no export of raw transcripts without a reason recorded.

Failure Modes

Four.

Response time computed from the outbound, which measures the wrong interval.

Unanswered messages dropped, which hides the most important finding.

A mean used for a skewed distribution, which produces a number nobody recognises.

Enrichment re-run silently, so last month's report cannot be reproduced.

Next step

Read recurring questions for the first report, or contact us to scope the pipeline.

FAQ

Question: How fresh is the data?

Minutes for ingestion, a day for aggregates. Real time analysis of chat is rarely needed and always expensive.

Question: Can it join to order data?

Yes, by the reference collected in the conversation. That join is what turns a topic count into a revenue question.

Question: What about deleted messages?

They are unavailable and should be recorded as such rather than treated as absent. The difference matters in a resolution metric.

Next step

Talk to us about the work.

Tell us what you want an agent to run. We come back with a scope, not a slide deck.