React Native Quick Start Guide
Get up and running quickly with the Agentforce Mobile SDK for React Native. This guide walks you through creating a minimal Service Agent integration.
Ensure you have:
- A Salesforce org with Agentforce enabled
- A Service Agent configured in your org (Setup > Embedded Service Deployments)
- The following values from your Salesforce org:
- Service API URL: Found in Setup > Embedded Service Deployments > your deployment > Settings
- Organization ID: Found in Setup > Company Information
- ES Developer Name: The developer name of your Embedded Service deployment
Install the React Native Agentforce bridge:
In your ios/Podfile, add the bridge pod:
Then install pods:
In your android/app/build.gradle, add the Maven repositories:
Register the native package in MainApplication.kt:
Add the conversation activity to AndroidManifest.xml:
Create a component that configures and launches a Service Agent conversation:
When the user taps "Chat with Agent":
- The SDK is configured with your org details.
- A full-screen conversation UI is presented.
- The user can chat with the Service Agent.
- Requirements: Review system requirements and prerequisites
- Install the SDK: Detailed installation instructions for iOS and Android
- Configure the SDK: Learn about Service Agent and Employee Agent configuration options
- Integration Guide: Complete implementation guide