Must-readAgentforce and AI
Route real phone calls to your Agentforce Voice agent using Salesforce CLI and Omni-Channel flows (opens in a new tab)
You will learn how to configure an Agentforce Service Agent user, request a phone number, and build a one-element Omni-Channel routing flow to connect callers to your voice enabled script.
Why read this
You will also know how to verify call routing and inspect post call records using the Salesforce CLI.
- Verify entitlements and licenses
- Create an Agentforce Service Agent user
- Build an Omni-Channel routing flow
- Activate the flow and PSTN Voice channel
- Test the call and query records
The article explains that routing live calls requires an active Agentforce Voice agent, a dedicated Einstein Agent User license, and available inbound voice credits. Developers must verify entitlements and create a service agent user through the Salesforce CLI before configuring any routing logic.
A call reaches the agent through three linked components: a purchased phone number, a PSTN Voice channel, and an Omni-Channel flow. The flow requires a single input variable named recordId and one Route Work element that directs the call to the activated service agent, with a voice queue as a fallback.
After activating the flow and channel, administrators can test the connection by dialing the assigned number. Since live sessions do not generate transcripts, the author demonstrates how to query VoiceCall and AgentWork records via SOQL to confirm call duration, vendor type, and successful routing.
Read the original at Salesforce Developers Blog (opens in a new tab)