Agent Initialization
Learn the foundational step that brings the agent to life within your application, giving you complete programmatic control over its look, feel, and functionality.
Prerequisite
This page assumes you’ve already installed the SDK.
Initializing the Agent
Initialize your overlay agent with your API name:
Every call must reference your Agent API Name, which you’ll find in Agent Studio→ Setup
// Update the AGENT_API_NAME with the agent name found Agent Studio -> Setup
const AGENT_API_NAME = "Foo"; // REPLACE
foldspace('when', 'ready', () => {
foldspace.agent(AGENT_API_NAME).show();
})
It is highly recommended to use the Agent Studio > Style & Behavior to configure the agent look & feel
Actions
Empower your agent with custom, AI-powered actions that automate workflows and deliver smarter, context-aware responses.
Knowledge Base
Enhance your agent’s expertise by integrating a tailored knowledge base for accurate, authoritative, and context-rich answers.
Updated 2 days ago