Learn how to automate sending WhatsApp messages to students upon course enrollment using Pabbly Connect, Razorpay, and Learnyst in this detailed tutorial. Follow this definitive guide to creating powerful automated workflows with straightforward, efficiency-focused solutions that save valuable time.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for WhatsApp Automation

To automate WhatsApp messages for students enrolling in Learnyst courses, we will use Pabbly Connect to integrate Razorpay and WhatsApp Cloud API. Start by visiting the Pabbly Connect website and signing up or logging in if you already have an account.

After signing in, navigate to the dashboard where you can create a new workflow. Click on the ‘Create Workflow’ button and name your workflow, for example, ‘WhatsApp message to students on Learnyst course enrollment’. This setup will ensure that every time a payment is made through Razorpay, a WhatsApp message is sent to the student.


2. Configuring the Trigger Event in Pabbly Connect

In this step, we will set Razorpay as the trigger application in Pabbly Connect. Select ‘Razorpay’ as your trigger application and choose the event as ‘Payment Captured’. This event will initiate the workflow each time a payment is successfully processed.

  • Select Razorpay as the trigger application.
  • Choose ‘Payment Captured’ as the trigger event.
  • Copy the webhook URL provided by Pabbly Connect.

Once you have copied the webhook URL, you need to set it up in your Razorpay account. This configuration allows Pabbly Connect to receive data from Razorpay whenever a payment is made.


3. Setting Up Razorpay Webhook

Next, log in to your Razorpay account and navigate to the settings. Under the Webhooks section, click on ‘Add New Webhook’. Here, paste the webhook URL you copied from Pabbly Connect and select ‘Payment Captured’ as the active event. This will ensure that Razorpay sends the payment data to Pabbly Connect.

After saving the webhook, return to Pabbly Connect and send a test request. This step is crucial to verify that the integration is working correctly and that data is being captured successfully from Razorpay.


4. Integrating Learnyst with Pabbly Connect

Now that Razorpay is set up, the next step is to integrate Learnyst with Pabbly Connect. Add an action step and select Learnyst as the action application. You will need to connect your Learnyst account by entering the required API key and School ID, which can be found in your Learnyst dashboard under the marketing integrations section.

  • Select Learnyst as the action application.
  • Enter your API key and School ID to connect.
  • Map the email and name fields from Razorpay to Learnyst.

This action will automatically enroll the student in the respective course once their payment is confirmed via Razorpay. Ensure that all fields are correctly mapped to avoid any errors during the integration.


5. Sending WhatsApp Notifications via Pabbly Connect

The final step is to send a WhatsApp message to the student using the WhatsApp Cloud API integrated through Pabbly Connect. Add another action step and select WhatsApp Cloud API as the application. Choose the action event as ‘Send Template Message’. You will need to connect your WhatsApp account by providing the necessary credentials such as the temporary access token, phone number ID, and business account ID.

Once connected, map the fields for the WhatsApp message. Select the template you created for course enrollment notifications and ensure to include the student’s name and course details. This will personalize the message sent to each student.


Conclusion

This tutorial demonstrated how to use Pabbly Connect to automate sending WhatsApp messages to students upon course enrollment through Razorpay and Learnyst. By following these steps, you can streamline your course enrollment process and enhance communication with your students effectively.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.