Skip to content

All docs

Imports: WhatsApp chats and mailboxes

How to bring a WhatsApp chat export or a mailbox file in, what is read from it, and what to do when a file is refused.

ActionPotential reads conversations you already had. You export a WhatsApp chat or a mailbox file yourself and upload it. The App never connects to WhatsApp or to a mailbox, and it reads export files only.

What it does

  1. On /imports/new you choose the kind of file and send it:
    • WhatsApp chat: a .txt export or the .zip WhatsApp makes, up to 50 MB.
    • Mailbox file: an .mbox file, or one mail saved as an .eml file, up to 200 MB.
  2. The file is checked when it arrives (size, real content type, zip safety). The file itself is not kept: only the text of the chat or the mails is stored.
  3. The import page asks one question before anything is read:
    • WhatsApp: "Which of these is you?" It lists each sender with their message count. If both day-first and month-first dates fit every line, it first asks which date order the chat uses.
    • Mailbox: it reports how many mails were kept and how many were skipped as newsletters, automatic replies, receipts or no-reply senders, then asks which addresses are yours.
  4. The Worker then reads the conversation in steps (extract, resolve people, check the basis), and the page shows the progress as "X of Y items".
  5. When it finishes, the page lists what was found, grouped as People, Organisations, Prices quoted, Promises, Needs, Objections and Where the deal stands. Every detail shows the words it came from.
  6. Each message or mail is kept as an interaction on the person's timeline. A message that is a clear no ("not interested", "nahi chahiye") is marked so Revival leaves that deal alone.
  7. For each person found, the App records a consent receipt with the method "earlier conversation" (import_existing_conversation): purpose follow-up only, on the channel of that conversation (email for a mailbox thread with an address, WhatsApp for a chat with a phone number). It is never recorded for a person who withdrew or whose details were erased. See Consent records and the ledger.

Statuses are shown in plain words: "Needs your answer", "Waiting to start", "In progress", "Finished", "Finished with problems", "Not imported" and "Stopped".

What is read from a chat

  • Android and iPhone export lines, with /, . or - between date parts and 12 or 24 hour times.
  • Your own lines are written as "You". System lines, media placeholders and deleted messages are left out.
  • Media is never read, even inside a .zip.
  • Times are stored as written in the export, labelled UTC, because exports carry no time zone.

What is read from a mailbox

  • An .mbox file is split on its From lines. An .eml file (one mail: its headers, then the body, with no From line) is read as a mailbox of one mail. The file is recognised by its content, not its name.
  • The text is read as UTF-8 when it is valid UTF-8, otherwise as Windows-1252, the 8-bit charset older mail apps use. Encoded headers and base64 or quoted-printable bodies are decoded with the charset they name.
  • Mails are grouped into threads by their reply headers, or by the same subject within 7 days.
  • Quoted earlier mails and signatures are removed from each body.
  • Skipped: newsletters and mailing lists, automatic replies, no-reply senders, and receipts or invoices sent by machines. A person writing "Invoice for the pilot" is kept.
  • "You owe a reply" lists threads where the last mail came from someone else. It needs at least one address ticked as yours; with none ticked it lists nothing.

Limits

  • Group chats (CR-02 W3-G7, D7). A WhatsApp export where more than two people wrote is a group chat. One form asks "Which of these is you?" and "Which of these are buyers?" (at most 50 at a time). Only the ticked buyers are imported, one person each, from their own lines and yours; nobody else in the group is read. No basis to follow up is recorded from a group chat. The business's own numbers (Admin, Business details) and the workspace's name are never offered as buyers. "Import nobody and close" ends the import with nothing stored. A pasted group chat is still refused.
  • Mail threads with several senders. When more than one outside address wrote in a thread, each sender is their own person, with their own mails and yours. The business's own addresses on Business details always count as yours.
  • Duplicates: sending the byte-identical file again shows the earlier import and adds nothing. A new export of the same chat, or the .txt from inside the .zip, is a new file and is read again.
  • Languages: system lines and media placeholders are recognised in English only. Other languages are read as text.
  • Zip files with more than 10,000 entries, over 1 GB in total, zip64, or that expand far beyond their size are refused.
  • Extraction is simulated unless the site runs with AI_MODE=live and Sandbox_Mode off. The Simulated label is shown on every group of findings then. Simulated extraction uses fixed rules (senders become people, prices in rupees or dollars, promises such as "I will send" or "bhej dunga"). Live extraction with Amazon Bedrock has not been run.
  • A grievance contact must be saved in Admin, on the Workspace tab, before the first import.

Troubleshooting

What you seeWhat to do
"…over the size limit…"Export a shorter period, or export the chat "Without media".
"…does not look like the kind you chose…"Choose the other kind. A single mail (.eml) goes under Mailbox file.
"The .zip file could not be read" or the zip64 messageUpload the .txt from inside the zip instead.
"Group chats are not supported yet…" (a pasted chat)Paste a chat with one other person, or export the group chat and send the file.
"Choose which of these is you and tick at least one buyer…"Pick yourself under the first question and tick one or more buyers under the second.
"Only you wrote in this chat, so there is nobody to import."Check that you exported the right chat.
"No mail threads were left after newsletters and automatic mail were skipped."The file held only automatic mail.
"This file was imported before…"Nothing to do: the page shows the earlier import.
"Add a grievance contact in Admin, on the Workspace tab…"Open Admin, Workspace, and add the contact, then try again.
"Finished with problems"Most of the file was read. The page lists up to 20 problems under "What went wrong".
The page stays "In progress"The Worker (npm run start:worker) must be running. Press "Check again".

How to export a WhatsApp chat without media:

  • Android: open the chat, then the three dots, More, Export chat, Without media.
  • iPhone: open the chat, tap the contact name, Export Chat, Without Media.

Low-confidence details wait in the review queue.

Since CR-02

  • Times in a WhatsApp export are read in your workspace's time zone (Asia/Kolkata by default), so they show as written.
  • Saved-name chats. When the other person is a saved name with no phone or email, the result asks for one; adding it records the contact and lets the follow-up go ahead.
  • The result page refreshes itself every 3 seconds while the import runs, also without JavaScript.
  • "Paste a chat" on /imports/new: paste up to 20 kB of messages instead of exporting the whole chat. The text is read like an export (WhatsApp lines, or "Name: message" for free text) and joins the person it is from. Pasting the same text again gives the same import. A photo with a paste is not read.
  • Evidence quotes the one line a fact came from, not the whole window, and a contact named "You" cannot pose as you.