<link href="https://cdn.jsdelivr.net/npm/@n8n/chat/dist/style.css" rel="stylesheet" />
<script type="module">
import { createChat } from 'https://cdn.jsdelivr.net/npm/@n8n/chat/dist/chat.bundle.es.js';
createChat({
webhookUrl: 'YOUR_PRODUCTION_WEBHOOK_URL'
});
</script>
- My goal: make this widget being rendered in my app
Hi @Fabio_Costa
If you want to add it at the app level, go to App Settings.
And if you’d like to add it at the organization level, go to your Organization Settings → Advanced Settings.
1 Like
Error: import declarations are only allowed at the top level of module scope.
JayL
5
This doc outlines how to import external JS libraries to Retool