React Native Integration Guide
This guide provides a comprehensive overview of integrating the Agentforce Mobile SDK with your React Native application.
The React Native Agentforce SDK is a bridge to the native iOS and Android SDKs, providing a JavaScript API to configure and launch Agentforce conversations. It supports two agent modes:
- Service Agent: Anonymous customer support with zero authentication required
- Employee Agent: Authenticated internal use with OAuth via the Salesforce Mobile SDK
Before you begin, make sure you've reviewed the Requirements and completed the Installation steps.
For a quick introduction, see the Quick Start Guide.
Explore these topics to integrate the SDK into your application.
- Requirements - System requirements and prerequisites
- Install the SDK - iOS and Android setup
- Configure the SDK - Service Agent and Employee Agent configuration, feature flags
- Conversations - Launching conversations, lifecycle, additional context, hidden prechat fields
- Delegates - Logger, navigation, and view provider delegates
- Employee Agent Authentication - Mobile SDK auth integration and token management
- Limitations - Feature comparison with native SDKs
- Troubleshooting - Common issues and solutions
| Feature | Description |
|---|---|
| Service Agent | Anonymous customer support with no auth required |
| Employee Agent | Authenticated access with OAuth via Mobile SDK |
| Feature Flags | Toggle multi-agent, voice, camera, PDF upload |
| Hidden Prechat Fields | Pre-populate form data for Service Agent sessions |
| Additional Context | Pass contextual variables to personalize responses |
| Delegates | Logger, navigation, and custom view provider callbacks |
This bridge wraps the platform-specific Agentforce SDKs:
- AgentforceMobileSDK-Android (Maven)
- AgentforceMobileSDK-iOS (CocoaPods)