Course Management
Persona
Role: Registrar Systems Administrator at a mid-sized university.
You maintain the systems that power course registration, enrollment management, and grade recording for 8,000 students across six academic departments. The current system is a decades-old platform that requires vendor support for even minor catalog changes. Faculty submit grades via email, and enrollment conflicts are resolved manually.
Business Problem
Course catalog updates require a multi-week change request process with the legacy vendor. Faculty have no self-service access to enrollment rosters, and grade submission is a manual data entry process that introduces transcription errors. Students cannot see real-time enrollment availability. You need:
- A self-managed course catalog with department, credits, and instructor metadata.
- Enrollment tracking with semester-based status management.
- Grade recording linked to specific enrollments with feedback support.
Four-Step Application
This scenario works best as a four-step, human-in-the-loop application. The existing object model already gives this scenario a strong delivery backbone through Course, Enrollment, and Grade.
- Mission metric focus: faster decisions, better learner experience, and stronger enrollment or completion outcomes.
- Human + AI pattern: Each step combines structured workflow data with chat assistance, background generation, document understanding, and accessible interaction patterns when they improve the experience.
Step 1. Capture demand and context
- Goal: Make it easy for the user to start the Course Management journey with complete, trusted context.
- Required data: Course context such as the core workflow data.
- AI support: Use chat to guide intake, generate clearer prompts, create accessible summaries, and assist with voice or vision-led capture when a form alone is not the best experience. EAI can support structured intake, chat workflows, and document-centred capture today; richer native multimodal capture may still need workflow extensions or connected services.
- Business impact: Improve completion rate, reduce first-touch effort, and raise customer or staff confidence in the UX from the very first interaction.
- EAI delivery: Model the intake as tenant-isolated object types and resources, then use actions, chat workflows, and document indexing or classification to keep the initial record complete and usable.
Step 2. Prepare the decision
- Goal: Turn the captured context into the next best action for Course Management without forcing the human reviewer to assemble the case manually.
- Required data: Course state and history.
- AI support: Run background summarisation, extraction, classification, recommendation drafting, and answer generation so a reviewer sees a prepared case instead of raw fragments. EAI delivers the structured records and AI workflow hooks for this today; specialised scoring engines, external rules, or advanced reasoning controls may still need integration work.
- Business impact: Reduce cycle time, improve quality and consistency, and protect the mission-critical metric before the case moves into execution.
- EAI delivery: Link records across the scenario, persist decision state as resources, and use workflow actions plus chat assistance to keep humans in control while AI prepares the work.
Step 3. Execute and collaborate
- Goal: Coordinate the actual work, handoffs, approvals, and user updates needed to deliver the service or outcome.
- Required data: Enrollment execution state.
- AI support: Draft replies, produce work packets, monitor exceptions in the background, and surface the next action for each operator. EAI can orchestrate tenant-isolated records, actions, chats, and document workflows today; deeper system-to-system automation may require additional connectors or workflow capability.
- Business impact: Increase operator productivity, reduce rework across handoffs, and improve service consistency across the application journey.
- EAI delivery: Use linked object types, actions, resource updates, and workflow-triggered AI assistance so the team can execute in one model instead of splitting work across disconnected tools.
Step 4. Resolve, explain, and improve
- Goal: Close the loop with a clear outcome, an understandable explanation, and feedback that improves the next case.
- Required data: final status, outcome, audit history, and follow-up signals across Course, Enrollment, and Grade.
- AI support: Generate outcome summaries, customer-friendly answers, compliance-ready notes, management insights, and accessible follow-up content. EAI can store outcome records and support answer generation today, while richer proactive agents, advanced analytics, or channel-specific accessibility features may need additional product capability.
- Business impact: Increase trust, quality, and measurable business value through faster decisions, better learner experience, and stronger enrollment or completion outcomes.
- EAI delivery: Keep the full audit trail in structured resources, use AI workflows to explain outcomes, and feed the resulting signals into future product, service, and operational improvement work.
EAI Platform Support By Step
EAI provides the safe service boundary for Course Management through Object Types, tenant-scoped resources, document processing, chat workflows, and CLI verification. For this scenario, the main records are Course, Enrollment, and Grade.
| Process step | What EAI provides | Calling pattern |
|---|---|---|
| Step 1. Capture demand and context | Tenant-scoped intake resources for Course context such as the core workflow data. Object Type validation, starter forms, optional document intake, and chat-guided capture keep the first record complete. | Define fields in src/eai.config/object-types.ts, run eai types validate and eai types seed, create initial Course records with useResources('Course') or eai resources create Course, and keep browser calls behind /api/eai/.... |
| Step 2. Prepare the decision | Linked resource queries over Course state and history. Search, schema checks, document classification or RAG indexing, and chat summaries turn raw context into a prepared decision. | Use useResources('Course') list/query/search patterns, verify shape with eai resources schema, use useDocuments().upload/classify/ragIndex, eai docs upload, eai docs classify, and eai docs index where supporting material exists, and send decision-support prompts through useChat(workflowId, 'chat') or eai chat send. |
| Step 3. Execute and collaborate | Resource updates and actions for Enrollment execution state. Status changes, assignments, notes, generated work packets, and chat support keep humans in control during execution. | Model actions in the Object Type code, call client.resources.executeAction(type, id, action) or the app hook equivalent, update records through the app service layer, and verify with eai resources get/list/query. |
| Step 4. Resolve, explain, and improve | Outcome resources for final status, outcome, audit history, and follow-up signals across Course, Enrollment, and Grade. Audit-friendly links, indexed final documents, reporting snapshots, and answer generation make the result explainable and reusable. | Persist outcomes as resources, index final material with eai docs index or useDocuments().ragIndex, send explanation prompts with useChat or eai chat stream, and use eai resources aggregate/search for reporting checks. |
Prompt, Code, And Service Pattern Mapping
The Object Type code example on this page is the implementation contract for the EAI platform services. eai-gofer should read that code as the source of truth for which resource, document, and chat calls belong in the app.
Use this prompt shape when asking eai-gofer or another coding agent to implement the scenario:
Use the EAI App Template. Model Course Management with Object Types for Course, Enrollment, Grade. Use useResources for records and actions, useDocuments for uploads/classification/RAG where documents appear, useChat for workflow assistance, and verify with eai types/resources/docs/chat commands. Use eai publicapi only when no named command covers the required platform call.
| Scenario artifact | How it maps to EAI service calls |
|---|---|
| Four-step process | Step 1 becomes resource creation, Step 2 becomes resource query/search plus optional document or chat preparation, Step 3 becomes resource update/action calls, and Step 4 becomes outcome persistence plus explanation/reporting calls. |
| Object Type definitions | eai types validate, eai types seed, and eai resources schema make the model available and checkable before UI work starts. |
| Properties and indexes | Fields become useResources payloads, filters, list views, and eai resources create/list/query/search checks. Indexed fields should support lookup and triage, not duplicate canonical records. |
| Links between Object Types | Relationships become linked-resource UI, timeline context, and audit trails that app code loads through resource queries rather than separate bespoke stores. |
| Actions and status fields | Workflow buttons and operator transitions call resource action/update helpers, then verify state with eai resources get/list/query. |
| Document and chat prompts | Prompts should call the platform documents and chat patterns: useDocuments().upload/classify/ragIndex, eai docs upload, eai docs classify, and eai docs index for documents, and useChat, eai chat send, or eai chat stream for conversational assistance. |
Object Types
| Name | Key Properties | Links | Actions |
|---|---|---|---|
| Course | name, code, department, credits, instructor | has many Enrollments | create, update, archive |
| Enrollment | student, course, semester, status | belongs to Course, has many Grades | enroll, drop, complete |
| Grade | enrollment, assignment, score, feedback | belongs to Enrollment | submit, update, finalize |
CLI Workflow
-
Scaffold the app
eai init course-management -
Authenticate and pull environment
eai logineai env pull --include-secretsIf you are an external developer, see [Configuration](/docs/configuration) for login and local environment setup. -
Define Object Types
Add Course, Enrollment, and Grade to
src/eai.config/object-types.ts. -
Validate and seed
eai types validateeai types seedTenant: course-management✔ Course — 5 props, 1 link, 3 actions✔ Enrollment — 4 props, 2 links, 3 actions✔ Grade — 4 props, 1 link, 3 actions✔ All Object Types are valid -
Create a course
eai resources create Course \--data '{"name": "Introduction to Data Science", "code": "CS-201", "department": "computer-science", "credits": 3, "instructor": "Dr. Sarah Chen"}' -
Enroll a student
eai resources create Enrollment \--data '{"student": "alex.rivera@university.edu", "course": "CS-201", "semester": "Fall 2026", "status": "enrolled"}' -
List enrollments for a semester
eai resources list Enrollment --filter 'semester=Fall 2026' -
Start local development
eai dev
Code Example
// src/eai.config/object-types.ts
export const objectTypes = {
'course-management': [
{
name: 'Course',
displayName: 'Course',
description: 'An academic course offered by a department with credit hours and instructor assignment',
properties: [
{ name: 'name', type: 'text' as const, required: true, indexed: true },
{ name: 'code', type: 'text' as const, required: true, indexed: true },
{ name: 'department', type: 'select' as const, required: true,
options: [
{ label: 'Computer Science', value: 'computer-science' },
{ label: 'Mathematics', value: 'mathematics' },
{ label: 'English', value: 'english' },
{ label: 'Biology', value: 'biology' },
{ label: 'Business', value: 'business' },
{ label: 'Engineering', value: 'engineering' },
],
},
{ name: 'credits', type: 'number' as const, required: true },
{ name: 'instructor', type: 'text' as const, required: true },
],
linkTypes: [
{ name: 'enrollments', target: 'Enrollment', cardinality: 'many' as const },
],
actions: [
{ name: 'create', displayName: 'Create Course' },
{ name: 'update', displayName: 'Update Course' },
{ name: 'archive', displayName: 'Archive Course' },
],
status: 'published' as const,
},
{
name: 'Enrollment',
displayName: 'Enrollment',
description: 'A student enrollment in a specific course for a given semester',
properties: [
{ name: 'student', type: 'text' as const, required: true, indexed: true },
{ name: 'course', type: 'text' as const, required: true },
{ name: 'semester', type: 'text' as const, required: true, indexed: true },
{ name: 'status', type: 'select' as const, required: true, defaultValue: 'enrolled',
options: [
{ label: 'Enrolled', value: 'enrolled' },
{ label: 'Waitlisted', value: 'waitlisted' },
{ label: 'Dropped', value: 'dropped' },
{ label: 'Completed', value: 'completed' },
{ label: 'Withdrawn', value: 'withdrawn' },
],
},
],
linkTypes: [
{ name: 'course', target: 'Course', cardinality: 'one' as const },
{ name: 'grades', target: 'Grade', cardinality: 'many' as const },
],
actions: [
{ name: 'enroll', displayName: 'Enroll Student' },
{ name: 'drop', displayName: 'Drop Course' },
{ name: 'complete', displayName: 'Mark Complete' },
],
status: 'published' as const,
},
{
name: 'Grade',
displayName: 'Grade',
description: 'A grade recorded for a specific assignment within an enrollment',
properties: [
{ name: 'enrollment', type: 'text' as const, required: true },
{ name: 'assignment', type: 'text' as const, required: true },
{ name: 'score', type: 'number' as const, required: true },
{ name: 'feedback', type: 'text' as const, required: false },
],
linkTypes: [
{ name: 'enrollment', target: 'Enrollment', cardinality: 'one' as const },
],
actions: [
{ name: 'submit', displayName: 'Submit Grade' },
{ name: 'update', displayName: 'Update Grade' },
{ name: 'finalize', displayName: 'Finalize Grade' },
],
status: 'published' as const,
},
],
};
Key Takeaways
- Self-managed course catalog eliminates vendor dependency. Adding, updating, or archiving courses is a direct CLI operation, not a multi-week vendor change request.
- Semester-scoped enrollments prevent data conflicts. Tracking enrollments by semester ensures that historical records remain intact while new terms are managed independently.
- Assignment-level grade recording reduces errors. Capturing grades per assignment with feedback fields replaces bulk email submissions and manual data entry.
- Department-based filtering supports academic reporting. The department property on Courses enables registrar reports broken down by academic unit for accreditation and planning.