From Reverse Prompt Engineering to Context Engineering: Control and Optimize Generative AI Outputs

  • Presentation
  • AI and New Technologies in TC
  • 22. April
  • 02:00 PM (CEST) - 02:40 PM (CEST)
  • finished
  •  Marianne Macgregor

    Marianne Macgregor

    • SAP SE

Contents

Generative AI is only as good as the control layer around it. This session explores two complementary strategies for predictable, high-quality outputs: Reverse Prompt Engineering (RPE) and Context Engineering.

RPE helps you analyze model outputs to uncover hidden instructions, constraints, and biases, turning “mystery behavior” into actionable insights.

Context Engineering goes beyond prompt tweaking to design the entire information environment: durable system instructions, structured outputs (schemas, templates), grounding with authoritative sources, workflow orchestration, and memory management.

I’ll walk through examples and share ready-to-use templates for system prompts, schema patterns, and context injection.

Takeaways

  • Understand and apply the Context Engineering controls
  • Use HEAT, structure, and grounding (HEAT-S/G) to evaluate AI outputs.
  • Apply Reverse Prompt Engineering to analyze and improve outputs.
  • Implement ready-to-use templates

Prior knowledge

a basic understanding of generative AI and prompt engineering would be beneficial but is not absolutely necessary.

Speaker

 Marianne Macgregor

Marianne Macgregor

  • SAP SE
Biography

Marianne Macgregor is a user assistance development architect and certified conversation designer at SAP, with over 20 years of experience helping users navigate complex enterprise software. She specializes in generative AI, focusing on prompt engineering training and support, and is a co-creator of SAP’s internal promptathons – collaborative learning events designed to explore the potential of generative AI. Marianne is passionate about making emerging technologies approachable, practical, and impactful through hands-on learning and clear communication. Marianne regularly speaks at global conferences on these topics.