Configure Consumer Goods Cloud Generative AI Invocable Actions

Configure the custom system settings for Apex variables in the out-of-the-box Apex classes shipped with the Consumer Goods Cloud managed package. These settings determine the number of records fetched from the objects and are used by the prompts. Perform this task only if you want to modify the default configurations for the variables in the invocable actions.

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 save changes to Apex classes:

Author Apex

AND

CGCloud Business Admin

To configure the Apex class settings:

  1. In Setup,find and select Custom Settings.
  2. Find System Setting, and then click Manage.
  3. Select the system setting you want to modify and click Edit.
  4. Modify the Value field of the setting, depending on the amount of data to be summarized.
  5. Save your changes.
Apex Class or Invocable Action Name Apex Class Label System Setting Description Default Value
GenAIAccountSummaryComplianceData Get Compliance Data Account_Summarization_Visits Specifies the number of recent visits to consider for account summarization. 5
Acct_Sum_Visits_Months Specifies the months of past visits used to compute the visit compliance data in the account summary. 5
Acct_Sum_CustomerTasks_Months

Specifies the months to compute the customer tasks compliance data in account summary.

Example: The due date is n months before or after today’s date, or the creation date is n months before today’s date.

5
GenAIAccountSummaryPerformanceData Get Performance Data Acct_Sum_Orders_Months Specifies the months of past orders used to compute the order performance data in the account summary. 5
Acct_Sum_Percent_Products Specifies the percentage of highest- and lowest-performing products to compute the order performance data in the account summary. 20
GenAIAccountSummaryHealthAssessmentData Get Health Assessment Data Account_Summarization_Visits Specifies the number of recent visits to consider for account summarization. 5
Acct_Sum_Visits_Months Specifies the months of past visits used to compute the visit compliance data in the account summary. 5
Acct_Sum_CustomerTasks_Months

Specifies the months to compute the customer tasks compliance data in account summary.

Example: The due date is n months before or after today’s date, or the creation date is n months before today’s date.

5
Acct_Sum_Orders_Months Specifies the months of past orders used to compute the order performance data in the account summary. 5
Acct_Sum_Percent_Products Specifies the percentage of highest-and lowest-performing products to compute the order performance data in the account summary. 20
GenAIWarehouseInventoryDeviations Get Inventory Deviations Data Account_Summarization_Orders Specifies the number of recent orders to consider for account summarization. 5
Acct_Sum_Orders_Days Specifies the days of past orders used to compute the order compliance data in the account summary. 5

After you change the settings, preview the prompt output to make sure that the latest setting values are picked up.