foldspace.agent('API-KEY').setConfiguration({
agentDisplayName: "Foldspace Assistant",
entryMessage: "What can I help with?",
logoUrl: "https://assets.foldspace.com/logos/foldspace-logo-light.svg",
promptBarHint: "Ask me anything...",
enableSpeechToText: true,
// Position property (format: "VERTICAL_HORIZONTAL")
initialAgentPosition: "BOTTOM_RIGHT",
// Session timeout in minutes
primaryFontColor: "#0B1220",
backgroundColor: "#FFFFFF",
secondaryFontColor: "#6B7280",
secondaryColor: "#F3F4F6",
primaryFontColor: "#FFFFFF",
backgroundColor: "#0F1724",
secondaryFontColor: "#9CA3AF",
secondaryColor: "#111827",
darkLogoUrl: "https://assets.foldspace.com/logos/foldspace-logo-dark.svg"
// Border animation settings
borderAnimationSettings: {
enableBorderAnimation: true,
borderColors: ["#0066FF", "#3B82F6", "#60A5FA"]
// Conversation starters settings
conversationStartersSettings: {
defaultConversationStarter: "KNOWLEDGE",
startNewConversationOnStarterClick: true,
{ title: "What is your return policy?" },
{ title: "How do I track my order?" },
{ title: "Show me product specifications" }
{ title: "Schedule a demo" },
{ title: "Check my order status" },
{ title: "Contact support" }
horizontalAlignment: "start"
backgroundColor: "#FFFFFF",
tooltipText: "Enable Tandem Mode — allow the assistant to read the page to help complete tasks",
"Fill out this form for me",
"Suggest values for the fields on this page"
tooltipText: "Allow the assistant to understand this page and provide helpful suggestions",
"Summarize this page for me",
"Highlight important information here"