Shopify
Shopify logoShopify · Feature trail

Message Classification Model for Shopify Inbox

1 post · Dec 2021 – Jul 2022

What this trail covers

Shopify has developed and enhanced its AI-powered message classification model for Shopify Inbox. Initial efforts focused on building a prototype using a data-centric approach and a pre-trained Universal Sentence Encoder model to understand buyer intent. This led to the identification of key areas like order status requests. Subsequent development involved creating a more robust taxonomy with over 40 topics, refining annotation processes, and fine-tuning a DistilBERT model for improved accuracy. This post details the development of a real-time buyer signal data pipeline using Apache Kafka and Apache Beam to surface relevant customer context—including active cart activities and order completion information—to merchants while they're chatting with their customers. The pipeline leverages Monorail and Change Data Capture (CDC) for data ingestion, Apache Beam for stream processing with windowing, timers, and stateful processing, and Google Cloud Dataflow for deployment. The system filters events and aggregates customer activities to provide real-time, high-intent buyer signals to merchants in Shopify Inbox, aiming to optimize sales opportunities and prioritize conversations.

All Shopify trails