nerdexam
Salesforce

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

AI Features for Service (e.g., Einstein Bots, Next Best Action)

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)
  • A
    12% (3)
  • B
    80% (20)
  • C
    8% (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

#External Services#API Integration#Prompt Templates#Merge Fields

Community Discussion

No community discussion yet for this question.

Full AI-201 Practice