Skip to main content
The IntegrationContext provides runtime information and configuration to all integration handlers.

Context Structure

Properties

string
ID of the bot using this integration.
string
ID of the bot’s user account.
string
Unique ID of this integration instance.
string
Alias assigned when adding the integration to the bot.
string
Unique webhook ID for receiving external events.
string
Current operation being executed:
  • 'webhook' - Webhook handler
  • 'action_triggered' - Action execution
  • 'register' - Integration registration
  • 'unregister' - Integration removal
  • 'create_user' - User creation
  • 'create_conversation' - Conversation creation
object
Integration configuration values matching your schema. Fully typed based on your IntegrationDefinition.
string | null
For integrations with multiple configurations, indicates which one is active. null if using the primary configuration.

Usage Examples

Accessing Configuration

Multiple Configurations

Bot-Specific Logic

Webhook URL

Type Safety

Context configuration is fully typed based on your definition:

See Also