Loading

Agentforce: Language Filtering for Dynamic Retrievers in Prompt Templates

Publiceringsdatum: Sep 27, 2025
Beskrivning

When we are using a dynamic retriever in a prompt template for retrieving the Knowledge Answers, the Standard Agent Action uses a code-based retriever that is configured with the Agentforce data library

This code-based retriever applies two main filters to fetch knowledge articles:

  1. Search Query: The end user's query is passed to the retriever, which searches for relevant knowledge articles within the data library.

  2. Language: This is a system field which uses the User Locale and based on the locale value it retrieves the knowledge articles.

If the locale value do not match with knowledge article language value, no articles will be returned, even if the relevant articles are available for the end users query.

Lösning

To ensure that knowledge articles are successfully retrieved by the agent, the user's locale language must match the language of the knowledge articles available in the data library.

Knowledge-artikelnummer

005131364

 
Laddar
Salesforce Help | Article