Set Up Agentforce Voice for iOS
Agentforce Voice lets you build voice-enabled agents that manage complex conversations in real time. Set up Agentforce Voice for your iOS mobile app with these steps.
Before you set up Agentforce Voice for your mobile app, create and configure a voice-enabled service agent in Agentforce Studio.
Voice settings are configured at the agent level and apply across all supported connections. For current mobile GA implementations, connect your service agent to telephony.
Starting with SDK version 260.4, Agentforce Voice is a separate optional module. To use Agentforce Voice, add the LiveKit spec source and the AgentforceVoice pod to your project’s Podfile.
Then run pod install from your project’s root directory. For full Podfile setup instructions including other required sources, see Install the iOS SDK.
If you don’t use Agentforce Voice, no changes are needed — voice is no longer bundled with the core SDK by default.
To set up Agentforce Voice for iOS, start by enabling the voice feature flag within your configuration object. Then, pass the feature flags into your AgentforceConfiguration object.
To initialize the AgentforceClient, use the configuration object you created.
Then, implement the AgentforceUIDelegate protocol. The userInitiatedVoice method is called when Voice View is opened from Chat View.
To create a chat view, use the createAgentforceChatView method. While the voice feature flag is enabled, creating a chat view makes the voice option available to users.
To create the voice view, use the createAgentforceVoiceView method.