Skip to main content
The PluginImplementation class (exported as Plugin) implements the runtime behavior of a plugin, including action handlers and event/message handlers.

Constructor

PluginImplementationProps

object
required
Action handler implementations.

Handler Registration

Plugins can register handlers for messages, events, and hooks:

Handler Props

Plugin handlers receive special props:
object
Plugin configuration values (typed).
object
Interface client proxies.
object
Integration client proxies.
string
Plugin alias in the bot.
StateProxy
Type-safe state access.
ActionProxy
Type-safe action calls.
EventProxy
Type-safe event creation.
WorkflowProxy
Workflow management.
UserFinder
User operations.
ConversationFinder
Conversation operations.
MessageProxy
Message operations.

Complete Example

index.ts

See Also