Learn how to automate sending cancellation emails using Pabbly Connect, Stripe, and Gmail. Follow our step-by-step tutorial to set it up effortlessly. Learn to create powerful connections between your critical applications without requiring specialized programming knowledge or extensive technical background.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Automation

To send an email when a subscription is cancelled, you first need to set up Pabbly Connect. This powerful automation tool allows you to connect various applications seamlessly. Start by signing up for Pabbly Connect and logging into your dashboard.

Once logged in, click on the ‘Create Workflow’ button. Name your workflow, for example, ‘Send Subscription Cancellation Emails’. After naming, click the ‘Create’ button to access the workflow page where you can set up triggers and actions.


2. Configuring the Trigger with Stripe

In this step, you will configure the trigger in Pabbly Connect using Stripe. The trigger event is crucial as it initiates the workflow. Search for ‘Stripe’ in the trigger application section and select it. The trigger event will be ‘Cancel Subscription’.

  • Select Stripe as the trigger application.
  • Choose ‘Cancel Subscription’ as the trigger event.
  • Copy the webhook URL provided by Pabbly Connect.

Next, go to your Stripe dashboard, navigate to the Developers section, and click on Webhooks. Add an endpoint by pasting the copied webhook URL. Select the event ‘customer.subscription.deleted’ to capture subscription cancellations. Click on ‘Add Endpoint’ to finalize the setup.


3. Testing the Stripe Connection

After setting up the webhook, it’s time to test the connection. In Stripe, manually cancel a subscription to trigger the webhook. Go to the Customers section, select a customer, and click on the three dots to find the ‘Cancel Subscription’ option.

Once you cancel the subscription, return to Pabbly Connect to check if the data was captured successfully. You should see the event type as ‘customer.subscription.deleted’ along with the relevant details of the cancellation.


4. Retrieving Customer Details from Stripe

To send an email with the customer’s information, you need to retrieve their details using Pabbly Connect. Add another action step in your workflow and select Stripe again. This time, choose the action event ‘Retrieve Customer by ID’.

  • Connect to Stripe using your API key.
  • Map the Customer ID from the previous step.
  • Click on ‘Save and Send Test Request’ to fetch customer details.

Once the test request is successful, you will receive customer details including their email address and name. This information is essential for sending personalized emails through Gmail.


5. Sending the Cancellation Email via Gmail

Now that you have the customer’s details, it’s time to send the email. Add another action step in Pabbly Connect and select Gmail as the application. Choose the action event ‘Send Email’.

Connect your Gmail account and specify the recipient’s email address using the mapped email from the customer details. Fill in the sender’s name, subject, and email body. Personalize the email content by mapping the customer’s name and course name to make it more engaging.


Conclusion

By following this tutorial, you have successfully set up an automated email system using Pabbly Connect, Stripe, and Gmail to notify customers when their subscriptions are cancelled. This automation enhances customer communication and ensures timely notifications without manual intervention.

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