Technical Documentation Chatbot

Introduction

This documentation describes the implementation of the chatbot into a website. The chatbot is embedded as a custom element (<chatbot-gpt>) and can be placed at any desired position on the page. If the element is not present, it will be automatically added at the end of the body tag.

Prerequisites

Markup

Insert the following markup at the desired location in your HTML document:

<chatbot-gpt id="chatbot-gpt"></chatbot-gpt>
<script
  async
  id="chatbot-gpt-script"
  src="https://hugcontactgpt.chatbot-component.prod.genai.liip.ch/chatbot-gpt.js"
></script>

Configuration

lang (optional)

The lang attribute sets the language of the chatbot. Default: fr.

<chatbot-gpt id="chatbot-gpt" lang="fr"></chatbot-gpt>