How to add external js/css

<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>
  1. 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

Getting this error

Error: import declarations are only allowed at the top level of module scope.

This doc outlines how to import external JS libraries to Retool