This is a really important message about something. It could be about anything we deem important enough to tell everyone. It might have links to places, but shouldn't have any images or non-text content. Messages shouldn't be longer than two lines on normal sized layouts.
Genesys Cloud Developer CenterGenesys Cloud Developer Center
Browser storage is disabled

Your theme selection will not be remembered when you refresh the page. Please enable browser storage in the Account Switcher above to allow this setting to be remembered.

Removed from toolbox

Introduction

The following methods are actions that you invoke to instruct the embedded agent interface of Genesys Cloud Embeddable Framework to perform a task. Add actions under the window.PureCloud object in your framework.js file.

Copied
window.PureCloud = {
    addAssociation: function ({type, id, text, select, interactionId}),
    addTransferContext: function ({name, attributes}),
    clickToDial: function ({number, address, autoPlace, queueId, attributes}),
    subscribe: function ({type, callback}),
    Interaction: {
        addCustomAttributes: function ({interactionId, attributes}),
        updateState: function ({action, id}),
        Chat: {
            getTranscript: function ({interactionId, callback})
        }
    },
    User: {
        getAuthToken: function (callback),
        setView: function (type, view),
        updateStatus: function (id),
        Notification: {
            notifyUser: function ({message, type}),
            setAudioConfiguration: function ({call, callback, chat, email, outbound dialing, message, voicemail})
        }
    }
};

Genesys Cloud method

Description

Adds a new contact or relation association to interaction logs.

Allows agents to provide additional information when transferring interactions.

Automatically dials a phone number, sends an SMS message, or initiates an email.

Subscribes to client events.

Adds custom attributes to interactions and syncs these attributes to interaction logs associated with these interactions.

Updates the state of an interaction.

Returns a chat transcript.

Returns a message transcript.

Returns a Genesys Cloud authentication token for making public API requests.

Sets the embedded agent interface to a specific view when the user creates an interaction (makes a call, sends an email, or sends an SMS message).

Updates user status.

Notifies users in the embedded agent interface with a message.

Sets incoming alerting interactions to ring (true) or not ring (false) based on the interaction type.

For information about configuration and methods you can use in your framework.js file, see Configuration and methods.