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.
AssistantMessage displays simple text responses from the Atlas assistant.
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 { AssistantMessage } from "@servicetitan/anvil2-ext-atlas";
function AssistantMessageExample() {
return (
<AssistantMessage message="I can help you with that! Let me look up the information." />
);
}
import { AssistantMessage } from "@servicetitan/anvil2-ext-atlas";
function AssistantMessageLoading() {
// When message is undefined, shows loading indicator
return <AssistantMessage />;
}
import { AssistantMessage } from "@servicetitan/anvil2-ext-atlas";
import CustomLogo from "./custom-logo.svg";
function CustomBrandedMessage() {
return (
<AssistantMessage
message="Hello from the custom assistant!"
svgIcon={CustomLogo}
assistant="My Assistant"
/>
);
}
<AssistantMessage
message="Response text"
error={false}
svgIcon={CustomIcon}
assistant="Atlas"
onRetry={handleRetry}
/>
AssistantMessage PropsWas this page helpful?