Install guide
1. Create a site key
Sign in at /agent as the account owner, open Install, and add the domains where your app runs (for example app.example.com, *.example.com). Copy the secret: it is shown once.
2. Sign a user token on your server
For the logged-in user, sign an HS256 JWT with the secret. Required claims: sub (your user id), name, iat. Optional: email, company, lang. Tokens older than 10 minutes are refused, so sign one per request.
// Node.js
import jwt from 'jsonwebtoken';
app.get('/vegaassist-token', requireLogin, (req, res) => {
res.type('text').send(jwt.sign(
{ sub: String(req.user.id), name: req.user.name, email: req.user.email, company: req.user.company },
process.env.VEGAASSIST_SECRET, { algorithm: 'HS256', expiresIn: '10m' }));
});
// PHP (firebase/php-jwt)
echo \Firebase\JWT\JWT::encode(['sub' => (string)$user->id, 'name' => $user->name, 'iat' => time(), 'exp' => time() + 600], getenv('VEGAASSIST_SECRET'), 'HS256');
3. Add the script
<script src="https://vegaassist.designanddevelopment.in/vegaassist.js" data-site-key="va_pk_…" defer></script>
<script>
window.VegaAssist = window.VegaAssist || { q: [] };
VegaAssist.q.push(['init', { getUserToken: () => fetch('/vegaassist-token').then(r => r.text()) }]);
</script>
Options: accent (button colour), button: false (hide our button and call VegaAssist.open() from your own).
Website visitors (no login)
For a public website, tick Allow website visitors on the site key and leave out getUserToken:
<script src="https://vegaassist.designanddevelopment.in/vegaassist.js" data-site-key="va_pk_…" defer></script>
<script>window.VegaAssist = window.VegaAssist || { q: [] }; VegaAssist.q.push(['init']);</script>
Visitors enter their name and an email or phone (any country code) before they call or chat. At most 8 new visitor sessions per IP per hour.
WordPress
Download the VegaAssist WordPress plugin (.zip). In WordPress open Plugins > Add New > Upload Plugin, upload the zip and activate it. Then open Settings > VegaAssist, paste your site key (with Allow website visitors ticked) and save.
Shopify
Create a site key for your shop domain (for example yourshop.myshopify.com, yourshop.com) with Allow website visitors ticked. In Shopify admin open Online Store > Themes > ⋯ > Edit code, open layout/theme.liquid, and paste this just before </body>:
<script src="https://vegaassist.designanddevelopment.in/vegaassist.js" data-site-key="va_pk_…" defer></script>
<script>window.VegaAssist = window.VegaAssist || { q: [] }; VegaAssist.q.push(['init']);</script>
Save. The call button shows on every page. Checkout pages hosted by Shopify do not load theme code, so the button is not shown there; payment fields are never controllable anyway.
4. Protect sensitive areas
Password, PIN, OTP and payment fields are blocked automatically. Add data-ls-sensitive to any other element agents must never click.