Teachable webhook 能做什么?

Hi everyone,

I’m new to Discourse: it looks fantastic. I want to create a forum for an online course I’m running on Teachable. Can I do something clever with the webhook to automatically register my students for the forum, or something like that?

PS I’ve created webhooks before, with Zapier, but overall I am a real beginner with them. I read the page about webhooks and creating a bot in git, but I didn’t really understand how to relate it to Teachable.

If you want to have users from Teachable in Discourse, you’re best off just implementing single sign-on (SSO), which Discourse is very strong on. There are a variety of protocols for it, you’d need to dig into Teachable to see what it’s capable of.

We have a Teachable endpoint on a plugin available at our hosting, here is how to set it up:

@mpalmer Teachable is not-so-strong on SSO, so we currently use the Teachable webhooks to invite people over to Discourse.

@danielw I’m curious if you found a solution that works for you. I’m asking because I will have to do same thing soon…

Do you have a similar plugin for Thinkific?

No - we could develop one as a bespoke project.
It would be a bit limited though since Thinkific lacks webhooks for some events, like customer cancellation.
If you’re interested, please send me a PM.

We have now added support for the New Enrollment event, which can be set up in the same way as described on our site.

The New Enrollment event does need some additional configuration on Discourse side:

  • You’ll need to create a category with the same name as your course;
  • don’t forget to edit the welcome topic for the category!
  • then you’ll need to create a group with the same (full) name as your course
  • go to the category security permissions and add that group with create/reply/see permissions (and you will probably want to remove the permissions for the ‘everyone’ group).

When a user enrolls in your course, they will be added to the group (which will grant them access to the category), and invited to the welcome topic of the category.

You can use the New Enrollment webhook next to the New User webhook, but you can also choose to use the New Enrollment webhook only.

有人成功找到解决 Teachable/Discourse SSO 问题或自动注册用户的方法吗?

Communiteq(原 DiscourseHosting)的解决方案听起来可行,但我已经托管在其他地方了。任何帮助都将不胜感激。

实际上,它的表现相当不错,而且还能实现嵌入功能。
我们可以协助您迁移 :slight_smile:

:grin: 我会与团队沟通并考虑此事。为明确起见,该插件是仅用于注册用户和邀请用户,还是会在论坛嵌入时保持用户登录状态?

它不会保持用户登录状态(不会比 Discourse 本身做得更好)。不幸的是,Teachable 不支持该功能。

该插件还会将用户分配到与特定课程对应的群组,因此您可以为不同课程设置不同的分类。

有没有办法只使用这个 webhook 将人员添加到群组中?我们有来自不同课程的人员需要归入同一个类别。

我们想利用这个 webhook 将人员添加到群组,后续操作将由我们自行处理。

是否有实现方法?