---
schema_version: "1"
id: 9c14d7462ffba8ab3cdb65d5cebef16a7db50a8ec2d2f47c39bf71184b5a3a48
title: Get an Explanation for a Formula and Fix Errors with Einstein for Formulas
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/formulas_einstein_fix_formula.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.formulas_einstein_fix_formula.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: adbc12d61cbaadef861609f1e575963f926ec86a9185f776f53c8c88ba542887
description: Use Einstein for Formulas to get an explanation for a formula and fix syntax errors in a formula used in Formula fields, default field values, and record validation rules. As an admin, you can use Einstein’s assistance for existing formulas or for the new ones that you create.
products:
  - Salesforce Platform
  - Security
release: "264"
---
# Get an Explanation for a Formula and Fix Errors with Einstein for Formulas

Use Einstein for Formulas to get an explanation for a formula and fix syntax errors in a formula used in Formula fields, default field values, and record validation rules. As an admin, you can use Einstein’s assistance for existing formulas or for the new ones that you create.

### 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;">Einstein Generative AI is available in Lightning Experience. Setup for Einstein Generative AI is available in Lightning Experience.</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

Your organization must license Einstein for Formulas to use the feature. Contact your Salesforce account executive for more information.

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_tip.png)

Tip You can also complete this task using Setup with Agentforce. For more information, see [Setup with Agentforce](https://help.salesforce.com/s/articleView?id=xcloud.setup_agentforce_overview.htm&language=en_US) and [Formulas in Setup with Agentforce](https://help.salesforce.com/s/articleView?id=xcloud.setup_agentforce_formula.htm&language=en_US).

In the following scenario, see how Einstein for Formulas can help you fix a formula field.

1. Turn on Einstein Generative AI. See [Enable Einstein Generative AI](https://help.salesforce.com/articleView?id=generative_ai_enable.htm&language=en_US).
2. From Setup, in the Quick Find box, enter Object Manager, and then select **Object Manager**. Next, click any object. For example, select **Account**.
3. Select **Fields and Relationships**, click any existing formula field, and then click **Edit**.
    
    You can view the existing formula in the Formula Editor.
4. To get assistance for this formula, click **Use Formula Assistant** on top of the Formula Editor.
    
    The Einstein panel opens.
5. If the formula is correct, Einstein asks if you want to receive an explanation for the formula. Click **Explain Formula** to proceed.
6. If there are any syntax errors in the formula, Einstein identifies the error and suggests a fix for the formula. Click **Fix Formula** to view the fixed formula.
    
    ![formulas\_einstein\_fix\_formula](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/extend_click/images/formulas_einstein_fix_formula.png)
    
    1. To copy the updated formula in the Formula Editor, click **Use Formula**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_click-264-0-0-production-enus/5f7d9219-b7b1-4552-8891-f1aba9b289fc/images/icon_note.png)
    
    Note The languages supported for the generative response include English, French, German, Italian, Japanese, and Spanish. If your user’s language isn’t one of the supported languages, responses are generated in English.
7. (Optional) To provide feedback to Einstein about the generated explanations and formula fixes, use the thumbs-up and thumbs-down icons in the panel. If the generated explanation or the suggested fix for a formula is accurate, use the thumbs-up icon, or use the thumbs-down icon to select and submit feedback.