public interface BotService
ActionRepositoryService
to deploy your action definitions based on this bot to make them available at runtime.
Whenever such an action is executed, an ActionInstance
is created ant this bot is invoked accordingly.Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns the optional description of this bot, describing its capabilities or prerequisites.
|
String |
getKey()
Returns the key of this bot which is used to link
ActionDefinition s to this bot. |
String |
getName()
Returns the name of this bot, typically used as the label for it.
|
BotActionResult |
invokeBot(HistoricActionInstance actionInstance,
ActionDefinition actionDefinition,
Map<String,Object> payload)
Whenever an action definition is triggered, an action instance is created and this method is invoked in order to execute the action.
|
String getKey()
ActionDefinition
s to this bot.String getName()
String getDescription()
BotActionResult invokeBot(HistoricActionInstance actionInstance, ActionDefinition actionDefinition, Map<String,Object> payload)
actionInstance
- the action instance to runactionDefinition
- the action definition where the action instance is based onpayload
- the optional payload containing the necessary information to run the action