Configuration Reference - React Native

Reference documentation for configuration types in the Agentforce Mobile SDK for React Native.

The configuration passed to configure() is a discriminated union type:

Configuration for Service Agent mode (anonymous/guest access).

FieldTypeRequiredDescription
type'service'YesMust be 'service'
serviceApiURLstringYesThe Service API URL for your deployment. Found in Setup > Embedded Service Deployments > Settings.
organizationIdstringYesYour Salesforce Organization ID. Can be 15 or 18 characters.
esDeveloperNamestringYesThe developer name of your Embedded Service deployment.
featureFlagsFeatureFlagsNoOptional feature flags.

Configuration for Employee Agent mode (authenticated access).

FieldTypeRequiredDescription
type'employee'YesMust be 'employee'
instanceUrlstringYesYour Salesforce instance URL (for example, https://myorg.my.salesforce.com).
organizationIdstringYesSalesforce Organization ID.
userIdstringYesThe Salesforce User ID of the authenticated user.
agentIdstringNoThe Agentforce Agent ID. If omitted and enableMultiAgent is true, the SDK picks the first available agent.
agentLabelstringNoA display label shown in the conversation UI title bar (Android).
accessTokenstringNoOAuth access token. Can be provided directly or obtained via Mobile SDK auth.
featureFlagsFeatureFlagsNoOptional feature flags.

Feature flags control optional SDK capabilities.

FlagDefaultDescription
enableMultiAgenttrueWhen true and no agentId is specified, the SDK bootstraps and picks from available agents.
enableMultiModalInputfalseEnables camera and image attachment capabilities. Requires camera/photo permissions.
enablePDFUploadfalseEnables PDF file upload in the conversation.
enableVoicefalseEnables voice input (microphone). Requires microphone permission.
enableCustomViewProviderfalseEnables the custom view provider system.

Returned by configure() from the native layer:

Returned by getConfigurationInfo():

For backward compatibility, the bridge accepts the legacy format without a type field:

This format is deprecated. Use ServiceAgentConfig with type: 'service' instead.

The package exports type guard functions: