identify() call and a reset() call. This page is for the developer who adds HelpAlive to your app, and for the Admin who plans the work. It covers what you add, what to decide first, and how you know you’re done.
Prerequisites
- A HelpAlive account, with your project key from Settings → Setup & API Key.
- A web app people sign in to. Will it work with my app? lists what HelpAlive supports.
- Access to the layout or template that every page of your app shares.
- About 10 minutes for the install, and about 15 more minutes to verify users.
What you add
HelpAlive runs in your users’ browsers, inside your app. You add three pieces of code, and nothing on your server unless you verify users:
There is no npm package to install: the script tag loads HelpAlive in every framework. You don’t add data attributes or ids to the elements in your pages, and you don’t connect an API. The agent reads your pages as they are. Make your app agent-ready has a few tips that help.
Verifying users adds one more piece: a few lines on your server that sign each user id. Your signing secret stays on your server.
Choose how to install
With an AI coding agent
Paste one prompt into the AI coding agent you use.
Add it yourself
Copy the tag, identify() and reset().
Google Tag Manager
Three Custom HTML tags and two data layer pushes.
React
Vite, Create React App and similar.
Next.js
App Router or Pages Router.
Vue and Nuxt
Vue 3 with Vite, and Nuxt.
Angular
Standalone components or NgModules.
HTML and server-rendered
Plain HTML, Rails, Django and Laravel.
Decide before you install
These three choices are hard to change later, because they shape the data HelpAlive keeps.1
Which id identifies a user
Use your app’s own user id: one that never changes and is unique across your app. Don’t use an email address if users can change theirs. If a user’s id changes, HelpAlive treats them as a new user, with no chat history.
2
B2B or B2C: whether your users belong to tenants
A tenant is one of your customers: the company, workspace or shared account a user belongs to. In a B2B app, pass its id as
tenantId and its name as tenantName. On Controls, you can choose which tenants get the agent and set limits per tenant. Reports and Audience group users by tenant. In a B2C app, where people sign up on their own, leave both out: your dashboard groups those users as B2C customers. If your app has both kinds of users, pass the tenant only for users who have one.3
Whether to verify users
To verify users, your server signs each user id. Once you turn on Only allow verified users, nobody can use the agent as someone else. Verifying users is optional and recommended before you open the agent to all users. See Verify users.
When the install is done
The install is done when the first three of the four steps on Settings → Setup & API Key have a check. The page then says that your agent is ready for your users. The four steps are:- Add HelpAlive to your app
- Train the agent on your product
- Test it on your app
- Verify your users (optional)
Troubleshooting
If a piece is missing, the agent doesn’t appear, usually with no error on the page. Troubleshooting lists each cause and how to spot it.Next
Install the script
The tag, identify() and reset().
Identify users
Every field, and logging out.
Verify users
Sign each user id on your server.

