iOS Quick Start Guide
Get up and running quickly with the Agentforce Mobile SDK for iOS using these instructions.
Ensure you have:
- A Salesforce org with Agentforce enabled
- An agent configured in your org (Employee Agent or Service Agent)
- The required values from your Salesforce org depending on agent type
For detailed setup instructions, see Before You Begin.
You need these values from your Salesforce org:
- Service API URL: Setup > Embedded Service Deployments > your deployment > Settings
- Organization ID: Setup > Company Information
- ES Developer Name: Setup > Embedded Service Deployments > Developer Name
You need these values from your Salesforce org:
- Agent ID: From the Agent Details page URL (the 18-character ID at the end)
- User ID: From the user profile. See Find the Salesforce ID for a User.
- My Domain URL: Setup > My Domain > Current My Domain URL
Add the Agentforce SDK to your project using CocoaPods.
To learn more, see Install the iOS SDK.
See iOS Requirements.
To use the SDK, be sure to import the Agentforce SDK package.
Create a credential provider using one of the supported authentication methods.
To learn more, see Integrate Agentforce SDK.
Configure your chat object for Employee agent or Service agent.
For guidance on gathering information for the agent configuration object, see Agent Type Setup in Before You Begin.
To learn more, see Integrate Agentforce SDK.
Start the chat conversation and present the chat UI.
To learn more, see Integrate Agentforce SDK. For guidance on getting values for the createAgentforceChatView method, see Agent Type Setup.
- Customization: See Branding and Theming for visual customization
- Full Integration: See Integration Guide for complete implementation