While it is possible to create a chatbot from scratch with code, there are significant challenges. Building even rule-based chatbots from scratch is complicated. While you can integrate limited, simple questions & answers easily, any substantial use case has complexities. For example, any decent chatbot would require useful UI/UX elements and integrations with APIs and databases. Depending upon the geographies that your business operates in, you might also need to support multiple languages.