Installation
EnaChat installs by adding a single line before the closing </body> of the municipal website:
<script src="https://app.enacast.chat/v1.js" data-town="your-town" data-key="YOUR-KEY" defer></script>data-town: the town identifier (provided at onboarding).data-key: the town’s API key. Public by design (read-only access to the town’s chat, rate limited).- The
/v1.jsURL is versioned: we deploy improvements behind it and the municipal site never needs touching again.
By CMS
- WordPress: add the line in the footer or with a code-insertion plugin.
- Hosted council sites (Diba/AOC): use the CMS’s “external code” or “footer” field — same mechanism as web analytics. We provide the exact instruction text to forward.
- Custom site: paste the line in the base template.
Customization
Per-town brand color (--enachat-primary CSS variable), ca/es/en out of the box (more by configuration), bottom-right position by default.
Accessibility
WCAG 2.1 AA: keyboard navigation (Tab/Escape), ARIA live regions for streamed answers, guaranteed contrast, and the citizen office’s phone and hours always in the widget footer.