When you build a agent that uses custom apex Retriever instead of Einstein Search Retriever in Answer Question With Knowledge action,you will observe that the Citations are not being returned as a part of agent response.
If you have made changes to the standard version by removing the Einstein Search retriever and configured a custom apex retriever the citations will not be generated.
If you want the citations to be displayed for the custom apex retriever, follow the help article here to create a custom Agent Action.
This will allow you to return GenAiCitationInput/GenAiCitationOutput with the citation metadata from the Agent Action to the Backend.
The GenAiCitationInput class provides the Agentforce reasoning engine with citation information, enabling it to determine where and how citations are added to generated content.
The GenAiCitationOutput type gives you direct control over how custom actions display citations for source information, bypassing the reasoning engine’s logic for explicit citation insertion.
For more details, refer to the citations reference.
005232773

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.