This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
LearnWorlds Course Launch: Automate Student Emails and Payment Workflows with n8n
Launching an online course is exciting — but the administrative work that follows can quickly become overwhelming. Every new enrollment triggers a chain of tasks: sending a welcome email, confirming the payment, granting access, updating a spreadsheet, and maybe notifying your team. Done manually, this eats hours every week. Done with automation, it runs while you sleep.
This guide shows you how to connect LearnWorlds and n8n to build reliable, event-driven workflows that handle student emails and payment confirmations automatically. If you haven't set up your course platform yet, LearnWorlds gives you everything you need to create and sell online courses — including a built-in website, payment processing, and community features — in one place.
Why Automate LearnWorlds Workflows?
LearnWorlds is a powerful platform for course creators, but like most LMS tools it expects you to handle post-purchase communication and CRM updates yourself. That means copy-pasting student data, sending emails one by one, and manually reconciling payments. Automation removes that friction entirely.
- Consistency: Every student gets the same high-quality onboarding experience regardless of when they sign up.
- Speed: Welcome emails arrive within seconds of enrollment, not hours later.
- Scalability: Your workflow handles 1 enrollment or 1,000 with equal effort.
- Accuracy: No missed steps, no typos from manual copy-paste.
Tools You Need
- LearnWorlds — your course platform (webhooks available on Pro Trainer plan and above)
- n8n — open-source workflow automation with 400+ integrations; self-host for free or use n8n Cloud
- An email provider connected to n8n (Gmail, SMTP, SendGrid, etc.)
- Optional: Google Sheets, Airtable, or a CRM for student records
Step 1: Enable LearnWorlds Webhooks
LearnWorlds sends real-time event data via webhooks whenever something important happens — a student enrolls, a payment is completed, or a course is finished. To set this up:
- Go to your LearnWorlds admin dashboard and navigate to Settings → Integrations → Webhooks.
- Click Add Webhook.
- Choose the events you want to listen for. For this workflow, select user.enrolled and payment.completed.
- Paste your n8n Webhook URL as the endpoint (you'll create this in the next step).
- Save and activate the webhook.
Step 2: Create the n8n Webhook Trigger
In n8n, start a new workflow and add a Webhook node as the trigger.
- Set the method to POST.
- Copy the generated webhook URL and paste it into LearnWorlds (Step 1, Step 4).
- Use the Test Webhook button in n8n, then trigger a test event from LearnWorlds to confirm the connection and inspect the incoming JSON payload.
The payload will include fields like student_email, student_name, course_title, payment_amount, and event_type. Note these field names — you'll reference them throughout the workflow.
Step 3: Route Events with a Switch Node
Because you're listening for multiple event types, add a Switch node after the webhook trigger to route each event to the correct branch:
- Branch 1:
event_typeequalsuser.enrolled→ send welcome email - Branch 2:
event_typeequalspayment.completed→ send payment confirmation email - Branch 3 (optional): Any other event → log to Google Sheets for review
Step 4: Build the Welcome Email Branch
On the enrollment branch, add an email node (e.g. Gmail, Send Email via SMTP, or SendGrid):
- To:
{{ $json.student_email }} - Subject:
Welcome to {{ $json.course_title }}, {{ $json.student_name }}! - Body: Write a warm, branded welcome message. Include the course access link, start instructions, and your support contact. Use n8n expressions to personalise every field dynamically.
After the email node, optionally add a Google Sheets node to append the new student's details to a tracking spreadsheet, or a Slack node to notify your team in a dedicated channel.
Step 5: Build the Payment Confirmation Branch
On the payment branch, configure a second email node:
- To:
{{ $json.student_email }} - Subject:
Payment received — {{ $json.course_title }} - Body: Confirm the amount paid, include an order reference, and remind the student where to access the course. Add a note about your refund policy if applicable.
You can extend this branch to update a CRM record, trigger a Stripe invoice lookup, or add the student to an email sequence in your marketing tool.
Step 6: Handle Errors Gracefully
Production workflows need error handling. In n8n:
- Enable Retry on Fail on critical nodes like the email sender.
- Add an Error Trigger workflow that sends you an alert email or Slack message if any node fails.
- Use the IF node to check that required fields (like
student_email) are not empty before attempting to send.
Step 7: Test End-to-End and Activate
Before going live:
- Enroll a test account in your LearnWorlds course and confirm the welcome email arrives with correct personalisation.
- Use LearnWorlds' test payment mode to trigger a
payment.completedevent and verify the confirmation email. - Check your Google Sheets log (if used) to ensure rows are appended correctly.
- Once satisfied, switch the n8n workflow from Test to Active.
Ideas to Extend the Workflow
- Course completion emails: Listen for the
course.completedevent and send a congratulations email with a certificate download link. - Re-engagement sequences: If a student hasn't logged in for 7 days, trigger a nudge email (combine n8n with a scheduled trigger and a LearnWorlds API call).
- Upsell automation: After course completion, automatically send an email promoting your next course.
- Payment failure handling: Listen for failed payment events and send a friendly follow-up with a retry link.
Summary
With LearnWorlds webhooks and n8n, you can build a fully automated student communication system in an afternoon. Welcome emails, payment confirmations, team notifications, and CRM updates all happen instantly and consistently — without you lifting a finger after setup. The workflow scales with your course business and can be extended with new branches any time a new use case arises.
If you're ready to launch your course and want your student emails and payment workflows to run on autopilot, you can build and host those automations via n8n — including 400+ integrations and a free self-hosting option — to free up your time for creating great content.