NLP customer service chatbots have become a critical technology that allows e-commerce stores to offer automated 24/7 support, reduce operational costs and increase customer satisfaction. Chatbots based on Natural Language Processing (NLP) understand the text a user types, identify the correct intent and generate the appropriate response. In this guide we cover, step by step, how to build an NLP chatbot from scratch, which platform to choose and the e-commerce-specific use cases.
What Is NLP and How Does It Relate to Chatbots?
Natural Language Processing (NLP) is the branch of artificial intelligence concerned with a computer's capacity to understand, interpret and generate human language. In the chatbot context, NLP analyses the user's message to perform intent recognition and entity extraction. For example, for the message 'Where is my order?', the NLP engine detects the 'order_enquiry' intent and, if present, the order number or date information (entity). This is how the chatbot knows which workflow to trigger.
- Tokenization: The process of splitting text into words or sub-word units (tokens); it is the first step in the NLP pipeline.
- Intent Recognition: The process of matching the user's message to one of the predefined intent categories.
- Entity Extraction: Extracts structured information such as order numbers, product names, dates and locations from the text.
- Sentiment Analysis: Determines the user's emotional tone (positive, negative, neutral) and guides the chatbot's response strategy.
Choosing a Chatbot Platform
Choosing the right platform is critical to the success of the project. Each platform has different strengths and weaknesses; you need to evaluate them against your own requirements.
Dialogflow CX (Google)
Google's enterprise chatbot platform, Dialogflow CX, makes complex conversation scenarios easy to manage thanks to its visual flow designer and powerful NLP engine. Its integration with Google Cloud, and connectivity with BigQuery and Analytics, is a real advantage. After 600 hours of free usage per month, usage-based pricing applies. Webhook support is available for integration with Shopify, WooCommerce and custom APIs.
Rasa (Open Source)
Rasa is an open-source NLP chatbot framework that you can host on your own servers. It is the ideal option for stores with data privacy concerns or developers who want full customisation. The Rasa NLU component uses the DIET (Dual Intent and Entity Transformer) architecture for intent classification and entity extraction. Basic Python knowledge is required for setup.
Botpress
With its visual flow editor and built-in NLU engine, Botpress is a platform suited to both technical and non-technical teams. The open-source edition is free, while the cloud edition is subscription-based. It offers ready-made templates for e-commerce integrations and is a good starting point, particularly for mid-sized stores in the Turkish market.
Defining E-Commerce-Specific Intents
Unlike general-purpose chatbots, an e-commerce chatbot requires an industry-specific set of intents. The core e-commerce intents are as follows:
- Order Enquiry: Messages such as 'When will my order arrive?' and 'Where is my parcel?' are routed to this intent; it works with the order management system via the order ID entity.
- Return and Cancellation Requests: Phrases such as 'I want to return the product' and 'Cancel my order' are detected and the returns workflow is started.
- Product Information: Questions about stock availability, size guides and product features are answered through integration with the product catalogue.
- Shipping and Delivery: Requests for information such as delivery times, shipping costs and delivery areas are handled.
- Pricing and Promotions: Queries about discount code validity, active campaigns and price information are managed.
Preparing Training Data
The quality of the NLP model depends directly on the quality of the training data. At least 15 to 20 different example sentences should be prepared for each intent, with enough variety to express the same intent through different word choices and sentence structures. A point that requires particular attention for Turkish: because Turkish is an agglutinative language, inflected variations such as 'siparişim', 'siparişimde' and 'sipariş numarama' must be included in the training set. If you have a real customer support history, that data is worth its weight in gold; you can anonymise it and use it as training data.
Shopify and WooCommerce Integration
For Shopify integration, the Shopify Admin API is used to provide real-time access to order status, customer information and product stock queries. For Dialogflow, the webhook URL is added to the Shopify app settings; whenever an order enquiry intent is triggered, the webhook sends a request to the Shopify API and relays the response to the user. For WooCommerce, the same process runs through the WooCommerce REST API. OAuth 2.0 authentication and secure API key management are mandatory for both platforms.
Performance Metrics and Live Agent Handover
Track the following metrics to measure chatbot performance: intent recognition accuracy (target: above 85%), containment rate (the proportion of conversations resolved without handover to a human; target above 70%), customer satisfaction score (CSAT) and average resolution time. For live agent handover, an automatic transfer should be triggered when the user says something like 'I want to talk to a human' or when the bot misunderstands several times in a row. Zendesk, Intercom and Freshdesk support this handover mechanism natively.
Frequently Asked Questions
Which platform works better for Turkish NLP?
Dialogflow CX is one of the most mature platforms in terms of Turkish language support. Google's large language models handle the agglutinative structure of Turkish quite well. Rasa also delivers good results for Turkish, but preparing the right training data is more critical. We recommend testing both platforms with a small prototype.
How long does it take to set up a chatbot?
A basic e-commerce chatbot (order enquiry, returns and product information intents) can be set up and tested with Dialogflow CX in an average of 2 to 4 weeks. A customised Rasa setup may take longer. Including integrations and a thorough testing phase, a 6 to 12 week process should be planned for the move to production.
Who will train the chatbot?
Visual platforms such as Dialogflow and Botpress allow non-technical team members to carry out intent training too. Experts from the product and customer service teams, working together with the technical team, can prepare the most accurate training data. Rasa requires a developer with Python experience.
How does the chatbot protect customer data?
For KVKK and GDPR compliance, chatbot conversation data must be stored on servers within Turkey or the EU. For Dialogflow, Frankfurt (Europe) can be selected as the Google Cloud region. Hosting Rasa on your own servers is the safest option in terms of data sovereignty. Anonymisation of conversation logs and retention period policies should be defined from the outset.
Conclusion
NLP customer service chatbots have a transformative effect on e-commerce operations in terms of both cost efficiency and customer experience. A chatbot built on the right platform choice, quality training data and seamless e-commerce integration pays for itself in a short time. Contact Toserof Tech. for AI and e-commerce solutions.


