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":

  1. The SDK is configured with your org details.
  2. A full-screen conversation UI is presented.
  3. The user can chat with the Service Agent.