Archive
The Daily Org

A Salesforce NewspaperCurated by Abhinav

How to voice-enable an Agent Script agent with proven best practices

A streamlined workflow to voice-enable an Agent Script agent: Verify Agentforce Voice is active; Insert language, telephony, and modality blocks; Rewrite instructions for spoken delivery

A streamlined workflow to voice-enable an Agent Script agent

A streamlined workflow to voice-enable an Agent Script agent

Before modifying any code, administrators must verify that Agentforce Voice is active in the organization. Once enabled, adding voice capability follows a straightforward two-part workflow that keeps the core agent logic intact while routing conversations through a telephony channel.

Developers need to insert three specific configuration blocks into their Agent Script files. These blocks define the supported language, establish the telephony connection, and select the outbound voice model along with its persona. The nested settings ensure the correct speech synthesis engine handles both incoming audio transcription and outgoing responses.

Because listeners cannot reread text, the system prompts require careful rewriting. Replies must be concise, free of markdown or raw code snippets, and formatted so symbols are spoken as words. The guide emphasizes training the agent to silently correct common speech-to-text errors, such as mishearing technical terms, before providing a final response.