Open App

Astro

For Astro projects, the chat script goes in your shared layout component (e.g. src/layouts/Layout.astro) so the launcher shows on every page.

Install#

No package install needed. Copy the snippet from the Connect tab in your dashboard and replace YOUR_PROJECT_ID with your project's ID.

Add the script#

In your layout's <head> or before the closing </body>:

<script is:inline>
  window.ELOQRA_CHAT_CONFIG = { projectId: 'YOUR_PROJECT_ID' };
</script>
<script is:inline src="https://chat.eloqra.app/eloqra-chat.js" async></script>

The is:inline directive prevents Astro from processing the script as a module — important because the chat loader expects a global window property.

Verify#

Run npm run dev and the chat bubble appears on every page. Send a test message and confirm it lands in your connected Telegram. Make sure chat is enabled and your Telegram is connected in the dashboard first.

Was this page helpful?

Eloqra

Live chat for your website, answered from Telegram.

© Copyright 2026. All rights reserved.