This guide explains how to inject text to the context
After using the sendUserInfo
method (by emitting an event with window.postMessage(message, "*")
) from the BotSdk class, you can expect a response in the following format:
| Property | Description |
|----------------|------------------------------|
| userName | The user's name. |
| userEmail | The user's email. |
| customProperty | Custom property's value. |
| ... | Other additional properties. |
const sdk = new BotSdk()
sdk.event.sendUserInfo({
name:"foo",
email:"faa@fpp.com",
//** adtional info that we want to pass
company:"CLIBRAIN"
})