@Deba2512 Hello! My name is Amit Patel and I am one of people responsible for the engineering of the Digital Messaging product. We saw your post here and the follow on tutorial using the Pega App Factory. We love to see this sort of innovation and the willingness to share with the Pega community.
For anyone else that would look to follow these tutorial and implement the Chatbot in this manner, I just want to issue a word of caution. The Chatbot preview pane is not meant to be used outside of the channel authoring harness. It is meant to help you verify your flows and responses are working as expected. It’s also helpful to update your NLP configuration and train your machine learned models.
Given all this, it’s very much possible that Pega might make changes to this section or underlying infrastructure without notice, which may break any implementations that have been built on top of this. Instead of this, we would highly suggest looking into using the OOTB Web Messaging functionality. This will ensure that your applications and deployments are supported into the future.