Skip to main content
Version: Next

CD and DVD Collection: Overview

In this tutorial you design a data model for a CD and DVD collection together with the AI Data Modeler. Instead of creating every entity type by hand as in the manual tutorial, you describe what you need, check the AI's proposal and let it build the model.

The collection contains:

  • CDs and DVDs with title, artist or director, release year and genre,
  • DVD boxes that contain several single DVDs — the hierarchy example of this tutorial,
  • artists who are connected to their CDs,
  • a menu group in the sidebar, created by prompt.

Time: about 45 minutes. You need: access to the menu Administration, a test system, and an AI provider set up for EP (see MeMo and the AI Assistants).

Working With an AI: Results Will Differ​

An AI does not answer the same way twice. Your proposal will use different names, a different order or a different structure than the examples in this tutorial — that is expected. This tutorial therefore does not tell you exactly what you will see. Instead, each step gives you:

ElementPurpose
PromptText you copy into the AI Data Modeler. Adjust it if you like.
CheckWhat the result must contain, no matter how the AI phrases it. Go through the list before you continue.
If notA follow-up prompt that corrects the most common deviations.
Example resultOne possible answer, so you know roughly what to expect. Yours may look different.

Follow these rules — they apply to working with AI in EP in general:

  1. Plan first, then build. Start in Plan mode: the AI only proposes and changes nothing. Switch to Agent mode only when the plan passes the check.
  2. Be specific. Name the entity types, the important properties, the relationships and the technical names you want. The more you leave open, the more the AI decides for you.
  3. One topic per prompt. Ask for the data model first, then for scripts, then for sample data — not everything at once.
  4. Check in EP, not in the chat. After the AI built something, open the entity types in EP and check them there. The chat only tells you what the AI intended.
  5. Correct with follow-up prompts. Don't start over when something is wrong — tell the AI what to change, as precisely as you would tell a colleague.
  6. Keep the conversation. The AI Data Modeler saves your chats on the server. You can come back to them later under Chats.
Use a test system

In Agent mode the AI creates entity types in EP. Entity types that are in use cannot be deleted. Work on a test system, and check the names before you let the AI build.

Steps​

StepWhat you do
Build the CollectionPlan the model, check it, let the AI build it, add the DVD box hierarchy, create sample data, add a menu entry, check everything in EP