---
schema_version: "1"
id: 6d6fd4d06de6d7be7ffc040a3ea3ac1d20bdb1440cef6eaaaac88dba8b2d301e
title: Accelerated Hands-Free Field Execution With Speech-to-Text Integration
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_concept_speech_to_text_parent.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_concept_speech_to_text_parent.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0784a934c89bbc8968d29c352e46f900902a61ee8850e540753f2a44ea35b066
description: Give your sales reps a hands-free experience by configuring voice-driven scenarios in the Consumer Goods Cloud mobile app. Sales reps can use their voice to capture survey data, take notes, and update orders while online.
products:
  - Consumer Goods
release: "264"
---
# Accelerated Hands-Free Field Execution With Speech-to-Text Integration

Give your sales reps a hands-free experience by configuring voice-driven scenarios in the Consumer Goods Cloud mobile app. Sales reps can use their voice to capture survey data, take notes, and update orders while online.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition">
      <colgroup>
        <col>
      </colgroup>
      <tbody>
        <tr class="">
          <td class="slds-cell-wrap" style="vertical-align:top;">
            <p>Available in: Lightning Experience </p>
            <p style="margin-bottom:0;">Available in: <strong>Agentforce 1</strong>, <strong>Einstein 1</strong>, <strong>Enterprise</strong>, and
              <strong>Unlimited</strong> editions with Consumer Goods
              Cloud Retail Execution and Agentforce for Consumer Goods Cloud add-on
              licenses.
            </p>
          </td>

        </tr>
      </tbody>
    </table>

Voice-driven workflows aren't standard built-in features. Admins can create them by setting up APIs in the Consumer Goods Cloud mobile app customization layer by using the Visual Studio Code based Modeler. Design workflows that orchestrate these APIs to transcribe verbal requests into structured, AI-driven actions. The Speech-to-Text API captures the user's voice and converts it into text.

For example, you can customize the app for sales reps to use voice to record notes during a visit. When the app is offline and Speech-to-Text is turned on, the app saves the converted text in the relevant fields.

For other custom use cases like voice-to-survey, configure the workflow to use additional processing to pass the transcribed text to the Prompt Template API, when the device is online.

To use these configurations, make sure that the mobile device is online and the Integrate Agentforce setting is turned on in the Consumer Goods mobile app sync settings. The key configuration components are:

- Verify network: Use [`DeviceManager.isOnlineAsync()`](https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_framework_api_devicemanager_isonline.htm&language=en_US&type=5) to check network connectivity. Because the [`promptTemplateAsync`](https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_executeprompttemplateasync.htm&type=5&language=en_US) API requires an internet connection, use this check to turn off voice features when the device is offline to prevent errors and ensure a smooth user experience.
- Check Agentforce availability: Use [`Facade.isAgentForceAvailable()`](https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_facade_isagentforceavailable.htm&language=en_US&type=5) to confirm that the Agentforce feature is active.
- Capture input (Speech-to-Text): Use [`launchSpeechToTextAsync()`](https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_voicemanager_launchsttasync.htm&type=5&language=en_US) to integrate the native speech-to-text interface. This function captures the user’s spoken words and returns the transcribed text to the application logic, ready for use as a parameter.
- Process intent (Prompt Template): Use [`Facade.executePromptTemplateAsync`](https://help.salesforce.com/s/articleView?id=ind.modeler_vscode_executeprompttemplateasync.htm&type=5&language=en_US) to connect to Salesforce and retrieve the AI-generated response by sending the inputs to a specific prompt template. The API handles the communication, but customizers should define the business logic to consume the response that is returned. For example, capturing data or dynamically querying the system. This functionality is available on Android, iOS, and the Modeler simulator.

Before you implement this workflow, review the considerations for Speech-to-Text integration.

- **[Considerations for Speech To Text Integration](https://help.salesforce.com/s/articleView?id=ind.cg_concept_speech_to_text_considerations.htm&release=264.0.0&type=5)**  
    Review these important considerations for setting up speech-to-text. These include changing session limits and silence detection, designing the user interface and theme, stopping sessions automatically, handling errors, and setting up offline language packs.