AgentforceConfiguration

Comprehensive configuration object that encapsulates all dependencies and settings required for Agentforce SDK initialization. It serves as the central configuration hub that brings together all the components needed to create a fully functional Agentforce integration.

PropertyTypeRequired?Description
userUserYesThe current user context providing authentication state and user-specific settings
availableAgents[AgentInfo]?NoOptional list of available agents that can be used for conversation targeting
agentforceCopierAgentforceCopying?NoOptional clipboard integration provider for copy-to-clipboard functionality
enableDebugSettingsBoolNoDevelopment and debugging flag that enables additional diagnostic tools and settings (default: false)
ignoreWelcomeMessageBoolNoFlag whether or not the welcome message should be ignored (default: false)
forceConfigEndPointStringYesThe primary Salesforce org endpoint URL used for service discovery and configuration
dataProviderAgentforceDataProviding?NoOptional custom data provider for Salesforce record and metadata access
imageProviderAgentforceImageProviding?NoOptional custom image provider for loading and caching visual content
instrumentationHandlerAgentforceInstrumentationHandling?NoOptional instrumentation handler for analytics, performance monitoring, and event tracking
agentforceFeatureFlagSettingsAgentforceFeatureFlagSettingsYesFeature flag configuration controlling SDK behavior and experimental functionality
agentforceConnectionInfoAgentforceConnectionInfo?NoOptional pre-configured connection information for Agentforce services
salesforceNetworkSalesforceNetwork.Network?NoNetwork abstraction layer providing HTTP communication capabilities
salesforceNavigationSalesforceNavigation.Navigation?NoOptional navigation handler for integrating with your application's navigation system
salesforceLoggerSalesforceLogging.Logger?NoOptional logging provider for SDK diagnostic and debugging information
ttsVoiceProviderAgentforceReadbackHandler?NoOptional text-to-speech provider for voice output capabilities
speechRecognizerAgentforceSpeechTranscriber?NoOptional speech recognition provider for voice input capabilities
themeManagerAgentforceThemeManagerNoOptional themeManager provider for comprehensive visual customization (default: AgentforceDefaultThemeManager())
serviceApiURLString?NoThe service API URL for service agent configurations
MethodSignatureDescription
initinit(user:availableAgents:agentforceCopier:enableDebugSettings:ignoreWelcomeMessage:forceConfigEndpoint:dataProvider:imageProvider:instrumentationHandler:agentforceFeatureFlagSettings:agentforceConnectionInfo:salesforceNetwork:salesforceNavigation:salesforceLogger:ttsVoiceProvider:speechRecognizer:themeManager:serviceApiURL:)Creates a comprehensive Agentforce configuration with all available customization options