Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Example: Extract Products from Opportunity Descriptions

          Example: Extract Products from Opportunity Descriptions

          The sales team at QuantumBit wants to streamline quote creation because critical product and pricing discussions often remain buried within the unstructured text of opportunity description fields. To resolve this issue, the Transaction Management Salesforce admin uses the Extract Product Mentions prompt template to automate the identification of these key details. By creating a custom Flex prompt template and deploying it as an agent action, the Salesforce admin enables sales reps to extract product names, quantities, and attributes directly from the opportunity description to expedite the quoting process.

          Follow this example to create a Flex template that extracts details from an Opportunity's Description field.

          Create a Flex Prompt Template

          1. Open the Extract Product Mentions template in Prompt Builder and copy its instructions.
          2. Return to the Prompt Builder page and click New Prompt Template.
          3. Select Flex in the Prompt Template Type dropdown.
          4. Specify a name and description.
          5. Under Inputs, click Add to define the resource.
            • Name: Opportunity Data
            • API Name: Opportunity_Data
            • Source Type: Object
            • Object: Opportunity
          6. Paste the copied instructions into the Prompt section.
          7. In Template Settings, click Resources.
          8. Under Inputs, select Opportunity, then select Description.
          9. Test and click Activate.

          Deploy the Template as an Agent Action

          1. Create a custom agent action with a Prompt Template reference action type.
          2. In Setup, select Agentforce Agents and click Revenue Quote Management.
          3. Click Open in Builder.
          4. On the Topics panel, click Quote Management and add your custom action.
          5. Open an opportunity containing product details in its description.
          6. Enter Extract product details for this opportunity in the agent chat window.
            The agent retrieves product names, quantities, and attributes.
          7. Add the extracted products to a new or existing quote.
           
          Loading
          Salesforce Help | Article