chatterbot

3 Types Of ChatterBot’s Preprocessors

ChatterBot’s preprocessors are simple functions that modify the input statement that a chat bot receives before the statement gets processed by the logic adaper. Here is an example of how to set preprocessors. The preprocessors parameter should be a list of strings of the import paths to your preprocessors. Preprocessor functions ChatterBot comes with several built-in preprocessors. Remove any …

3 Types Of ChatterBot’s Preprocessors Read More »

ChatterBot Output Adapters

Creating a new output adapter You can write your own output adapters by creating a new class that inherits from chatterbot.output.OutputAdapter and overrides the necessary methods established in the OutputAdapter class. To create your own output adapter you must override the process_response method to return a Statement object. Note that you may need to extend the __init__ method of your custom output adapter if you …

ChatterBot Output Adapters Read More »

The ChatBot Class

The main class ChatBot is a connecting point between each of ChatterBot’s adapters. In this class, an input statement is returned from the input adapter, processed and stored by the logic adapterand storage adapter, and then passed to the output adapter to be returned to the user. A conversational dialog chat bot. Parameters: name (str) – A name is the only required …

The ChatBot Class Read More »

ChatterBot Conversations

ChatterBot supports the ability to have multiple concurrent conversations. A conversations is where the chat bot interacts with a person, and supporting multiple concurrent conversations means that the chat bot can have multiple different conversations with different people at the same time. Conversation scope If two ChatBot instances are created, each will have conversations separate from each …

ChatterBot Conversations Read More »