// Rollup / Vite treats https:// imports as external and leaves this untouched.
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat@1.10.0/dist/chat.bundle.es.js';

createChat({
  webhookUrl: 'https://n8n.loc8data.com/webhook/35da0ca6-aae7-428e-a6f1-e8346aa19cc0/chat',
  mode: 'fullscreen',
  chatInputKey: 'chatInput',
  chatSessionKey: 'sessionId',
  loadPreviousSession: true,
  metadata: {},
  showWelcomeScreen: false,
  defaultLanguage: 'en',
  initialMessages: ['How can I assist you today?'],
  i18n: {
    en: {
      title: 'IgniteAI',
      subtitle: 'Your AI assistant, always ready to help.',
      footer: '',
      getStarted: 'New Conversation',
      inputPlaceholder: 'Type your message…',
    },
  },
  enableStreaming: true,
});
