💬 In plain words: When building instructions for an AI Agent in Salesforce, you are actually writing two completely different types of code in the same list. Logic lines act like traditional code (fetching data, evaluating true/false). Prompt lines act like natural human English that the LLM will read. You use conditions to decide which prompt lines actually get sent to the model. 📌 Example: Imagine an agent checking a system outage. You use three logic lines to fetch and store the outage status. Then, you write two conditional prompt lines . One says, "Give the confirmed estimate," and the other says, "Say no estimate is available." Based on the logic lines, only one of those prompt lines will ever reach the model to guide its response.
Agentforce