Unblu Agent Embedded JS API
    Preparing search index...

    Type Alias NewConversationInterceptor

    NewConversationInterceptor: (
        options: StartConversationOptions,
    ) => Promise<StartConversationOptions>

    Interceptor function called every time a new conversation is started from the UI or Agent Embedded JS API.

    Starting the conversation is deferred until the Promise returned by this interceptor resolves. If the interceptor rejects the Promise, starting the conversation is canceled. If the resolved value is not StartConversationOptions, the value passed into the UnbluAgentEmbeddedApi.startConversation method is used.

    Any values of StartConversationOptions that are undefined are replaced by the corresponding values passed to UnbluAgentEmbeddedApi#startConversation. Any values of StartConversationOptions that are null discard the corresponding values passed to UnbluAgentEmbeddedApi#startConversation.

    Type Declaration