Documentation

  1. Code integration
  2. Placement in <div> container

To appear on your site, the sommelier.bot needs the integration of a few lines of code (JavaScript).

The code should appear at the end of any web page, right before </body>

For WordPress users: Depending on your WordPress version, you can either include the JavaScript via the editor, by switching from “visual” to “text” mode, and then inserting the code at the end of the current content. Or, with the new editor, you first add a new “HTML” field, in which you place the JavaScript code.

<div id=”sommelier-bot”></div>
<script lang=”en” client=”belvini” src=”https://widget-v2.sommelier.bot/widget-admin.js”></script>

If you want to have the sommelier.bot in a given container (which should have a unique ID) on your page or article, follow these steps

1. Place the div container at the desired place in your document where the sommelier.bot should appear

<div id=”sommelier-bot”></div>

Hint for WordPress users: Remember that you have to add the code just like the JavaScript, as html or via “text” mode, as mentioned above.

2. Place the following script at the end of the document, immediately before </body>

<script lang=”en” client=”belvini” src=”https://widget-v2.sommelier.bot/widget-admin.js”></script>

Optional: You can set a lang key in the config with values “de” or “en”. If there is no lang key in the config, the sommelier.bot automatically tries to recognize the locale of the user by looking at the preferred browser settings. It will always default to en.

A question?