AI-201 · Question #101
An Agentforce wants to include data from the response of external service invocation (REST API callout) into the prompt template. How should the Agentforce Specialist meet this requirement?
The correct answer is B. Use External Service Record merge fields.. When Salesforce External Services are configured to connect to a REST API, the responses from those external services are made available as structured merge fields in Prompt Builder. These 'External Service Record merge fields' allow the Agentforce Specialist to reference specifi
Question
An Agentforce wants to include data from the response of external service invocation (REST API callout) into the prompt template. How should the Agentforce Specialist meet this requirement?
Options
- AConvert the JSON to an XML merge field.
- BUse External Service Record merge fields.
- CUse "Add Prompt Instructions" flow element.
How the community answered
(25 responses)- A12% (3)
- B80% (20)
- C8% (2)
Explanation
When Salesforce External Services are configured to connect to a REST API, the responses from those external services are made available as structured merge fields in Prompt Builder. These 'External Service Record merge fields' allow the Agentforce Specialist to reference specific fields from the API response directly inside a prompt template-no conversion to XML (A) is needed, and 'Add Prompt Instructions' (C) is a flow element used to append static text, not dynamic external data.
Topics
Community Discussion
No community discussion yet for this question.