Connect LearnDash with N8N

Hi everyone!

I’m trying to build a workflow in N8n where, after a successful WooCommerce transaction, the user is automatically enrolled in a LearnDash course on my WordPress site.

The WooCommerce order part is already automated and working fine — the user gets created in WordPress via the WooCommerce plugin — but I can’t figure out how to connect with LearnDash to assign the specific course.

Has anyone managed to trigger course enrollment via N8n?

Any plugin, webhook, API trick or workaround would be super helpful.

Thanks in advance! :folded_hands:

Hey @thepharaoh hope all is well.
If you were to do it manually, how would you do it?

Hi @jabbson Once the purchase is done, I go to WP > Learn Dash > Enroll in course and select the programs I want them to have access to

You can make a HTTP Request to LearnDash to add users to courses.
Here’s the documentation:

Would they need access to different courses depending on their purchase?

1 Like

Hi @shyguy ! Yes, depending on the purchase the courses are different