Installation
Settings reference
Only id is required. Everything else is optional, and leaving a setting out applies the default.
All settings
| Package | Snippet | Type | Default and meaning |
|---|---|---|---|
id | data-id | string, required | Your widget ID, sent in your email. The only required setting. |
position | data-position | string | Default bottom-right. The only other accepted value is bottom-left. |
welcomeMessage | data-welcome | string | The first message shown when the chat opens. Any language. Example: “Hello! How can I help you today?” |
tooltipMessages | data-tooltips | string[], a list | Short prompts that appear beside the launcher in turn, inviting a click. Pass a list, not a single sentence. In the snippet the list is written as JSON. |
defaultOpen | data-default-open | boolean | Default false. Set it to true to open the conversation automatically, which suits a bookings or contact page. |
Every setting at once
HTML
<script
src="https://chatbot.menni.ai/loader.js"
data-id="YOUR_WIDGET_ID"
data-position="bottom-right"
data-welcome="Hello! How can I help you today?"
data-tooltips='["Hi, how may I help you?","Ask me about bookings"]'
data-default-open="false"
async>
</script>Note the single quotes around data-tooltips in the snippet. They allow the double quotes inside the list.
