CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • System‑prompt and the “role contract” of ChatGPT App

    ChatGPT Apps
    Level 5, Lesson 0
    We examine why the system‑prompt in a ChatGPT App is not “persona and style,” but a behaviour contract: role and boundaries of responsibility, rules for invoking tools, safety and user consent, data minimisation, as well as the practice of versioning prompts in your codebase (down to diff). Using the sample training app GiftGenius, we assemble a complete specification prompt and discuss common mistakes.
    Available
  • Instructions around UX: announcing App, opting out of App, and behavior in the dialog

    ChatGPT Apps
    Level 5, Lesson 1
    We break down how to turn a systemPrompt into a UX contract for ChatGPT Apps: when the assistant should announce launching GiftGenius, when to deliberately not open a UI and answer in text, how to conduct the dialog after a widget (summary + follow-up), and how to honor requests for “no apps.” Plus practical prompt templates, an example call to sendFollowUpMessage, and recommendations on structuring instructions.
    Available
  • The trio of system‑prompt, tool descriptions, and follow‑ups: fighting hallucinations

    ChatGPT Apps
    Level 5, Lesson 2
    We break down a “three‑layer defense” against hallucinations in ChatGPT Apps: global rules (layer 1) via a pseudo‑ system‑prompt, a formal contract at the tool description/ inputSchema level (layer 2), and follow‑up UX patterns for empty/erroneous results (layer 3). Using the GiftGenius catalog as an example, we design a consistent “system ↔ tools ↔ follow‑ups” contract so the model does not invent items, prices, or actions outside the backend’s data.
    Available
  • Use Cases, Jobs-to-be-Done, and the Golden Prompt Set

    ChatGPT Apps
    Level 5, Lesson 3
    In this module, we break down how to describe model behavior for the ChatGPT App through concrete use-cases and JTBD, and then lock in the expected tool-calling decisions via a golden prompt set. Using GiftGenius as an example, you’ll see how to turn a “feature list” into scenarios, scenarios into rules for the system-prompt and tool descriptions, and those rules into a verifiable engineering artifact in the repository (JSONL + a simple API route in Next.js).
    Available
  • From instructions to tool and metadata design: discovery and routing

    ChatGPT Apps
    Level 5, Lesson 4
    In this material, we look at how to turn a good system-prompt into a real working app through solid tool ( tools) and metadata design: how to slice functionality by the “one task — one tool” principle, how to design inputSchema/ outputSchema, how naming and descriptions affect discovery/routing, why annotations like readOnlyHint and destructiveHint are needed, and why all this resembles “Tool Call SEO.”
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym