AI & Chatbots

Intent Detection

Intent detection is the process of classifying what a shopper wants from a message. In ecommerce, intents include browsing, comparing, checking shipping, asking about returns, and complaining. Older systems used keyword rules; modern systems use embeddings or a large language model to assign intents in real time.

How it works

A typical intent detection pipeline has three pieces. First, an inventory of intents the system supports, for example "product question," "size question," "shipping question," "order status," "return," "complaint," and "small talk." Second, a classifier that maps an incoming message to one or more of those intents. Third, a router that decides what to do based on the predicted intent: retrieve products, look up an order, escalate to a human, or stay in the conversation.

Classic systems used hand-written keyword rules. They were easy to debug but missed paraphrases and broke on misspellings. Modern systems use one of two approaches. The first is sentence embeddings: every message is turned into a vector and compared to anchor examples for each intent. The second is a large language model with a structured-output prompt that returns the intent label directly. The LLM approach handles ambiguity well and can return multiple intents per message, which matters because a single message often combines a question and a complaint.

For example, "is this still in stock and when will it ship to Bangalore" contains three intents: stock check, shipping ETA, and location-specific delivery. A good system tags all three so the reply can answer them in one turn.

Why it matters for Shopify stores

For Shopify merchants, intent detection is what turns a chatbot from a clever toy into a useful assistant. Knowing the shopper's intent lets the system choose the right tool: search the catalog, look up the order, surface a return policy, or escalate. Without it, the bot defaults to either generic answers or repeated requests for clarification.

Intent data also feeds analytics. A merchant who can see that 30% of pre-purchase questions are about shipping, 20% are about sizing, and 10% are about ingredient lists has a clear list of product page improvements to make. Shop Me, for example, surfaces top intents in its growth dashboard so merchants can use chat data to fix the rest of the storefront.

Examples

  • A shopper writes "ugh, late again" and the system tags it as a complaint with negative sentiment, escalating to a human.
  • A shopper writes "do you have this in blue, size M, that ships by Friday" and the system tags three intents: variant question, sizing, and shipping ETA.
  • A shopper writes "thanks" and the system tags it as small talk so the bot does not call expensive product search.

Related terms

AI Agent vs Chatbot

An AI agent is software that plans and takes actions to achieve a goal, often using tools and memory. A chatbot is software that holds a conversation, usually by following scripted rules. Every AI agent contains a chat layer, but most chatbots are not agents because they cannot act on the world.

AI Shopping Assistant

An AI shopping assistant is a software agent that helps online shoppers find products, compare options, and complete purchases through natural conversation. It uses a large language model grounded in a store's catalog and policies to answer questions, recommend items, and guide buyers from intent to checkout.

AI Customer Service

AI customer service is the use of large language models and automation to answer customer questions, resolve issues, and route complex cases to humans. It covers pre-sale questions, order status, returns, and warranty claims, and it usually runs alongside a help desk so agents can step in when needed.

Conversational Commerce

Conversational commerce is the practice of selling and supporting customers through natural-language interfaces such as chat, messaging apps, and voice. It blends retail with two-way conversation, so a shopper can ask a question, get a recommendation, and complete a purchase inside the same thread.

Multilingual Chatbot

A multilingual chatbot is a conversational system that can read and write in multiple languages, ideally without a separate model per language. It usually relies on a large language model that handles language detection, translation, and reply generation in one pass, with the merchant's catalog and policies as the grounding layer.

See it in action

Watch how Shop Me uses AI shopping assistance and conversation insights on a live Shopify-style store.

See Live Demo

FAQ

How many intents should a Shopify store track?

Start with five to ten well-defined intents that cover most of your traffic, such as product question, sizing, shipping, order status, return, complaint, and pricing. Adding intents beyond what your routing actually uses creates noise. Expand the inventory only when a new intent shows up frequently in unhandled messages.

Is intent detection enough on its own to power a chatbot?

No. Intent detection tells the system what kind of question it is. You still need entity extraction (which product, which order, which size), retrieval (the actual data), and generation (the reply). Intent is the routing layer; the answer needs the rest of the stack.

How do I improve intent detection accuracy over time?

Log every misclassification a human corrects and feed it back into the classifier as a labelled example. Most platforms let you add anchor examples per intent without retraining. Within a few weeks of real conversations, accuracy on your specific store's language improves noticeably. Keep an eye on rare intents that are easy to confuse with common ones.