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 StudioSetup

// 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