CIA Chat Scripts

This is a guide for adding CIA scripts to your website.

Script

The script itself should be in the form:

<script src="https://cdn.callitautomotive.com/Talkative/Example_Company.js"></script>

The script can be added directly to the HTML or via a tag management system.

Interaction API

To start an interaction (e.g. web chat session) from an existing website element, you can use the Talkative Engage API. This allows you to create triggers and logic and embed them within your website, as opposed to initiating Talkative functionality within the default Talkative UI.

The TalkativeApiClass provides basic information about the interaction, QOS and feature initiation methods.

Class Methods

readyCallback

TalkativeEngageApi.readyCallback() Customer specified callback which is called once all checks have been performed and the software is ready to begin. Returns Object which contains qos information.

isActive

TalkativeEngageApi.isActive() Returns true or false based on whether there is an active interaction.

startChat

TalkativeEngageApi.startChat() This method allows you to start a chat session.

startCobrowse

TalkativeEngageApi.startCobrowse() This method allows you to start a cobrowsing session.

startEmail

TalkativeEngageApi.startEmail() This method will open the email form.

startVoice

TalkativeEngageApi.startVoice() This method allows you to start a web call session.

Examples

Below is a real life example of how the the Talkative functionality can be embedded into existing website elements:

    <button onclick="TalkativeEngageApi.startVoice()">Call us now!</button>
    <button onclick="TalkativeEngageApi.startChat()">Start a chat with an expert!</button>

readyCallback can be setup by declaring the function above the Talkative Engage Tag. For example:

    window.TalkativeEngageApi = {
        readyCallback: function (results) {
            console.log('We are ready to begin!', results.qos);
        }
    }

Tracking

Talkative can be tracked within Google Analytics (GA). If your GA scripts are added directly into the HTML of the page, you don't need to do anything. If your GA scripts are added via Google Tag Manager (GTM), you will need to follow this guide to create a trigger within GTM: https://support.talkative.uk/technical/google-analytics-event-integration

Last updated on 10th Dec 2018