Avatar
Connect Avatar
Embed and connect your published avatar to HTML, Next.js, React, Vue, Webflow, and Shopify sites.
Overview
Once an avatar is published, connecting it to your website requires only initializing the SDK with your project credentials.
Connecting via React & Next.js
"use client";
import { useEffect } from "react";
import { Asiyst } from "@asiyst/sdk";
export function AssistantProvider() {
useEffect(() => {
Asiyst.init({
projectId: process.env.NEXT_PUBLIC_ASIYST_PROJECT_ID!,
publicKey: process.env.NEXT_PUBLIC_ASIYST_PUBLIC_KEY!,
});
}, []);
return null;
}
Connecting via HTML & CMS
Paste before closing