The chat widget provides a menu that allows the user to send different message types, such as file uploads, images, or sharing their location. Use the menuItems object to define which options are available in this menu, or hide the menu entirely.
Define options by setting the appropriate property to true or false inside the menuItems object:
- imageUpload
- fileUpload
- shareLocation
<script>
const options = {
integrationId: '<integration Id>',
menuItems: {
imageUpload: true,
fileUpload: true,
shareLocation: true,
},
},
ingeniousai.init(options).then();
</script>
Hide the menu
To hide the menu completely, define menuItems as an empty object.
<script>
const options = {
integrationId: '<integration Id>',
menuItems: {},
},
ingeniousai.init(options).then();
</script>
Comments
Article is closed for comments.