Skip to content

Overview

Prismeai now allows you to interact and display the dialogbox on demand

In window scope, a prismeai namespace is now available. It publish a function action:

Toggle dialogbox

prismeai.action({ type: 'toggle', value: true })

will open the dialogbox

prismeai.action({ type: 'toggle', value: false })

will close the dialogbox

Push text in dialogbox

prismeai.action({ type: 'text', value: 'Some text message' })

will send 'Some text message' in chatbox like if user have typed himself.

Push event in dialogbox

prismeai.action({ type: 'event', value: {
    text: 'Some text message',
    event: 'Event name
  }
})
will send an event to the chatbox.