<script type="module">
const senseConfiguration = {
accessToken: "ACCESS_TOKEN_HERE",
disableProducts: [], // calls, communication
contact: {
jotter: "2 adults, Costa Del Sol, CWL or BRS, 7 nights, all inclusive", // Overrides Jotter default value.
details: {
// unique_id, ip_address, name, email_address, phone_number, date_of_birth, location, biography, tags (vip,example_tax)
name: "",
email_address: "",
phone_number: "",
location: ""
},
preferences: {
vip: true
}
},
classes: {
hidden: 'hidden',
assist: {
output: {
ul: 'list-group sx-fs-16 mb-2',
li: 'list-group-item sx-lh'
},
rating: {
like: 'btn btn-default',
dislike: 'btn btn-default'
}
},
contact: {
tags: {
"default": 'badge badge-outline badge-light',
"Vip": 'badge badge-outline badge-gold'
}
},
actions: {
div: 'col',
buttons: {
default: 'btn btn-primary btn-block mb-2',
send_email: 'btn btn-primary btn-block mb-2',
send_meeting: 'btn btn-primary btn-block mb-2',
send_sms: 'btn btn-light btn-block',
send_whatsapp: 'btn btn-light btn-block',
}
},
jotter: {
buttons: {
default: 'btn btn-primary mr-2',
narrow_down: 'btn btn-primary mr-2',
recommend: 'btn btn-primary'
}
},
products: {
calls: {
score: {
circle_color: "avatar-",
circle_span: "initial-wrap"
},
summary: {
button: "btn btn-primary btn-sm btn-block"
},
tasks: {
li_header: "list-group-item sx-lh sx-text-dark",
li_task: "list-group-item d-flex justify-content-between align-items-center",
li_footer: "list-group-item sx-lh sx-text-dark",
li_button: "btn btn-primary btn-sm btn-block"
},
feedback: {
li_header: "list-group-item sx-lh sx-text-dark",
li_good: "list-group-item sx-lh list-group-item-success",
li_bad: "list-group-item sx-lh list-group-item-danger",
li_improve: "list-group-item sx-lh list-group-item-warning"
}
}
}
},
lang: {
assist: {
mistakes: "*Sense Assist can make mistakes. Always check important info."
},
actions: {
buttons: {
email: 'Send Email',
meeting: 'Send Meeting',
sms: 'Send SMS',
whatsapp: 'Send WhatsApp',
}
},
jotter: {
buttons: {
narrow_down: 'Narrow Down',
recommend: 'Recommend'
}
},
products: {
calls: {
summary: {
title: "Call Summary",
button: "Add to Notes"
},
score: {
description: "Your last call was rated [X]"
},
tasks: {
title: "Call Tasks",
button: "Add To Tasks",
},
feedback: {
title: "Call Feedback"
}
}
}
}
};
// Importing from a remote URL
import('https://api.sense-ai.co.uk/js/assist/core.js').then(module => {
// Run the load function from the core.js with the configuration
module.senseAssist.load(senseConfiguration);
}).catch(error => console.error('Error loading the module:', error));
</script>