Prompt Engineering for Consultants: The 10 Patterns
As of 2026-11-05
On a client project a prompt is a work product with an input, an output format, an owner and a test. This course gives the SAP analytics consultant ten reusable patterns — Summarise, Extract, Rewrite, Critique, Role-play, Chain, Few-shot, Structured output, Constrain, Verify — each with a sample prompt, its typical failure and the check that catches it, built on six slots (role, task, context, constraints, format, examples). You run one pattern through the orchestration service of the generative AI hub in SAP AI Core with data masking and temperature 0, then chain Extract, Verify, Structured output and Chain on a 58-page RFP for a BW 7.5 to Datasphere migration, with a verbatim quote check that removes fabricated items. Deliverables: a versioned prompt, a JSON validator and a golden set of past documents with recall, fabrication and format thresholds.
What you will learn
- Write a prompt with the six slots (role, task, context, constraints, format, examples) for an RFP extraction and store it as a versioned team asset with sample input and expected output
- Apply each of the ten patterns to an SAP analytics document and name, for each, the failure mode and the check that catches it
- Configure a prompt template with data masking in SAP AI Launchpad (Generative AI Hub, Orchestration) and compare the masked request with the original text
- Validate a model's JSON output in code, rejecting any item whose verbatim quote is not a substring of the source document
- Build a golden set of 10 documents and compute recall, fabrication rate and format validity before promising a client a result
- Choose between consumer chat, enterprise model tenant and orchestration service for a given text, with the client-data rule as the deciding criterion
Prompts are work products, not chat messages
On a client project a prompt is a work product: it has an input, a required output format, an owner and a test. A prompt you cannot rerun next week on a new document and get the same shape of answer is a one-off, not an asset; store each one as rfp-extract-v1.txt with its sample input and expected output next to it. This module gives you ten patterns that cover most of what an SAP analytics consultant does with a language model (summarise a specification, extract from an RFP, rewrite for a CFO, critique a design), and for each one the failure mode and the check that catches it. It ends with the part most prompt guides skip: which execution path you may use when the text contains client data.
Every prompt in this module has six slots. Fill them in this order (the table gives an RFP example per slot; keep the slot names as headings inside the prompt, for example Role: and Constraints:) and most weak outputs disappear:
Prerequisites
- For the hands-on: an SAP AI Core instance with the extended service plan, a resource group and a deployed orchestration deployment, reached through SAP AI Launchpad
Outcomes
- Write a prompt with the six slots — role, task, context, constraints, format, examples — and store it as a versioned file with sample input and expected output.
- Choose and combine the ten patterns for a task, and apply the check that catches each pattern's typical failure.
- Run an Extract prompt through the orchestration service with data masking and temperature 0, and use the masked request as evidence for the client.
- Chain Extract, Verify, Structured output and Chain on an RFP, with a verbatim quote check and a JSON validator.
- Build a golden set of past documents and measure recall, fabrication rate, format validity and review time.
Full module with the Consultant plan — €19.90/month. The full module adds: the decision framework · the end-to-end scenario walkthrough · the KPI scorecard · the anti-patterns · the code blocks · the knowledge check · the diagrams.