What can the Teachable webhook do?

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은 이를 지원하지 않습니다.

이 플러그인은 사용자를 특정 코스에 해당하는 그룹에 할당하므로, 코스별로 다른 카테고리를 설정할 수 있습니다.

이 웹훅을 사용하여 사람들을 그룹에 추가만 하는 방법이 있을까요? 서로 다른 과정에 속한 사람들을 동일한 범주에 넣고 싶습니다.

이 웹훅을 이용해 사람들을 그룹에 추가한 후, 나머지 작업은 직접 진행할 계획입니다.

그렇게 할 수 있는 방법이 있을까요??