Implementation: designing and implementing a sales assistant (chatbot) powered by OpenAI APIImplementation
We have developed a sales assistant chatbot based on OpenAI API version 4 and introduced it on the main page of the client’s website. This chatbot allows users to receive accurate information about the client’s expertise, industries and technologies they work with, services they provide, etc.
On the backend side, we have developed a corporate knowledge base (based on vector database) that contains information from the website and internal documentation. This documentation is hosted in the AWS corporate account. Therefore, each time a user submits a question to the sales assistant, the system receives the user's question and the context from the corporate knowledge base. Next, the LlamaIndex library indexes the text files from the knowledge base and selects only the ones that are relevant to the question. Finally, OpenAI and Langchain processes the indexed context and sends a short and concise answer to the chatbot.
We utilized embedding models in the LlamaIndex library to quickly and efficiently process the files in the knowledge base, index them, and select the details relevant to the question.
To make the solution as cost-effective as possible, we have set up limits on the amount of inquiries users can make per day. We have also ensured high levels of data protection by implementing firewalls to detect and block malicious bots from using the chat.
Finally, we have created and implemented an effective UI/UX design for the sales assistant to provide a smooth experience for potential clients. To make the conversation more natural and engaging, the solution responds word-by-word in real time.