Install target
One v1 widget script in the app shell
AnswerLattice Agent Install Layer
Human-readable install steps for teams that do not use an AI coding agent.
One v1 widget script in the app shell
Path, title, feature, workflow, role, locale
Loaded, origin allowed, route allowed, context received
Paste the v1 script in the app shell or shared document. Do not paste it into individual pages.
<script
src="https://answerlattice.com/widget/v1/answerlattice-widget.js"
data-answerlattice-key="al_your_widget_key"
async
></script>Call page() after load and after client-side route changes. Keep context high-level and safe.
window.AnswerlatticeWidget?.page({
path: window.location.pathname,
title: document.title,
feature: 'billing',
workflow: 'manage_subscription',
role: 'owner',
locale: 'en',
});