← 返回
开发者工具 Key

Ai Course Agent

Auto-generates AI education courses from natural language requests in Chinese. Detects patterns like "帮我生成6年级数学分数乘除法的课程" and calls Edustem API to create and...
Auto-generates AI education courses from natural language requests in Chinese. Detects patterns like "帮我生成6年级数学分数乘除法的课程" and calls Edustem API to create and...
ohano ohano 来源
开发者工具 clawhub v0.2.1 2 版本 99908 Key: 需要
★ 0
Stars
📥 1,086
下载
💾 29
安装
2
版本
#latest

概述

AI Course Agent

OpenClaw Skill for auto-generating AI education courses. Detects natural language course generation requests and calls the Edustem API to create ready-to-use course content.

💳 Billing & Pricing

This skill uses SkillPay for usage-based billing:

  • Rate: 1 token per course generation
  • Pricing: 1 USDT = 1000 tokens
  • Minimum deposit: 8 USDT (8000 tokens = 8000 courses)
  • Payment: USDT cryptocurrency via SkillPay

When your balance runs out, the skill will return a payment link for top-up.

Quick Start

import { isCourseLessonRequest, processUserMessage } from 'ai-course-agent';

// When user sends a message:
const userId = req.user.sub; // Get user ID from your auth system

if (isCourseLessonRequest(userInput)) {
  const response = await processUserMessage(userInput, userId);
  
  // Success:
  // "✅ 成功为6年级数学《分数乘除法》生成课程!\n\n📚 课程链接: https://..."
  
  // Insufficient balance:
  // "❌ 余额不足 (当前: 0 tokens)\n\n💳 请充值后继续使用: https://skillpay.me/..."
}

Configuration

Set environment variables before use:

Edustem API (Required)

export EDUSTEM_USERNAME="your-email@example.com"
export EDUSTEM_PASSWORD="your-password"

SkillPay Billing

No configuration needed. SkillPay credentials are hardcoded in the skill and belong to the skill author. Payments are automatically deducted from your SkillPay balance.

Supported Input Patterns

帮我生成6年级数学分数乘除法的课程
帮我创建一个七年级语文从百草园到三味书屋的课程
帮我制作9年级英语日常会话的课程
生成8年级科学地球和宇宙的课程

Supports both Arabic (6年级) and Chinese (六年级) numerals for grade levels.

Supported Subjects

数学 · 语文 · 英语 · 科学 · 历史 · 地理 · 物理 · 化学 · 生物

Output Format

✅ 成功为6年级数学《分数乘除法》生成课程!

📚 课程链接: https://your-api-host/ai-lesson/{lesson_ref}

API Flow

  1. handleBilling(userId) — Charge user via SkillPay (1 token)
  2. login() — Authenticate and get JWT token
  3. createLessonPlan() — Create lesson plan with metadata
  4. acceptLessonPlan() — Confirm and trigger course generation
  5. Return course URL (or payment link if balance insufficient)

Exports

// Main integration functions
isCourseLessonRequest(message: string): boolean
processUserMessage(userInput: string, userId: string): Promise<string>

// Core functions
generateCourse(request: CourseRequest, userId: string): Promise<GeneratedCourseResponse>
parseCourseRequest(userInput: string): CourseRequest | null

// SkillPay Billing
handleBilling(userId: string): Promise<BillingResult>
chargeUser(userId: string, amount?: number): Promise<ChargeResult>
getBalance(userId: string): Promise<number>
getPaymentLink(userId: string, amount?: number): Promise<string>

// Edustem API (lower level)
login(username, password): Promise<string>
createLessonPlan(token, payload): Promise<CreateLessonPlanResponse>
acceptLessonPlan(token, lessonRef): Promise<AcceptLessonPlanResponse>
generateLessonUrl(lessonRef): string

Tech Stack

TypeScript · Node.js · axios · form-data

版本历史

共 2 个版本

  • v0.2.1 当前
    2026-03-29 09:16 安全
  • v0.1.0
    2026-03-07 01:51

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

suspicious
查看报告

🔗 相关推荐

education

Language Learning Tutor

chipagosfinest
AI语言导师,通过对话、词汇练习、语法课程、抽认卡及沉浸式练习,助您学习任意语言。适用于学习新语言、练词汇、学语法、翻译、会话练习、旅行准备、习语俚语或改善发音。支持包括中、英、日、韩、法、德、西等在内的100多种语言。
★ 26 📥 8,769
education

explain-code

edwininau
用可视化图表和类比解释代码。在解释代码如何工作、教授代码库或用户询问如何工作时使用
★ 5 📥 8,861
education

Interview Simulator

wscats
模拟各类职位和经验水平的面试,提供定制化的技术、行为及案例问题,并给予详细反馈与评分。
★ 23 📥 21,900