nerdexam
Salesforce

AI-201 · Question #219

Universal Containers (UC) has registered an external service and created a template-triggered prompt flow that invokes the external service to fetch data from a REST API. UC now needs to make the resp

The correct answer is A. Use External Service Record merge fields.. When Salesforce External Services are registered and invoked within a flow, their structured response objects become available as External Service Record merge fields in Prompt Builder. This is the native, supported mechanism for surfacing external API response data directly insi

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

Question

Universal Containers (UC) has registered an external service and created a template-triggered prompt flow that invokes the external service to fetch data from a REST API. UC now needs to make the response data from the external service usable inside a prompt template as a merge field when the template runs. How should UC meet this requirement?

Options

  • AUse External Service Record merge fields.
  • BConvert the JSON to an XML merge field.
  • CUse the 'Add Prompt Instructions' flow element.

How the community answered

(31 responses)
  • A
    71% (22)
  • B
    19% (6)
  • C
    10% (3)

Explanation

When Salesforce External Services are registered and invoked within a flow, their structured response objects become available as External Service Record merge fields in Prompt Builder. This is the native, supported mechanism for surfacing external API response data directly inside prompt templates as dynamic merge fields. There is no concept of 'XML merge fields' in Salesforce prompt templates (B). The 'Add Prompt Instructions' flow element (C) is used to assemble prompt text dynamically within a flow, but it does not make external service response fields directly available as named merge fields in a template definition.

Topics

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

Community Discussion

No community discussion yet for this question.

Full AI-201 Practice