IntegrationDefinition class defines the structure and capabilities of a Botpress integration. It specifies how the integration connects to external platforms, what channels and actions it provides, and what events it can emit.
Constructor
IntegrationDefinitionProps
string
required
Unique identifier for the integration.
string
required
Semantic version of the integration.
string
Human-readable title.
string
Brief description of the integration.
string
Path to icon file (SVG recommended).
string
Path to readme/documentation file.
ConfigurationDefinition
Primary configuration schema.
object
Multiple configuration types for different authentication methods.
object
Channel definitions for message-based communication.
object
Action definitions that bots can call.
object
Event definitions the integration can emit.
object
State definitions for integration, conversation, or user state.
UserDefinition
User-level configuration and tags.
object
Secret definitions for sensitive configuration.
object
Entity definitions for structured data.
object
Custom metadata attributes.
Type Definitions
ConfigurationDefinition
ChannelDefinition
MessageDefinition
ActionDefinition
EventDefinition
StateDefinition
EntityDefinition
Methods
extend
Extend an interface with custom entity mappings and overrides.Properties
object
Integration metadata including SDK version.
Complete Example
integration.definition.ts
See Also
- IntegrationImplementation - Implement integration handlers
- IntegrationSpecificClient - Type-safe API client
- IntegrationContext - Runtime context API