Install target
One v1 widget script in the app shell
Install AnswerLattice
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
Install verification
Script, allowed origin, blocked route, safe context, and fallback checks are visible before product users rely on support.
Add the v1 widget script and safe context adapter.
Verify origin, route, context, and fallback readiness.
Go live only after the runtime checks pass.
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_full_widget_key_shown_once"
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',
});
window.AnswerlatticeWidget?.identify?.({
id: currentUser?.supportCustomerId,
name: currentUser?.name,
email: currentUser?.email,
});