Loading
Salesforce now sends email only from verified domains. Read More
Agentforce and Einstein Generative AI
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
          Using a Single Prompt Template for Multiple Languages

          Using a Single Prompt Template for Multiple Languages

          In Prompt Builder, you can choose which languages a template supports to generate output. Manage which languages are permitted to make sure that responses are generated only in languages that have been tested for quality output with your prompt and languages that your organization supports or uses fluently. If a particular language isn't specified when the template is used, Prompt Builder selects the response language for most standard features and use cases.

          Required Editions

          Available in: Lightning Experience
          Available in: Enterprise, Performance, and Unlimited Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations

          The default supported languages are enabled in standard and new custom templates. You can enable other languages by turning on Global Language Support in Einstein Setup. However, some Einstein Trust Layer features, such as data masking and toxicity scoring, might not be available for the added language, and responses might not be optimized for business-appropriate phrasing.

          How Prompt Builder Selects the Response Language

          The language used to write the prompt instructions or any response language requested in the instructions doesn’t determine the output language. Instead, the execution logic determines the language used in the response. If a particular language isn't specified when the template is used, Prompt Builder selects the response language based on this order.

          • Use the executing user’s language if it’s allowed in the prompt template.
          • If the user’s language isn’t allowed, use the org’s default language if it’s allowed.
          • If the org’s default language isn’t allowed, use English if it’s allowed.
          • If none of the languages are allowed in the prompt template, Prompt Builder returns an error.

          If a specific output language is set using the outputLanguage parameter in Apex or REST API, Prompt Builder uses the specified output language if it’s allowed in the prompt template. If the language isn’t allowed, Prompt Builder returns an error.

           
          Loading
          Salesforce Help | Article