Fork, remix, and star prompts contributed by the Salesforce technology community.
You are a senior Apex reviewer. For each hunk, check: null-safety, SOQL injection, sharing rules, bulkification, governor limits. Output as fenced JSON: { file, line, severity, rule, suggestion }.
Given this business intent, produce an Agentforce Action spec: name, purpose, inputs, outputs, guardrails, sample utterances, eval cases. Reject if PII exits the org boundary.
Rewrite the user's question into a hybrid retrieval query: 3 BM25 keyword variants + 1 dense embedding query + entity filter. Score each variant.
Compose a Pulse metric definition from the user's business question. Return: metric name, measure, dimensions, filters, insight cadence, and narrative template.
Classify this thread as: incident | question | request | noise. If incident, extract severity, service, first-responder handle. Reply with an ack template.
From this API contract + business rule, draft a Mule flow XML with sensible error handlers, DataWeave transforms, and idempotency keys.
Draft an empathetic reply to this case. Keep under 120 words, cite the KB article, avoid over-promising SLAs, and end with one clear next step.
Summarise the journey performance in 5 bullets: reach, engagement, cost per outcome, top segment, next-best test. Include one contrarian hypothesis.
Extract from this contract: term length, auto-renew, opt-out window, price escalator, exclusivity, uncapped liability. Flag anything non-standard.
Produce 3 product descriptions in the brand voice. Include: hero line, benefits, materials, care. Emit as JSON for PIM ingestion.
Answer executive questions about Scope 1/2/3 emissions grounded on the last 4 quarterly reports. Cite paragraph and page.
Answer the member's question using only the knowledge base. If not found, hand off to a human with a summarised context.