Connecting a Chinese WhatsApp Bot to Your ERP: What Data to Push

An erp integration for a whatsapp business bot works by pushing a narrow, defined set of records into the conversation layer: enough identifiers and status facts for the bot to answer and route, without exposing internal finance, cost, or staff data to the chat. The walkthrough below moves through the data map in five stages: identifiers, status events, the records the bot must not pull, sync cadence and rate limiting, and the access and records the buyer keeps at handover. The goal is a bot that reads the ERP accurately without becoming a second copy of the internal system.

Stage one: order and customer identifiers the bot needs

The first data layer matches a thread to a real record. The bot needs the customer’s contact identifier as stored in the ERP, the order or ticket reference, and the name or account label the business uses in normal correspondence. These let the bot confirm which order a question refers to and pull the right record without asking the customer to repeat an internal code. The identifier mapping should be one-directional and verifiable: the contact number links to the record through a documented key, not a loose match on a name fragment.

Customer details pushed to the bot stay limited to what the conversation requires: name, contact number, shipping address where the delivery thread needs it, and the order history reference the support thread may surface. Internal account fields — credit limit, cost margin, sales owner notes, pricing negotiations, internal flags — do not enter the bot’s context. The wholesale inquiry flow uses the same identifier discipline when matching a business account to its catalog context, as outlined in the wholesale catalog and quote flows guide.

Duplicate and multi-record handling belongs to the identifier design. A contact who has placed several orders opens the thread to a record selection step, so the bot does not attach the question to the oldest or most recent order by default. If two ERP records share a contact number, the mapping flags the ambiguity for the agent rather than merging them automatically. Test records and internal demo orders are excluded from the live bot feed, so a customer thread never pulls a sample order created during setup. These matching rules are written into the integration specification, because loose matching produces wrong status answers that look like bot errors but trace back to the identifier layer.

Stage two: status events the bot may read and message on

The second layer is order and ticket status. The bot reads the events the customer legitimately needs: order placed, payment recorded, prepared for shipment, dispatched, in transit, delivered, canceled, or refunded where the business communicates that stage. Each event maps to an approved template or a session reply, and the message waits for the event rather than a fixed clock. Status details pulled into the thread match what the ERP record shows, including any delay or exception note the business normally communicates to the customer.

Product and catalog fields ride this layer where relevant: item name, variant, quantity, published price tier, and delivery window. The bot reads these at inquiry time so stale cached values do not reach the customer. The delivery-update timing discipline — messaging only when a real status exists, correcting stalled shipments, and avoiding repeated identical notices — is set out in the delivery update timing article, and the ERP event feed is the source that makes that timing possible. Store-connected integrations face the same field and limit questions, covered in the connected store cost and limits guide.

Exception states need explicit handling in the event map. A canceled order, a refund in progress, a returned parcel, or a backordered item each carry a different customer message, and the ERP status must map to the right approved template rather than falling back to a generic “your order is being processed.” The event map also notes states the business does not communicate automatically, such as internal review holds, so the bot does not surface a raw internal status to the customer. Where the ERP lacks a status the bot expects, the missing field holds the message and routes the thread to an agent instead of sending a placeholder.

Stage three: data the bot should not pull or expose

Several ERP fields are deliberately kept out of the chat layer. Internal cost and margin, supplier purchase prices, discount history behind the scenes, commission or sales-target notes, staff assignments, and internal review comments stay in the ERP. The bot cannot answer questions about what the business paid, which employee handles the account, or internal credit decisions; those route to an authorized human. Sensitive personal data beyond the shipping need is not pushed to the bot’s database, and payment card details never enter the messaging thread.

Access scope reflects this boundary. The bot’s integration account reads the limited fields listed in the data map, with write access restricted to what the flow requires — for example, appending a thread reference to the order record — rather than full ERP administrator rights. Any field the buyer marks internal is excluded from the sync by configuration, and the handover document lists the exact fields each direction uses. This protects the business if the bot layer is ever compromised: the exposed surface stays the published customer-facing record, not the full ERP.

Data minimization also sets how long the bot keeps what it pulled. The thread summary the agent needs can live in the bot’s record; the full ERP copy does not need to be duplicated into the bot’s database. Retention follows the buyer’s policy, with deletion documented for records that age out or for a customer who requests removal. A common integration mistake mirrors the entire ERP customer table into the bot panel “for convenience,” which enlarges the data footprint, complicates deletion, and puts internal records at risk whenever the panel access changes. The data map should state which fields are cached in the bot and which are read on demand from the ERP.

Stage four: sync cadence, rate limiting, and failure handling

Rate limiting in an ERP integration covers two directions. Outbound message sends pace per number and per contact, following the channel’s quality rules. Inbound ERP reads follow the ERP’s own capacity: the bot does not poll every record on every message, it reads the record referenced by the thread, and event-driven updates replace repeated full-list syncs. The integration batches reads where the ERP limits requests, and back off when the source returns errors rather than retrying on a tight loop.

Sync cadence is defined per event type. Order status events ride webhooks or near-real-time feeds where available; catalog and price refreshes run on a scheduled interval the business accepts; cached values carry a known freshness marker the bot can check. Failure handling records a missed sync, alerts the operator, and keeps the bot from answering on stale data when the feed is down: the message says the record could not be checked and opens a ticket, rather than guessing from an old copy. The dashboard shows sync health alongside message counts, so a broken feed is visible before customers receive outdated statuses.

Cross-border data path between the ERP region and the bot hosting

When the ERP and the bot run in different regions, the integration’s data path should be mapped in writing: which records travel from the ERP to the bot’s hosting region, what the bot stores, and how records return or sync back. A Chinese vendor commonly hosts the bot process in its own region; the buyer decides whether customer records may follow there, or whether the bot should read on demand from an ERP instance in the buyer’s region with minimal caching. Either posture is workable; the risk is leaving the path undefined, so records move across borders without a stated retention or deletion rule.

The connector itself should live in the buyer’s cloud or ERP account where possible, with the vendor operating it remotely under scoped access, rather than holding the integration credentials on the vendor’s own server. Cross-border invoice and tax records stay in the accounting system; the bot references them, it does not hold copies for its own reporting. If a market served by the bot imposes data rules the buyer must meet, the field list and hosting region are checked against those obligations before the connector goes live, not after the first customer record has synced.

Stage five: records, access, and handoff ownership

The ERP connection runs under the buyer’s own ERP account, with the vendor granted scoped integration access that can be revoked. API keys and connectors are stored in the buyer’s secrets store, not embedded in vendor-owned code. The data map, field list, sync schedule, and failure rules are documented in the delivery package, and conversation records stored by the bot follow the hosting region and retention rules named in the contract. At exit, the connector is removed, the bot’s cached records export or delete per the agreement, and the ERP retains the source data unaffected by the vendor change.

Acceptance for the integration runs against test records: a matched order thread pulls the correct reference and status, an internal field never appears in the bot context, a missed feed fails safe to a ticket, and a write-back appends only the permitted thread reference. The buyer should test the permission scope from the integration account itself, confirming the excluded fields are unreachable rather than merely omitted from the bot’s replies. With the data map, the access scope, and the sync rules fixed in writing, the ERP-connected bot answers from real records while keeping the internal system behind the boundary it should never cross.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *