Intelligent Chatbot System Design, Development, and Deployment for Client Queries: Efficient and Effective Perception and Cognition †
Abstract
1. Introduction
2. Research Design and Approach
2.1. System’s Architecture
- The User Input PhaseThe client put a query into the chatbot, such as “is the bank open today?”The chatbot processed and interpreted the raw text.
- Text processing phaseThe text was standardised by breaking it into words/tokens.The NLP spaCy library was used for named entity recognition and identified entities such as “bank”. This was to ensure that the input was standard for intent detection and embedding.
- Transformer encoder phaseThe system was able to sense the input query and conduct cognition on it by analysing the input to develop understanding. This process can be referred to as Sensors Analyses Gains Understanding (SAGU).SBERT transformed sentences into vector spaces and encoded them as dense embedding vectors that were used to conduct semantic search, clustering, and information retrieval. The significance of embeddings lies in their ability to help the chatbot comprehend intent and compare queries to vector-space knowledge base items.
- Knowledge base phaseSBERT embedding was compared to what existed in the database to find a match, and the relevant text was retrieved.
- Search engineWhen no match was found in the knowledge base, T5 generated a response. The transformer decoder is the RL policy network, as RL modifies its parameters according to the quality of the generated response.
- Output to client phaseThe client received a response that was generated/retrieved.
- The query was sent to a banking agent when the system was unable to respond, and the result was returned to the library before being delivered to the client.
- Feedback phaseThe chatbot requested feedback from the client by using thumbs up or down for the conversation. The conversation ended after feedback was provided and/or when the client left the chat loop.
- Reinforcement Learning phaseRL was used for continuous improvement to update its policy and used feedback as its reward signal to ensure that the chatbot achieves better results with time and learns which answers work best for clients.Rewards are assessed as follows:
- -
- Thumbs up is a positive reward.
- -
- Thumbs down is a negative reward.
The system-defined library’s rules: - To incorporate these new external text queries into its knowledge base, utilising SQL approaches, the chatbot backend system was able to identify words, nouns, and verbs that were not present in the knowledge base.
- To improve its clusters, the search engine was trained to add newly identified words, nouns, and verbs with a 90% matching rate to its knowledge base via matching connections.
- When the system failed to respond to a client query, it was able to pull in an agent to obtain a response; the agent’s response was then saved in a library.
2.2. Transformer Encoder and Decoder
2.3. Reinforcement Learning
2.4. Model Development
Design Phase
- The chatbot was designed as a live chat assistant for customer service and support via service-centric sensors. The chatbot was modelled for a banking service system.
- Constructing grammatical data structures.
- Formulating answers.
- AI-powered chatbot.
- Using NLP libraries and machine learning models.
- Integrating the RL model as a backup plan for the model to address unidentified/new queries.
2.5. Development Phase
- MySQL was used to create and store the database, while SQL syntax was used for queries.
- The chatbot was created using Python as the programming language.
- SpaCy was used for processing text input.
- Transformer encoder and decoder were used to retrieve a response and generate a response, respectively.
- RL was integrated for continuous improvement.
- Constant learning through feedback loops and RL techniques.
- Python libraries were used to connect the database to the coding environment.
- Python was used to develop the chatbot, and the Python terminal was used for interactions.
2.6. Deployment Phase
- The Python terminal was used for the chatbot interactions.
- Performance tracking and enhancement took place by monitoring the learning phase and documenting database modifications as audit logs.
- Frequent modifications were made to the database in accordance with user interactions and responses.
3. Results and Discussion
Scenario 1: Chatbot successfully responded to client queries and received positive feedback.Client: “Hello”Chatbot: “Hi there! How can I help?”Client: “What time do you open?Chatbot: Yes, we are open today from 9am to 4pm”Client: “Is the bank not shut?”Chatbot: “Yes, we are open today from 9am to 4pm”Chatbot: “Rate the interaction by reacting with a thumbs up or thumbs down”Client: “Thumbs up reaction”Client: “Goodbye”Chatbot: “Goodbye! Have a great day!”
Scenario 2: Chatbot failed to respond to client’s query, agent successfully responded to client’s query and the overall interaction received positive feedback.Client: “Hello”Chatbot: “Hi there! How can I help?”Client: “What time do you open?Chatbot: Yes, we are open today from 9am to 4pm”Client: “Is the branch in Hatfield open?”Chatbot: “Wait for feedback”Client: “Hatfield operating hours?”Chatbot: “You are being routed to an agent”Agent: “Reviewing your message”Agent: “Hatfield branch is open from 9am to 4pm”Agent: “Is there anything else I can help with?”Client: “No thank you”Agent: “Routed back to chatbot”
Client: “Is the branch in Hatfield open?”Chatbot: “ Yes, Hatfield branch is open from 9am to 4pm”Chatbot: “Rate the interaction by reacting with a thumbs up or thumbs down”Client: “Thumbs up reaction”
4. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Sofiyah, F.R.; Dilham, A.; Hutagalung, A.Q.; Yulinda, Y.; Lubis, A.S.; Marpaung, J.L. The chatbot artificial intelligence as the alternative customer services strategic to improve the customer relationship management in real-time responses. Int. J. Artif. Intell. Res. 2024, 6, 54–72. [Google Scholar] [CrossRef]
- Nagarajan, S. The role of interactivity in enhancing chatbot acceptance. Int. J. Hum.-Comput. Stud. 2023, 169, 102930. [Google Scholar]
- Jenneboer, W.; Van Esch, P.; Van den Bossche, A. Anthropomorphism in chatbots: Its effect on user engagement. J. Retail. Consum. Serv. 2022, 65, 102860. [Google Scholar]
- Lee, S.; Kim, J.; Park, Y. Privacy concerns in the use of AI-powered chatbots: The moderating role of trust. Telemat. Inform. 2021, 63, 101660. [Google Scholar]
- Jo, H. System quality and decision-making effectiveness in AI applications. J. Inf. Syst. 2022, 36, 55–72. [Google Scholar]
- Hsu, C.L.; Lin, J.C.C. Exploring service quality, satisfaction and loyalty in AI-enabled services. Serv. Ind. J. 2023, 43, 23–45. [Google Scholar]
- Smutny, P.; Schreiberova, P. Chatbots for learning: A review of educational chatbots. Educ. Inf. Technol. 2020, 25, 103862. [Google Scholar]
- Cahn, J. CHATBOT: Architecture, Design, & Development. Senior Thesis, University of Pennsylvania, Philadelphia, PA, USA, 2017. [Google Scholar]
- Turing, A.M. Computing Machinery and Intelligence. Mind 1950, 59, 433–460. [Google Scholar] [CrossRef]
- Wallace, R. The Elements of AIML Style; ALICE A.I. Foundation: Menlo Park, CA, USA, 2009. [Google Scholar]
- Colby, K.M. Artificial Paranoia: A Computer Simulation of Paranoid Processes. Artif. Intell. 1975, 2, 1–25. [Google Scholar] [CrossRef]
- Walker, M.A.; Litman, D.J.; Kamm, C.A.; Abella, A. PARADISE: A Framework for Evaluating Spoken Dialogue Agents. In Proceedings of the 35th Annual Meeting of the ACL, Madrid, Spain, 7–12 July 1997; pp. 271–280. [Google Scholar]
- Cho, K.; van Merriënboer, B.; Gulcehre, C.; Bahdanau, D.; Bougares, F.; Schwenk, H.; Bengio, Y. Learning Phrase Representations using RNN Encoder–Decoder for Statistical Machine Translation. arXiv 2014, arXiv:1406.1078. [Google Scholar]
- Li, J.; Monroe, W.; Shi, T.; Jean, S.; Ritter, A.; Jurafsky, D. Deep Reinforcement Learning for Dialogue Generation. arXiv 2016, arXiv:1606.01541. [Google Scholar] [CrossRef]
- Shawar, B.A.; Atwell, E. Chatbots: Are they Really Useful? LDV Forum 2007, 22, 29–49. [Google Scholar]
- Sutskever, I.; Vinyals, O.; Le, Q.V. Sequence to sequence learning with neural networks. Adv. Neural Inf. Process. Syst. 2014, 27, 3104–3112. [Google Scholar]
- Vinyals, O.; Le, Q.V. A neural conversational model. arXiv 2015, arXiv:1506.05869. [Google Scholar] [PubMed]
- Serban, I.V.; Sankar, C.; Germain, M.; Zhang, S.; Lin, Z.; Subramanian, S.; Kim, T.; Pieper, M.; Chandar, S.; Ke, N.R.; et al. A Deep Reinforcement Learning Chatbot. arXiv 2017, arXiv:1709.02349. [Google Scholar] [CrossRef]
- Sutton, R.S.; Barto, A.G. Reinforcement Learning: An Introduction; MIT Press: Cambridge, MA, USA, 1998. [Google Scholar]



Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Sebola, T.; Ayomoh, M.; Ndlovu, B. Intelligent Chatbot System Design, Development, and Deployment for Client Queries: Efficient and Effective Perception and Cognition. Eng. Proc. 2025, 118, 57. https://doi.org/10.3390/ECSA-12-26595
Sebola T, Ayomoh M, Ndlovu B. Intelligent Chatbot System Design, Development, and Deployment for Client Queries: Efficient and Effective Perception and Cognition. Engineering Proceedings. 2025; 118(1):57. https://doi.org/10.3390/ECSA-12-26595
Chicago/Turabian StyleSebola, Tlou, Michael Ayomoh, and Brain Ndlovu. 2025. "Intelligent Chatbot System Design, Development, and Deployment for Client Queries: Efficient and Effective Perception and Cognition" Engineering Proceedings 118, no. 1: 57. https://doi.org/10.3390/ECSA-12-26595
APA StyleSebola, T., Ayomoh, M., & Ndlovu, B. (2025). Intelligent Chatbot System Design, Development, and Deployment for Client Queries: Efficient and Effective Perception and Cognition. Engineering Proceedings, 118(1), 57. https://doi.org/10.3390/ECSA-12-26595

