Agentforce Mobile SDK - Integration Guide
Note: This documentation reflects the latest SDK version with significant API updates. If you're migrating from an earlier version, please review the changes carefully.
Full integration guide available in the Agentforce Mobile SDK Developer Guide
What's New
Enhanced User Interface
- Mobile-Optimized Experience: Completely redesigned interface with native iOS design patterns for intuitive, responsive interactions
- Advanced Theming: Comprehensive theme system supporting custom colors, typography, and component styling to match your brand identity
- Custom Component Overrides: Native view provider system allowing complete customization of messaging UI components
Enhanced Chat V2 with Service Agent Support
- Service Agent Integration: Full support for mobile service agent configurations through the streamlined
.serviceAgent mode
- Human Agent Escalation: Seamless escalation to human agents with comprehensive messaging component support including rich links, surveys, carousels, and interactive elements
- Omni-Channel Excellence: Built-in support for omni-channel routing and omni-supervisor capabilities for enterprise-grade customer service
Configuration Changes
- New initialization pattern:
AgentforceClient now uses AgentforceMode enum (.fullConfig, .serviceAgent, .employeeAgent)
- Simplified configurations:
ServiceAgentConfiguration and EmployeeAgentConfiguration for streamlined setup
- Service agent support: New methods for Einstein Service agents using
esDeveloperName
New Components
- Launcher:
AgentforceLauncher floating action button for quick access
- Conversation Management: New
endConversation(), closeConversation(), and downloadTranscript() methods
API Updates
AgentforceAuthCredentialProviding now returns AgentforceAuthCredentials (from AgentforceService)
- New
showTopBar parameter in createAgentforceChatView
Getting Started with Agentforce
The Agentforce Mobile SDK empowers you to integrate Salesforce's feature-rich, trusted AI platform directly into your native iOS and Android mobile applications. By leveraging the Agentforce Mobile SDK, you can deliver cutting-edge, intelligent, and conversational AI experiences to your mobile users, enhancing engagement and providing seamless access to information and actions.
What is Agentforce?
Agentforce is Salesforce's platform for building and deploying trusted AI agents. These agents can understand user requests, access relevant data, perform actions across Salesforce and external systems, and generate helpful, conversational responses. The Agentforce Mobile SDK acts as the bridge, allowing your mobile app to communicate directly with these sophisticated agents, bringing the power of generative AI and automated workflows to your users' fingertips.
Why Use the Agentforce Mobile SDK?
Integrating the Agentforce Mobile SDK into your app offers several key advantages. It allows you to deliver advanced AI experiences that go beyond simple chatbots, providing users with truly agentic capabilities for complex task completion, personalized interactions, and access to generative AI features within your app's context.
The SDK offers flexible integration options to suit your needs:
- Full UI Experience: Get up and running quickly by using the SDK's pre-built, customizable chat interface. This provides a rich, out-of-the-box conversational experience supporting text, voice, and multimodal inputs with minimal coding effort.
- Headless Integration: For ultimate control, use the headless SDK to power your own custom user interface or to drive automated, agent-led processes in the background. You manage the conversational state and UI, while Agentforce handles the complex AI logic.
We suggest starting with the Full UI Experience unless you need more granular control over the interface.
Core Features
- Networking: A robust networking layer for handling both communication with the Agentforce platform and streaming responses.
- Conversational Intelligence: Sophisticated Natural Language Understanding (NLU) to process user requests via text or voice.
- Salesforce Actions: Execute actions within Salesforce, such as creating records, updating fields, and running Apex classes, directly from the conversation.
- Customizable UI: When using the Full UI experience, you can customize the appearance of the chat interface to match your app's branding.
- Extensible Service Protocols: The SDK defines a set of protocols for core services like navigation, caching, and logging, which you implement using your app's native infrastructure.
Integrate with Claude Code (integrate-agentforce-ios skill)