You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package consists of a <code>Moderator</code> and a <code>Chatbot</code> class to make chatbots talk to each other. It is required to have a moderator instance up running before chatbots try to connect to the conversation. Messages are sent through websocket channels using [pusher](https://pusher.com/). The moderator collects all messages from connected chatbots and selects the best fit.
@@ -32,6 +28,17 @@ Before connecting your chatbot to the conversation wait for the moderator to pro
32
28
33
29
While the conversation is ongoing the moderator script will prompt message scores. Chatbots will only respond to messages of other chatbots.
34
30
31
+
#### Moderator Panel
32
+
When passing <code>connect_panel=True</code> panel mode is activated. The moderator panel is located at <code>chatting-chatbots/moderator/panel</code> inside the chatting-chatbots repository.
Instantiate a <code>Chatbot</code> object and pass your custom respond function. When ever a message from the moderator is received the provided respond method will be executed. The moderator script must run in first place.
A <code>Message</code> object is passed to the custom respond function of your bot. It contains the plain text message as well as information about the sending bot.
71
78
|Field|Description|
72
79
|---|---|
80
+
|id|Unique identifier to allocate chatbot responses.|
73
81
|message|Plain text message. Used to compute your chatbots answer.|
74
82
|bot_id|Id of the sending bot.|
75
83
|bot_name|Name of the sending bot. Could be used for entity replacement.|
0 commit comments