Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
Welcome is an onboarding screen displayed to new users before they begin chatting.
Documentation Index
Fetch the complete documentation index at: https://anvil.servicetitan.com/llms.txt
Use this file to discover all available pages before exploring further.
import { Welcome } from "@servicetitan/anvil2-ext-atlas";
function WelcomeScreen() {
const [showWelcome, setShowWelcome] = useState(true);
if (!showWelcome) {
return <ChatInterface />;
}
return (
<Welcome
title="Welcome to Atlas"
subtitle="Your AI Assistant"
onContinue={() => setShowWelcome(false)}
/>
);
}
import { Welcome, ChatWindow, Content } from "@servicetitan/anvil2-ext-atlas";
function AtlasApp() {
const [showWelcome, setShowWelcome] = useState(true);
if (showWelcome) {
return (
<Welcome
title="Welcome to Atlas"
onContinue={() => {
setShowWelcome(false);
initializeChat();
}}
/>
);
}
return (
<ChatWindow open>
<Content>{/* messages */}</Content>
</ChatWindow>
);
}
import { Welcome } from "@servicetitan/anvil2-ext-atlas";
function WelcomeWithTestId() {
return (
<Welcome
title="Welcome to Atlas"
subtitle="Your AI Assistant"
onContinue={handleContinue}
continueButtonId="welcome-continue-btn"
/>
);
}
<Welcome
title="Welcome to Atlas"
subtitle="Your AI Assistant"
onContinue={handleContinue}
continueButtonId="welcome-continue"
/>
Welcome PropsWas this page helpful?