From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 13:50, 16 September 2022 by Katherine (talk | contribs) (Created page with "<translate> =switchActiveInteraction= Change the active interaction by ID. ==Request== ''Syntax'' {| class="wikitable" |switchActiveInteraction(interactionId: string): Prom...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
• 5.19

<translate>

switchActiveInteraction

Change the active interaction by ID.

Request

Syntax

switchActiveInteraction(interactionId: string): Promise<OperationResult<null>>

Parameters

Parameter Parameter Values Data Type Optional/Required Description
interactionId String Required The ID of the interaction you want to set as active

Example Request

    switchActiveInteractionButton.onclick = () => {

        const itemId = activeInteractionIdInput.value

        adApi.switchActiveInteraction(itemId)

    }

Return Value

null



</translate>

< Previous | Next >