Exam Salesforce-AI-Specialist Topic 1 Question 24 Discussion
Actual exam question for Salesforce's Salesforce-AI-Specialist exam
Question #: 24
Topic #: 1
Question #: 24
Topic #: 1
Universal Containers wants to incorporate CRM data as well-formatted JSON in a prompt to a large language model (LLM).
What is an important consideration for this requirement?
What is an important consideration for this requirement?
Suggested Answer: B Vote an answer
* Context of the Question
* Universal Containers (UC) wants to send well-formatted JSON data in a prompt to a large language model (LLM).
* The question is about an important technical or design consideration for including CRM data as JSON in that prompt.
* Why Apex Code for JSON Formatting?
* Apex to Generate JSON: Salesforce does not have a simple "checkbox" or single setting to
"convert CRM data to JSON." Typically, to structure data as JSON in a template, you either:
* Use an Apex class that queries or processes the data, then returns a JSON string.
* Use a Flow or formula approach (though complex data structures often require Apex).
* No Built-In "Enable JSON Format in Prompt Builder": Prompt Builder doesn't have a toggle that automatically transforms data into JSON.
* ConclusionThe practical solution to pass CRM data in JSON format to an LLM is touse Apex code(or a specialized Flow approach) to produce a JSON string, which the prompt can then merge and pass along. Hence,Option Bis correct.
Salesforce AI Specialist References & Documents
* Salesforce Documentation:Working with JSON in ApexDescribes how to serialize and deserialize data using Apex for integration or AI prompts.
* Salesforce AI Specialist Study GuideEmphasizes the need for custom logic (often in Apex) when complex data transformations (like JSON formatting) are required.
* Universal Containers (UC) wants to send well-formatted JSON data in a prompt to a large language model (LLM).
* The question is about an important technical or design consideration for including CRM data as JSON in that prompt.
* Why Apex Code for JSON Formatting?
* Apex to Generate JSON: Salesforce does not have a simple "checkbox" or single setting to
"convert CRM data to JSON." Typically, to structure data as JSON in a template, you either:
* Use an Apex class that queries or processes the data, then returns a JSON string.
* Use a Flow or formula approach (though complex data structures often require Apex).
* No Built-In "Enable JSON Format in Prompt Builder": Prompt Builder doesn't have a toggle that automatically transforms data into JSON.
* ConclusionThe practical solution to pass CRM data in JSON format to an LLM is touse Apex code(or a specialized Flow approach) to produce a JSON string, which the prompt can then merge and pass along. Hence,Option Bis correct.
Salesforce AI Specialist References & Documents
* Salesforce Documentation:Working with JSON in ApexDescribes how to serialize and deserialize data using Apex for integration or AI prompts.
* Salesforce AI Specialist Study GuideEmphasizes the need for custom logic (often in Apex) when complex data transformations (like JSON formatting) are required.
by Vivien at Feb 10, 2025, 09:14 AM
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).