SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Use [AUTOAUTHOR_*] to generate quiz questions at build time

Tag a step in your rules.vr with [AUTOAUTHOR_N] and the build pipeline writes the quiz for you, with a per-tutorial cache so subsequent builds cost zero LLM calls.

Overview

🎓 intermediate 15 min. IntermediateSAP Business Technology Platform

You will learn

  • What [AUTOAUTHOR_*] does and when it runs
  • The directive variants and their precedence
  • How the build cap and per-tutorial cache protect your spend
  • When to keep AI-generated questions and when to hand-author
Thomas Jung T Thomas Jung June 19, 2026
Created by June 18, 2026
Contributors

Prerequisites

Prerequisites

  • A tutorial repo under sap-tutorials with a matching *-Contribution sibling
  • A platform admin who can set AI_AUTHOR_ENABLED=true on the build runner
  • Familiarity with the basic rules.vr format

Steps

Step 1 What [AUTOAUTHOR_*] does

Single-sentence summary: the build pipeline calls an LLM with the step body and writes a ValidationQuestion for you.

This is build-time, not runtime. CODECHECK and the free-text grader (Tutorials 1 and 2) run when the reader submits an answer; AUTOAUTHOR runs when the build fetches your tutorial. By the time a reader sees the page, the question is already a regular [VALIDATE_N] block — they can’t tell whether you wrote it or the LLM did.

Hand-authored [VALIDATE_N] blocks always win. AUTOAUTHOR only fills steps that don’t already have a hand-authored question. That means you can sprinkle AUTOAUTHOR across a tutorial to get coverage, then hand-author the specific steps where you want a particular question, and the two coexist without conflict.

Step 2 The directive forms
+
Step 3 The build cap and cache
+
Step 4 Demo: an auto-authored multiple-choice question
+
Step 5 Demo: an auto-authored free-text question
+
Step 6 When to use AUTOAUTHOR vs hand-authored
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 6
1. What [AUTOAUTHOR_*] does 2. The directive forms 3. The build cap and cache 4. Demo: an auto-authored multiple-choice question 5. Demo: an auto-authored free-text question 6. When to use AUTOAUTHOR vs hand-authored

Learn more →