Get Started with Prompts
Learning Objectives
After completing this unit, you'll be able to:
- Explain what a prompt is and why it matters in Salesforce.
- Identify the core components of an effective prompt.
- Recognize how prompts are used in Salesforce applications.
- Describe the relationship between prompts and AI models.
The Definition of a Prompt?
A prompt is an instruction you give an AI model to get a specific output—think of it like a recipe. You're the chef. The AI model is your kitchen, ready to cook whatever you describe. You wouldn't just say, "Make something delicious." You would specify the ingredients, the technique, the temperature, the timing, and the desired outcome. Your prompt works the same way: the more precise your instructions, the better the dish that comes out.
Here are some other prompt examples.
- Summarize this customer support case in 2 to 3 sentences.
- Write a follow-up email to this customer.
- Extract all action items from this message.
Prompts aren't just for technical users. Anyone who works in Salesforce, from sales reps to service agents to administrators, can use prompts to get more out of AI. You don't need to know how AI models work under the hood. You just need to know how to ask your questions clearly. The clearer and more specific your prompt, the better the AI model's response.
The Six Components of an Effective Prompt
Every effective prompt has up to six key components. Not every prompt needs all six, but understanding each helps you write better prompts:
- Role: Who the AI should act as.
- Example: You are a customer service manager.
- Context: Background information the AI needs to understand.
- Example: This is a support ticket from a frustrated customer who has been waiting 5 days for a response.
- Task/Goal: What you want the AI to do.
- Example: Write a follow-up email that addresses their concern.
- Instructions: How the AI should complete the task.
- Example: Use a professional but empathetic tone. Reference the customer's previous message.
- Format: How the output should be structured.
- Example: Return as plain text, no formatting.
- Constraints: Limits or rules to follow
- Example: Keep the email under 200 words.
Here's how these components work together in a prompt:
Role: You are a customer service manager Context: This is a support ticket from a frustrated customer who has been waiting 5 days for a response Task: Write a follow-up email that addresses their concern and offers a solution Instructions: Use a professional but empathetic tone. Reference the customer's previous message. Format: Return as plain text Constraints: Keep the email under 200 words
How Prompts Work with AI Models
When you send a prompt to an AI model, the model reads your instructions and generates output based on what it's learned from its training data. The better your prompt, the more accurate and useful the model's response will be.
Think of it like this.
- A vague prompt gets a vague response.
- A detailed, specific prompt gets a more targeted response.
- A well-structured prompt following the six components gets the best results.
Prompts in Salesforce
Prompts are used throughout Salesforce to help you work smarter, not harder. Here are four common use cases:
Use Case 1: Case summarization: Your support team receives hundreds of case updates daily. A prompt helps summarize case details so reps can quickly understand what happened before responding.
Use Case 2: Follow-up email generation: Instead of manually writing each follow-up email, a prompt generates professional, personalized email based on case context.
Use Case 3: Message rewriting: A prompt can rewrite customer messages for different audiences—formal for executives, conversational for community forums.
Use Case 4: Information extraction: A prompt can pull key information from unstructured text, like extracting action items, deadlines, or customer concerns from long support conversations.
Now that you know what a prompt is and how it works in Salesforce, you're ready to learn how to write one well. In the next unit, you work through the six-step framework that takes the guesswork out of prompt writing.