agent.df1ToDf2Bridge.enabled
. 'MESSAGESENT'
will be delivered to your bot through the datafeed:messageId
, timestamp
, (event) type
, initiator
, as well as the contents of the message itself inside of the payload object. Additionally, you can find the streamID
corresponding to the message and also information regarding externalRecipients
.affectedUsers
attribute represents the owners of the room.DatafeedEventService
class that handles all of the logic for creating/reading datafeeds via the API, has best practices for maintaining datafeeds, and also provides event handling architecture that makes it easy to orchestrate complex workflows and introduce custom business logic to your bot.EventHandler
classes, passing in a given event type as the type parameter for that class.DatafeedEventService
creates/reads from the datafeed API, it categorizes each event based on its event type seen above, and dispatches the event downstream to a generic event handler class. For example, If a user sends a message to bot inside a chatroom, the event will be read by the datafeed, and dispatched downstream to the EventHandler
class that that takes MessageEvent
in as a type parameter. Further the handle()
method belonging to your EventHandler
class will be called each type that event type is read by the datafeed.onMessageSent()
is where you implement your own business logic such as accessing a database, connecting to an external API, or reply back to your user by leveraging the Symphony API/SDK methods:DatafeedEventService
class that handles all of the logic for creating/reading datafeeds via the API, has best practices for maintaining datafeeds, and also provides event handling architecture that makes it easy to orchestrate complex workflows and introduce custom business logic to your bot.DatafeedEventService
event service does all of the heavy lifting and acts as the backbone of your bot or workflow.DatafeedEventService
creates/reads from the datafeed API, it categorizes each event based on its event type seen above, and dispatches the event downstream to their appropriate event handler function. For example, if a user sends a message to a bot inside a chatroom, the event will be read by the datafeed, and dispatched to the onRoomMessage()
function inside the RoomListener
Interface.onRoomMessage()
is where you implement your own business logic such as accessing a database, connecting to an external API, or reply back to your user by leveraging the Symphony API/SDK methods: