技能 效率工具 MindTickle培训模块管理

MindTickle培训模块管理

v20260423
mindtickle-hello-world
本示例展示了如何使用MindTickle API进行自动化培训流程管理。用户可以学习如何程序化地创建包含视频和测验的课程模块,将其分配给特定的销售团队并设置截止日期,同时还可以追踪用户的学习进度和整体完成情况,适用于构建企业内部学习系统和自动化员工培训。
获取技能
120 次下载
概览

MindTickle Hello World

Overview

Minimal working examples demonstrating core MindTickle API functionality.

Instructions

Step 1: Create Training Module

const module = await client.modules.create({
  title: 'Q1 Product Update Training',
  type: 'course',
  description: 'Learn about new product features for Q1',
  tags: ['product', 'q1-2026'],
  content: [
    { type: 'video', url: 'https://videos.example.com/q1-update.mp4', title: 'Overview' },
    { type: 'quiz', questions: [
      { text: 'What is the key new feature?', type: 'multiple_choice',
        options: ['Feature A', 'Feature B', 'Feature C'], correct: 0 }
    ]}
  ]
});
console.log(`Module created: ${module.id}`);

Step 2: Assign to Sales Reps

await client.assignments.create({
  module_id: module.id,
  assignees: { type: 'team', team_ids: ['team_sales_west', 'team_sales_east'] },
  due_date: '2026-04-15',
  reminder: { enabled: true, days_before: [7, 3, 1] }
});

Step 3: Track Completion

const progress = await client.analytics.moduleProgress(module.id);
progress.users.forEach(u =>
  console.log(`${u.name}: ${u.completion}% | Score: ${u.quiz_score || 'N/A'}`)
);
console.log(`Overall: ${progress.completion_rate}% complete`);

Error Handling

Error Cause Solution
Auth error Invalid credentials Check MINDTICKLE_API_KEY
Not found Invalid endpoint Verify API URL
Rate limit Too many requests Implement backoff

Resources

Next Steps

See mindtickle-local-dev-loop.

信息
Category 效率工具
Name mindtickle-hello-world
版本 v20260423
大小 1.98KB
更新时间 2026-04-28
语言