Courses

Course content: how to add modules and lessons

What students see is Module → Lesson: where to build it, how to upload video, why you must publish, and who can watch

On this page

Once a student has paid, what they see under "My courses" is a Module → Lesson structure:


Your course (attached to a community)
 ├ Module 1  Getting started
 │   ├ Lesson 1  Text & images
 │   └ Lesson 2  Video
 └ Module 2  Hands-on practice

This article covers how to build this structure, how to upload video, why you must remember to publish, and who gets to watch.

Where to find it

  • Admin → Business → Courses → "Video courses" tab. This is where you build the modules and lessons students actually see.
  • The same menu also has "Course catalogue" and "Course quizzes." "Course catalogue" is a separate, older set of course material that does not control whether students can watch — don't build your modules and lessons there.
  • Where students watch on the storefront: "Account → My courses" (/account?tab=courses), and the "Courses" panel on the left side of community pages.
  • Same menu location on mobile.

You need a community first

Every course is attached to a community (the community is this course's circle of students). If you don't have one yet, the "Video courses" page will prompt "No community yet — a course needs to be attached to a community first," with a "Create a community" button. For how to do that, see "Community: creating one, who can join, posting and moderation."

Then make the product you're selling point to that community: Admin → Business → Products & Pricing, edit the product, and fill in its "Linked community slug" with the community's slug. Only customers who buy this product can watch the course under this community.

Adding modules and lessons in the admin (step by step)

  • Admin → Business → Courses → "Video courses," and under "Which community is this course attached to:" pick the community.
  • "Modules" on the left are the chapters — click "+ New" to add one: fill in "Title (Chinese)" and "Title (English)" (both required), a description is optional, turn on the "Publish" toggle, then "Save."
  • Click into that module, then click "+ New lesson" under "Lessons" on the right:
  • "Title (Chinese)" and "Title (English)" are both required;
  • "Video": click "📹 Upload video" — supports MP4, WebM, MOV, up to 500MB, with a progress bar while it uploads;
  • "Body (Markdown)": the written explanation, examples, or extra material under the video; for a text-only lesson, this is all you fill in;
  • Turn on the "Publish" toggle, then "Save."
  • In the lesson list, a lesson with a video already uploaded shows "📹 Uploaded"; a video-type lesson that's missing its video shows "⚠ Not uploaded."

Deleting a module warns you "All lessons in it will be deleted too."

Let the AI add it for you

Tell your AI something like "Add a module to the Bootcamp course with these three lessons underneath: ..." and it will use these tools:

  • get_course_content: view the current outline by community slug — unpublished modules are listed too, with a note calling that out.
  • upsert_course_module: add or edit a module (creating one needs a community slug and a Chinese module title; the English title can be left out).
  • upsert_lesson: add or edit a lesson. Types are text (written content goes in bodyMd), video, and quiz. For a video lesson, this just creates the lesson shell first.
  • set_lesson_video: attach a video to a video-type lesson. Give it a video URL (mp4/webm, 100MB or smaller) and the system downloads it and stores it on your site. For larger videos, upload directly in the admin's "Video courses" screen.
  • delete_lesson: delete a lesson, along with every student's learning progress on that lesson — this cannot be undone.

These tools aren't in the AI's default toolset — they live in the "Courses & Community" group, and the AI will look for them there on its own.

Don't forget to publish

Modules and lessons are unpublished by default — students can't see them. After writing one, go into the admin and turn on the "Publish" toggle for each module and each lesson; or just tell the AI to "publish this module and the lessons under it" (it will pass isPublished:true).

Both the module and the lesson need to be published — only then can students actually see that lesson.

If you sell a course before publishing it, a student who pays lands on an empty course. The site health check specifically looks for this: if a product is linked to a community, but that community has zero published lessons, the health check will flag "customers who buy this will land on a course with nothing to watch."

Who can watch

Only students who bought the product linked to this community, and whose access hasn't expired, can watch the course under this community:

  • Anyone who didn't buy it, bought a different product, has an expired access period, or had access revoked, cannot watch — even if they somehow get hold of the video URL, it won't play.
  • Buying something like a resource pack or a membership that isn't linked to a community won't give access to a course.
  • One thing to watch out for the other way: if a course product has no "Linked community slug" set, anyone who buys it can watch every course on the whole site (this exists for backward compatibility with older sites that only sold one course). If you sell more than one course, make sure every course product has its linked community filled in.
  • Admins and super admins can watch every course.
  • A course listed under "My courses" is clickable; one that isn't listed there isn't accessible — both sides use the same rule.

Note: community membership and access tags only control community posts — they don't control courses. Giving someone a community access tag lets them into the community to read posts, but watching a course still requires valid access through the matching product. To give someone a course for free, use the manual grant (see grant_customer_access in "Customer details and notes").

Who can see posts in a community

  • If a product is linked to this community, or the community has an access tag set → only members can see posts: people who bought the matching product and whose access hasn't expired, people holding the access tag, and community members. Someone who just signed up for free cannot see posts.
  • A community with neither of those set is a public community — any logged-in user can see posts.
  • For more detail see "Community: creating one, who can join, posting and moderation."

Watch out for / FAQ

  • Q: A student says their course is empty? A: First check the site health check for "customers who buy this will land on a course with nothing to watch"; then use get_course_content to see which modules/lessons aren't published; finally confirm the product's "Linked community slug" matches the community the course lives under.
  • Q: A video lesson shows "⚠ Not uploaded"? A: This lesson is set to video type, but no video file has been uploaded yet. In the admin, edit the lesson and click "📹 Upload video," or ask the AI to use set_lesson_video.
  • Q: My video is too big to upload? A: Admin upload supports up to 500MB; the AI's upload tool supports up to 100MB. Compress larger files first.
  • Q: If I delete a lesson, does student progress on it go too? A: If deleted via the AI's delete_lesson, yes — the response tells you how many progress records were removed. If you just don't want people to see it for now, turn off "Publish" instead.
  • Q: Can one course be attached to two communities? A: No — a module is built under a single community. If you need two separate groups of students, create two communities and two products.

Related articles

  • "Community: creating one, who can join, posting and moderation" (community)
  • "Customer details and notes" (customer-notes)
  • "Selling monthly / annual memberships (auto-renewing)" (subscription-products)
  • "Letting AI manage your site: tool list and groups" (mcp-tool-groups)

Download protection + watch stats (#3257)

The video link a student gets carries a play ticket valid for 4 hours, tied to that student while logged in — copying the link to someone else or reusing it hours later won't work (it renews automatically during playback).To see who watched how much, ask your AI "how much of this course have students watched" or "how much has Ann watched"; it uses get_course_watch_stats to show viewers / completions / average % per lesson and that student's overall % for the course (useful for refund decisions).

Last updated: October 19, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy