tall-mechanic-22295
07/01/2025, 8:51 AM<script>
const firstName = "John";
const lastName = "Doe";
const email = "john.doe@example.com";
window.botpress.init({
"botId": "",
"configuration": {
"website": {},
"email": {},
"phone": {},
"termsOfService": {},
"privacyPolicy": {},
"variant": "soft",
"themeMode": "light",
"fontFamily": "inter"
},
"clientId": "",
"user": {
"userData": {
"firstName": firstName,
"lastName": lastName,
"email": email
},
"data": {
"firstName": firstName,
"lastName": lastName,
"email": email
}
}
});gentle-policeman-89141
07/01/2025, 10:49 AMgentle-policeman-89141
07/01/2025, 10:52 AMif (window.botpress.initialized) {
const customPayload = {
"firstName": "firstName"
...... etc
}
await window.botpress.sendEvent(customPayload)
}gentle-policeman-89141
07/01/2025, 10:55 AMgentle-policeman-89141
07/01/2025, 10:55 AMtall-mechanic-22295
07/02/2025, 10:35 AM