Contact Us

June 1, 2024

May 13, 2026 3:23 pm

Configuring Agentforce Knowledge Blocks for AnswerQuestionsWithKnowledge Action

Share with

Understanding the Error Messages

The error messages ‘Reference ‘@knowledge.citations_url’ requires a knowledge block’ and ‘Cannot resolve @knowledge.citations_enabled – no knowledge-block/data-library defined’ indicate that the agent script is missing a knowledge block configuration.

The root cause of this issue is the lack of a defined knowledge block in the agent script configuration, which is required for the AnswerQuestionsWithKnowledge action to function properly.

Configuring the Knowledge Block

To resolve this issue, you need to add a knowledge section to your agent script configuration. This section should include the required settings, such as the rag_feature_config_id, citations_enabled, and citations_url.

agent_script.yaml

knowledge:
  rag_feature_config_id: "ARFPC_somesalesforceId"
  citations_enabled: True
  citations_url: ""

language:
  default_locale: "en_US"

By adding this knowledge block configuration, you can enable the AnswerQuestionsWithKnowledge action in your agent script and provide your agent with the necessary knowledge to answer questions effectively.

Best Practices for Configuring Knowledge Blocks

When configuring knowledge blocks in Agentforce, it is essential to follow best practices to ensure that your agent is properly grounded and can provide accurate answers to questions.

Checklist for Configuring Knowledge Blocks

  • Define a knowledge block in your agent script configuration
  • Specify the required settings, such as rag_feature_config_id, citations_enabled, and citations_url
  • Ensure that the knowledge block is properly linked to the AnswerQuestionsWithKnowledge action
  • Test your agent script to ensure that the knowledge block is functioning correctly
  • Regularly review and update your knowledge block configuration to ensure that it remains accurate and effective

Frequently Asked Questions

What is the purpose of the knowledge block in Agentforce?

The knowledge block is used to provide the agent with the necessary knowledge to answer questions effectively.

How do I configure a knowledge block in Agentforce?

You can configure a knowledge block by adding a knowledge section to your agent script configuration and specifying the required settings.

What are the required settings for a knowledge block in Agentforce?

The required settings for a knowledge block in Agentforce include the rag_feature_config_id, citations_enabled, and citations_url.

How do I link the knowledge block to the AnswerQuestionsWithKnowledge action?

You can link the knowledge block to the AnswerQuestionsWithKnowledge action by specifying the knowledge block in the action configuration.

Genetrix Technology · Salesforce Marketing Cloud Partner

Need help shipping this in production?

Genetrix builds and untangles Salesforce Marketing Cloud and Agentforce setups for teams that want it done right the first time. If anything in this post sounds familiar, talk to us before it ships.

Get in Touch with Genetrix →

Blogs for the

Business-Savvy!​

Let’s Connect

A 30 min no cost strategy session
with cloud support expert

Let’s Connect

A 30 min no cost strategy session
with cloud support expert