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
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. For more information go to AgentforceService
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-android skill)
If you're using Claude Code (or other agentic tooling that supports the skill format), this repo ships an integrate-agentforce-android skill that walks you through SDK integration end-to-end:
- Use-case-driven auth selection — answer "what kind of agent?" and the skill picks the right
AgentforceMode (employee with OAuth/OrgJWT, public service agent, or guest) instead of asking you to choose between credential cases upfront.
- Gradle dependency wiring — adds the four Salesforce Maven repos to
settings.gradle.kts, the SDK + desugar dependencies to your app module, and verifies that Compose is enabled.
- Scaffolds the integration files — generates
AppCredentialProvider, AppLogger, AppNetwork, AppNavigation, AppAgentforceUIDelegate, an AgentforceHolder that owns the AgentforceClient on Application, and a Compose chat host (bottom sheet, full-screen Activity, embedded panel, or dialog).
- MIAW deployment guidance — for public service agents, points you at the Messaging for In-App and Web mobile deployment docs before you try to build.
Install the skill
The skill is shipped as a Claude Code plugin in this repository. From your consuming Android project:
/plugin marketplace add salesforce/AgentforceMobileSDK-Android
/plugin install agentforce-mobile-sdk-android@agentforce-mobile-sdk-android
Then run the skill:
/integrate-agentforce-android