A system and method are presented for configuring topic-specific chatbots. Clustering interaction transcripts between customers and agents of a contact center is performed to generated a plurality of interaction clusters. The clusters corresponding a topic. Topic-specific dialogue trees are extracted for each cluster. The trees comprise nodes connected by edges. The topic-specific dialogue tree is modified to generate a deterministic dialogue tree. The deterministic dialogue tree is used to configure a topic-specific chatbot to generate and automatically respond to messages regarding the topic.