Copied unchanged from public/typo3conf/ext/ of EP/website at 9593cc8631354f8a363d6609de8b7433f669a9a0 (Git-tracked files only). History stays in the old repository. Only composer.json files are added so the extensions install as path packages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
59 lines
1.7 KiB
HTML
59 lines
1.7 KiB
HTML
<link href="/chat.styles.css" rel="stylesheet" />
|
|
|
|
<div id="chat"></div>
|
|
|
|
<script type="module">
|
|
import { createChat } from '/chat.bundle.es.js';
|
|
|
|
createChat({
|
|
// Webhook URL
|
|
webhookUrl: 'https://n8n.ep-reisen.app/webhook/e104e40e-6134-4825-a6f0-8a646d882662/chat',
|
|
|
|
// Target Element
|
|
target: '#chat',
|
|
|
|
// Window Mode (floating button)
|
|
mode: 'window',
|
|
|
|
// Metadata für Analytics
|
|
metadata: {
|
|
source: 'website',
|
|
url: window.location.href,
|
|
path: window.location.pathname,
|
|
referrer: document.referrer || 'direct'
|
|
},
|
|
|
|
// Welcome Screen ausblenden
|
|
showWelcomeScreen: false,
|
|
|
|
// Initiale Begrüßung (DU-Form)
|
|
initialMessages: [
|
|
'Hallo! 👋',
|
|
'Ich bin dein E&P Chatbot und helfe dir gerne bei deinen allgemeinen Fragen rund um unsere Reisen!\n' +
|
|
'Wichtig: Aktuell befinde ich mich noch in der Testphase und kann noch nicht alle Fragen beantworten. Es kommen aber nach und nach Funktionen hinzu!'
|
|
],
|
|
|
|
// Deutsche Texte (DU-Form)
|
|
i18n: {
|
|
en: {
|
|
title: 'E&P Chatbot',
|
|
subtitle: 'Fragen zu unseren Skireisen? Wir sind für dich da!',
|
|
footer: '',
|
|
getStarted: 'Neue Nachricht',
|
|
inputPlaceholder: 'Deine Frage hier eingeben...'
|
|
}
|
|
},
|
|
|
|
// Session Management
|
|
loadPreviousSession: true,
|
|
chatSessionKey: 'ep_reisen_session',
|
|
chatInputKey: 'chatInput',
|
|
|
|
// File Uploads deaktiviert
|
|
allowFileUploads: false,
|
|
|
|
// Streaming (aktiviere falls gewünscht)
|
|
enableStreaming: false
|
|
});
|
|
</script>
|