ChatBotKit Node SDK
    Preparing search index...

    Event client for accessing event-related functionality.

    This client provides access to ChatBotKit's event system, including event logs that record all significant platform activities. Use the log sub-client to list, export, or subscribe to events.

    const client = new EventClient({ secret: 'your-secret' })

    // List recent events
    const events = await client.log.list({ take: 100 })

    // Export events for a specific conversation
    const exported = await client.log.export({ conversationId: 'conv_123' })

    // Subscribe to live events (Pro+ only)
    const stream = client.log.subscribe()
    for await (const event of stream) {
    console.log('Live event:', event.data.type)
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    Methods

    • Creates a new instance of the same client type with extended options.

      This is useful when you need to create a client with modified configuration (e.g., different endpoint, token, or headers) without affecting the original.

      Note: This method creates a completely new instance rather than cloning, which is necessary because private class fields cannot be copied.

      Parameters

      Returns EventClient

      A new instance of the same client class with extended options