Custom menu items

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>
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.