---
schema_version: "1"
id: a5a603bcc937c63dad37f140b304e916ca83704890ed847be104d6dca684829e
title: Configure Language Selection for Prompt Templates
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_single_template_languages.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_single_template_languages.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0c0ef8c90de105241c2f8d6fd90df6b4dd800566f8a663e7d9c08848991cd600
description: Manage which languages your prompt template can generate in and how the language is selected. Configure system-managed language selection based on user and org settings, or enable instruction-driven language selection where the LLM interprets response language directly from prompt instructions.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Configure Language Selection for Prompt Templates

Manage which languages your prompt template can generate in and how the language is selected. Configure system-managed language selection based on user and org settings, or enable instruction-driven language selection where the LLM interprets response language directly from prompt instructions.

### 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;">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 with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

In Prompt Builder, select the languages that a template supports to generate output, and control how the system determines the response language. Manage the allowed languages to make sure that the template generates responses only in languages that you tested for quality output, and that your organization supports or uses fluently.

In the Response section of Template Settings, use the Automatic toggle to control language selection behavior. Enable the toggle for system-managed language selection, or disable it so the LLM interprets the language directly from your prompt instructions.

## Automatic Language Mode (Default)

In Automatic mode, the platform automatically determines the response language based on predefined logic.

If you don't specify a language when executing the template, Prompt Builder selects the response language based on this order:

1. Use the response language set in the outputLanguage parameter in Apex or the REST API if supplied and the prompt template supports it.
2. If the template doesn’t support the supplied outputLanguage, Use the executing user's language if the prompt template supports it.
3. If the template doesn't support the user's language, use the org's default language if supported.
4. If the template doesn't support the org's default language, use English if supported.
5. If the prompt template doesn't support any of these languages, Prompt Builder returns an error.

When to use Automatic mode:

- Maintain consistency across users and regions.
- Enforce language compliance.
- Align responses with org-supported languages.
- Apply allowed language restrictions.

## Open Response Language Mode

Open Response Language is a configuration that uses natural language instructions to determine the response language instead of system-managed rules. When you disable the Automatic toggle, the system removes language selection constraints so the large language model (LLM) interprets language instructions directly.

How it works:

- The system no longer enforces language selection.
- The LLM determines the response language based on prompt instructions and provided context.
- You can use flexible and unstructured instructions, such as "Respond in Spanish," "Use British English," or "Write this in Hindi with a formal tone."
- The model interprets intent and generates responses accordingly, without strict system constraints.

When to use Open Response Language mode:

- You need dynamic, per-request language control.
- Your use case involves multi-language or global audiences.
- You want prompt-driven behavior instead of system enforcement.

## Considerations

- The system does not enforce allowed languages when Automatic mode is disabled.
- Response quality depends on how clearly you write language instructions in your prompt.
- Results may vary based on the LLM's understanding of a language or dialect.
- Don’t disable Automatic mode for strict compliance or regulated environments where language governance is required.
- outputLanguage values supplied to prompts using Open Response Language at runtime will be ignored.

## Language Support

Standard and new custom templates support the default languages. Turn on Global Language Support in Einstein Setup to support other languages. However, when you use a global language, some Einstein Trust Layer features, such as data masking and toxicity scoring, are sometimes unavailable, and the system doesn’t always optimize responses for business-appropriate phrasing.

#### See Also

- [Supported Languages in Prompt Template Responses](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_localize_responses.htm&release=264.0.0&type=5 "A prompt template can use any language that Prompt Builder offers. Supported languages are optimized for business-appropriate phrasing and are integrated with the Einstein Trust Layer to use its data masking and toxicity scoring features.")
- [Enable Global Language Support in Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_enable_global_lang.htm&release=264.0.0&type=5 "Enable, manage, and test global language settings for your prompt templates.")