Skip to content

Dataset

WhatsApp Business message thread datasets for AI training

A WhatsApp Business dataset is a collection of the two-way threads between a business's WhatsApp number and its customers: text, media, voice notes, interactive button and list replies, approved message templates and per-message sent, delivered and read statuses. SourceX sources it to a buyer's spec from established businesses that run the WhatsApp Business Platform or the WhatsApp Business app, working from the inbox tool or database that stored the messages. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Threads between a business's WhatsApp number and its customers, with templates, replies, media and message statuses
Typical systems
WhatsApp Business Platform (Cloud API, direct or through a solution provider's inbox) and the WhatsApp Business app; templates from WhatsApp Manager
Typical history
Specified by the buyer; starts when the receiving system began storing webhooks, since the Cloud API returns no past messages on request
Modality
Short message text, voice notes, images and documents, with structured statuses, templates and reply links
Delivery formats
Agreed per order; JSONL threads, original webhook JSON where kept, OGG, JPEG and PDF media, parsed Export chat text
Preparation
Phone numbers, profile names and user IDs replaced with one pseudonym per customer; contact cards, locations and media screened
Licensing
Permitted use agreed per license; rights review covers customer consent; Meta's WhatsApp Business terms are checked by the data owner and buyer
Availability
Sourced to your spec from businesses that stored their WhatsApp threads; supply is not guaranteed
TextIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
thread_idstringPseudonym for one pairing of a business phone number ID and a customer, built from wa_id or the business-scoped user ID.
message_idstringPseudonym of the message's wamid, the ID that statuses, reactions and reply context all point to.
directionenumInbound for entries from the messages webhook, outbound for entries from the business's own send log or app echoes.
timestampstringThe message's Unix time as the webhook gave it, or the parsed line time in an Export chat file.
typeenumThe message type field: text, image, audio, video, document, sticker, location, contacts, interactive, button, reaction or unsupported.
bodystringThe text body of a text message or the caption of a media message, de-identified.
templateobjectFor template sends: the Message template's name, language, category and parameter values, plus the rendered text where it was kept.
interactive_replyobjectThe button_reply or list_reply ID and title of an interactive message, or the payload of a template quick-reply button.
contextobjectThe context ID naming the earlier message this one replies to, plus the message's referral object when the thread began from an ad.
mediaobjectThe Media record's mime_type, hash and caption with the delivered file, and a flag when no file was ever downloaded.
statusesarrayMessage status webhooks for an outbound message: sent, delivered, read or failed, each with its time and any error.
window_stateenumDerived: whether an outbound message fell inside the customer service window opened by the last inbound message.
capture_sourceenumStored webhook payloads, a solution provider's inbox export or the app's Export chat file, which decides the fields that exist.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "thread_id": "thr_b81f6c",
  "customer": "cust_3d90",
  "capture_source": "cloud_api_webhook_store",
  "messages": [
    {
      "message_id": "wamid_p_0041",
      "direction": "outbound",
      "timestamp": "1718006400",
      "type": "template",
      "window_state": "outside_window",
      "template": {
        "name": "delivery_slot_confirmation",
        "language": "en_US",
        "category": "utility",
        "rendered_body": "Hi [NAME], your order [ORDER_ID] is ready. Reply to choose a delivery slot.",
        "buttons": [
          "Tomorrow morning",
          "Tomorrow evening"
        ]
      },
      "statuses": [
        {
          "status": "sent",
          "timestamp": "1718006401"
        },
        {
          "status": "delivered",
          "timestamp": "1718006403"
        },
        {
          "status": "read",
          "timestamp": "1718010122"
        }
      ]
    },
    {
      "message_id": "wamid_p_0042",
      "direction": "inbound",
      "timestamp": "1718010140",
      "type": "button",
      "interactive_reply": {
        "kind": "template_quick_reply",
        "payload": "SLOT_AM",
        "title": "Tomorrow morning"
      },
      "context": {
        "reply_to": "wamid_p_0041"
      }
    },
    {
      "message_id": "wamid_p_0043",
      "direction": "inbound",
      "timestamp": "1718010192",
      "type": "audio",
      "media": {
        "file": "wamid_p_0043.ogg",
        "mime_type": "audio/ogg; codecs=opus",
        "voice": true
      }
    },
    {
      "message_id": "wamid_p_0044",
      "direction": "outbound",
      "timestamp": "1718010420",
      "type": "text",
      "window_state": "inside_window",
      "body": "Got it, we will leave it with the front desk before 10. Anything else?",
      "context": {
        "reply_to": "wamid_p_0043"
      }
    },
    {
      "message_id": "wamid_p_0045",
      "direction": "inbound",
      "timestamp": "1718010466",
      "type": "reaction",
      "reaction": {
        "message_id": "wamid_p_0044",
        "emoji": "👍"
      }
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Customer messaging agents

Real threads teach the short turns, voice notes and photo answers of WhatsApp service.

Deciding between a reply and a template

Window state on each business turn shows when staff answered freely and when they had to reopen with a template.

Intent from button and list replies

Taps on quick-reply buttons and list rows are customer choices the business already labeled.

Voice note understanding

Customer voice notes with the typed reply that followed pair informal speech with what the business understood.

Evaluating reply timing and outcome

Read statuses and the gap before the next customer message show whether a reply landed.

Use-case guides: Customer support agents, Sales agents, Private evaluation sets

What makes this data valuable

Raw webhook payloads kept

Original JSON keeps types, context and identifiers that inbox exports drop.

Rendered template text

Template sends carry the words the customer saw.

Full status chains

Sent, delivered and read events per message, not one final status.

Media files present

A high share of media messages with the file behind them.

Reply and reaction links

Context IDs and reaction targets that resolve to messages in the thread.

One identity per customer

Phone-number and user-ID rows for one person share a pseudonym.

Evaluation split

WhatsApp Business dataset

This page covers whatsApp Business message threads.Illustrative

The 24-hour window splits every WhatsApp thread

WhatsApp decides when a business may speak freely. A customer service window opens when the customer messages the business number and resets with each new customer message. Inside it the business can send free-form text, media and interactive messages. Once it closes, the only thing the business can send is a template that Meta approved in advance, filed under a category of marketing, utility or authentication. Every thread therefore holds two kinds of business turn, and they should not be mixed in training.

A template turn is fixed wording with variables, reviewed before use and sent in the same form to many customers. A free-form turn is an agent or a bot answering one person. The boundary between them carries timing: an agent who answers inside the window writes freely, and one who comes back the next afternoon has to pick a template, so the thread shows when a conversation went cold. SMS threads have opt-in keywords but no rule of this kind.

The replies are structured as well. A tap on a template's quick-reply button arrives as a button message with a payload, and a choice from a reply-button or list message arrives as an interactive message carrying a button_reply or list_reply with an ID and a title, so customer intent is often a discrete choice, not typed text. Replies point at the message they answer through a context ID, reactions name a message ID, and each outbound message collects statuses keyed to its own ID. One thing is easily overwritten. A send log often stores a template by name, language and parameter values, and templates are edited over time, so the words a customer saw have to be rebuilt from the version in force that day.

The archive is whatever the receiving system kept

The Cloud API has no call that returns past conversations. Each inbound message is delivered to the business's webhook, and status webhooks for outbound messages carry the message ID and the status but not the content that was sent. Inbound media arrives as a media ID that stays downloadable for a limited number of days, through a URL that expires minutes after it is issued. The archive is therefore the database or inbox tool that caught the webhooks, joined to that system's own log of what it sent. If the receiver was down or skipped media downloads, that part of the thread exists nowhere. The one exception is a business that connected its WhatsApp Business app number to the Cloud API through a solution provider: a one-time history webhook can pass on recent app chats, without group chats and with media only for the newest messages.

Receiving systems also reshape what they store. Some keep the webhook JSON as received. Others flatten an interactive reply to its title or collapse the status chain to one value. A message type the Cloud API cannot deliver arrives as an unsupported message, a marker that the customer sent something the business never saw. Identity is changing too: older rows are keyed by wa_id, the customer's phone number, while newer webhooks add a business-scoped user ID and can omit the number for customers who use a username, so pseudonymization has to map both to one person.

Businesses on the WhatsApp Business app hold a different archive. Export chat writes one text file per chat, with a timestamp and sender name on each message and media attached or left as a placeholder. It has no delivery or read statuses, no reply links and no button structure, and view-once and disappearing messages are left out. To test any sample, check each business turn: it should either follow a customer message within the window or be a template. Turns that break the rule point to missing inbound messages or shifted timestamps.

What to check before licensing

  • Ask which system captured the threads (stored webhook payloads, a solution provider's inbox or the app's Export chat), from what date, and which fields that source lacks.
  • Ask how outbound messages were captured, and whether template sends carry the rendered text or only a name and parameters.
  • Run the window test on the sample: every free-form business message should follow a customer message within the customer service window.
  • Check whether each outbound message has its sent, delivered and read events or one final status, and whether failed sends were kept.
  • Count media messages with and without a file, and ask how images of people and identity documents were screened.
  • Confirm what customers agreed to when they opted in and whether it reaches this use, and check how phone numbers, profile names, contact cards and locations were removed.
  • Have the buyer and the data owner each check Meta's WhatsApp Business terms on use and onward sharing of message data, and on API use, with counsel.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Can message history be pulled from the WhatsApp Cloud API?

No, not on request. The Cloud API delivers each inbound message and each status update to a webhook and offers no call that returns past threads. The history is whatever the business's receiving system stored, such as a solution provider's inbox, a CRM or its own database, together with its log of outbound sends. A business that linked its WhatsApp Business app number may also have had recent app chats synced once at onboarding. Ask which system captured the webhooks and from what date.

How do template messages differ from free-form replies in the data?

A template is wording approved in advance and reused across customers, and it is the only message a business can send outside the 24-hour customer service window. A free-form reply is written for one customer inside that window. Deliveries should label each business turn as one or the other, so a model does not learn broadcast copy as service language.

Can chats from the WhatsApp Business app be licensed?

They can be, with less structure. The app's Export chat function produces a text file per chat, with media optionally included, and no delivery statuses, reply links or interactive structure. Senders appear as saved contact names or numbers, so parsing and de-identification need more checking. Labels and catalog items are app features the chat text does not carry.

Are voice notes, images and documents included?

They can be, if the receiving system downloaded them when they arrived. The Cloud API does not keep media available for long, so a thread may hold a media message with no file behind it. Voice notes are short audio clips, commonly Opus audio in an OGG file, and images often show people, documents or payment screens. Ask what share of media messages has a file.

How are phone numbers and customer consent handled?

Phone numbers, profile names and contact cards are removed or replaced with stable pseudonyms before delivery. The method is recorded per dataset, and no method is perfect. Consent is for the buyer and the data owner to settle: check what customers agreed to when they opted in, whether it reaches this use, and what Meta's terms say about sharing message data.

Is SourceX affiliated with Meta?

WhatsApp Business is named to identify the system the records come from. That does not imply a partnership with or endorsement by Meta. The records belong to the business that runs WhatsApp Business, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies