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?
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.
Conclusion The practical solution to pass CRM data in JSON format to an LLM is to use Apex code (or a specialized Flow approach) to produce a JSON string, which the prompt can then merge and pass along. Hence, Option B is correct.
Salesforce AI Specialist Reference & Documents
Salesforce AI Specialist Study Guide Emphasizes the need for custom logic (often in Apex) when complex data transformations (like JSON formatting) are required.
Marg
9 months agoColton
9 months agoRebecka
9 months agoGlendora
9 months agoMarnie
10 months agoLezlie
10 months agoTheodora
10 months agoSerita
10 months agoLynna
10 months agoQuentin
11 months agoOlive
11 months agoJesse
11 months agoMarcelle
11 months agoBarney
1 year agoCherry
1 year agoMozell
1 year agoWilburn
1 year agoSunshine
2 years agoDalene
1 year agoDalene
1 year agoMagnolia
1 year agoDalene
1 year agoMagnolia
1 year agoGerman
2 years agoFranklyn
2 years agoHarrison
2 years ago