Ask AI sales chatbot about anything regarding sales.
Advanced language model with improved reasoning and multimodal capabilities
Anthropic's most capable AI model for complex reasoning and analysis
State-of-the-art image generation model with enhanced creativity
Automatic speech recognition system with multilingual support
AI-powered art generator creating stunning visual content from text prompts
Open-source text-to-image model for creative content generation
Google's multimodal AI model for text, code, and image understanding
Advanced text-to-speech AI with natural voice synthesis capabilities
Specialized AI model for code generation and programming assistance
AI-powered video editing and generation platform for creative professionals
AI-powered search engine that provides accurate answers with citations
AI video generation platform that creates professional videos from text
Add the widget script to your layout for multiple pages.
components/SensayScript.tsx
"use client"; import Script from "next/script"; import { useEffect, useId } from "react"; export default function SensayScript({ src }: { src: string }) { // Generate a unique ID for script so NextJS can run it on client side navigation. // NextJS Script component by default runs script only once based on the src value. const id = useId(); const url = new URL(src); url.searchParams.set("id", id); // Destroy the chatbot when the component unmounts. // Destroy chatbot elements as NextJS doesn't clean up the Script component on client side navigation. useEffect(() => { return () => { window.SensayChatbot?.destroy(); }; }, []); return <Script src={url.toString()} strategy="afterInteractive" />; }
app/products/layout.tsx
import SensayScript from "@/components/SensayScript"; export default function ProductsLayout({ children }) { return ( <div> {children} <SensayScript src="https://chat-widget.sensay.io/<chatbot-identifier>/embed-script.js" /> </div> ) }