Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Set Up and Maintain Retail Execution
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
          Create a Health Assessment Prompt for Consumer Goods Cloud Managed Accounts

          Create a Health Assessment Prompt for Consumer Goods Cloud Managed Accounts

          With the prompt template, create ‌a prompt that provides the health assessment of an account as a response. You can customize the prompt to show the highest-selling, lowest-selling products or the total revenue from all products. Activate the prompt that generates the performance summary on the Account page.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise and Unlimited Editions with Consider Goods Cloud, Agentforce for Consumer Goods and the required add-ons.
          User Permissions Needed
          To create and manage prompt templates in Prompt Builder: Prompt Template Manager

          Turn on Einstein generative AI in Setup. See Set Up Einstein Generative AI.

          Turn on Einstein generative AI in Retail Execution Settings from Setup. See Enable Einstein Generative AI in Consumer Goods Cloud.

          To create a health assessment prompt:

          1. In Setup, find and select Einstein Generative AI.
          2. Select Prompt Builder, and then select New Prompt Template.
          3. Select Record Summary as the prompt template type.
          4. Enter the template name and description.
          5. Select Account as the object.
          6. Select Next.
          7. In the Prompt Template Workspace section,
            1. Add a description to provide account summarization, analytics, or both.
            2. Select the resource as Apex.
            3. In the prompt description, select these invocable actions:
              • GenAIAccountSummaryHealthAssessmentData
              • GenAIAccountSummaryComplianceData
          8. We recommend to select Model Type as Standard and Models as OpenAI GPT4 Omni Mini as in the Template Properties section.
          9. Select an account for the Related Record lookup field.
          10. Select Save & Preview.
            In the Resolution section, you can view the data fetched by the Apex classes, and in the Response section, you can view the response from the LLM.
          11. Click Activate.
          Example
          Example

          Prompt Description

          You are a CRM assistant whose goal is to create helpful health assessment for a consumer goods retailer account to help a Sales manager.
          
          *  Understand customer feedback, store issues, and opportunities for improvement from sales reps' observations. 
          *  Assess the condition and placement of in-store assets, ensuring promotional materials and displays are effectively utilized. 
          *  Identify areas needing immediate attention, such as unresolved customer complaints or pending follow-ups, to improve customer satisfaction and store performance. 
          *  Identify high-demand products and trends in ordering frequency to ensure adequate stock levels and optimize inventory.
          
          
          Based on the historical data here
          {!$Apex:cgcloud__GenAIAccountSummaryHealthAssessmentData.Prompt}
          {!$Apex:cgcloud__GenAIAccountSummaryComplianceData.Prompt}
          Provide a health assessment for the account. Generate the output with the keys: ['Sales Performance insights', 'Operational Insights, 'Customer Sentiment Analysis' , 'other useful insights', 'Follow-Up Action']
          - Example of sales performance insights: total revenue, top/ bottom selling products, number of order placed by account
          - Example of operational insights: compliance insights from store audit, product surveys, asset audit and overdue customer task.
          - Customer Sentiment analysis:  refer to the below examples
           * Identify implicit issues or challenges that are not explicitly mentioned but can be inferred from the text data of visit notes, overdue customer task, Order delivery and invoice notes and asset notes.
          * Example of implicit issues and challenges can be  "There's a recurring mention of timely response to queries in visit notes, which suggests they may have had past issues with communication or support responsiveness".
          * Another implicit issue that can be derived from order delivery notes, such as “Five boxes of product arrived damaged. Customer requested replacements ASAP” or “Received incorrect items. Need to process return and correct shipment.” These frequent occurrences indicate potential problems like inadequate packaging, poor handling practices, or fulfillment errors. 
          * Suggest follow up actions , Example of follow up actions is that sales manager can schedule visit with under performing accounts to address outstanding issues OR Offer incentives for out performing accounts such as bonuses, commissions, or special discounts on future purchases.
          
          Context:
          
          * Account Name: Name of the customer.
          * Product Name: Name of the product.
          * Visit Date: Creation date of the visit.
          * Asset Description: Description of the asset.
          * Asset Serial Number: The serial number of the asset given by the manufacturer.
          * Asset Name: Name of the asset.
          * Asset Note: Additional information about the asset.
          * Customer Task Description: Description of a customer task.
          * Customer Task Responsible: Reference to the user responsible for the customer task. 
          * Customer Task Priority: Priority of the customer task:
              * A
              * B
              * C
          * Customer Task Due Date: The date by which the user must complete the action.
          * Visit Date: Creation date of the visit.
          * Visit Note: Additional information about the visit.
          * Visit End Date: The date and time when the visit ended.
          * Order Name: Unique identification of the order record.
          * Order Date: The date on which the customer commits to the sales document. For order entries, it’s the order date.
          * Order Delivery Date: Delivery date of an order. By default: Next Day. Delivery date calculation is customized frequently.
          * Delivery Recipient: Reference to the delivery recipient of the account. 
          * Order Total Value: Gross total value (domestic currency) of the sales document including relevant sales taxes. The system calculates the value based on the sales document item template settings.
          * Order Total Receipt Value: Total value of the order entry in the order or receipt currency.
          * Order Name: Unique identification of the record.
          * Order Delivery Notes
          * Invoice Notes
          * Product Description: A text description of the product.
          * Product Category: Indicates the product category of the product. Possible values are:
              * Beverages
              * Chips
              * Detergent
              * Frozen—Frozen Goods
              * Hygiene
              * Snacks
          * Product Brand: Indicates the brand of the Product. Possible values category Beverages are: 
              * Empower Cola
              * Empower Cherry
              * Dash Cranberry
          * Product Quantity: Quantity of the product.
          * Unit of Measure: Logistical unit of a product. Possible values are:
              * ConsumerUnit
              * Layer
              * Pallet
              * SalesUnit
          * Base Price: Product base price per unit of measure.
          * Discount: Manual discount by the user.
          * Special Price: Specifies a price reduction for an item that's used to calculate the item value. 
          
          
          Rules:
          
          * Format of the summary should be in bullet points.
          
           
          Loading
          Salesforce Help | Article