Learn how to automate sending Telegram chat invite links for Stripe subscriptions using Pabbly Connect. Follow our detailed tutorial for seamless integration. Implement the precise methodologies leading organizations use to automate repetitive tasks, illustrated with practical examples designed for immediate application.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Stripe and Telegram Integration

To start the automation process, you need to access Pabbly Connect. This platform will facilitate the integration between Stripe, Telegram, and Gmail. Begin by signing up for a free account and logging into the dashboard.

Once logged in, create a new workflow by clicking on the ‘Create Workflow’ button. Name your workflow, for example, ‘Stripe to Telegram to Gmail’. Select the appropriate folder for your Pabbly Connect account and click on ‘Create’. This sets up the foundation for your automation.


2. Connecting Stripe to Pabbly Connect

For the first step in your workflow, connect your Stripe account to Pabbly Connect. In the trigger section, select Stripe as the app and choose the trigger event as ‘New Subscription’. Pabbly Connect will provide you with a webhook URL to link with your Stripe account.

  • Copy the webhook URL from Pabbly Connect.
  • Go to your Stripe account and navigate to the Developer section.
  • Click on ‘Webhooks’ and then ‘Add Endpoint’.
  • Paste the copied URL and set the event to ‘customer.subscription.created’.

After creating the endpoint, Pabbly Connect will wait for a response from Stripe, indicating a subscription has been made.


3. Filtering Subscription Data in Pabbly Connect

With the connection established, the next step is to filter the subscription data. This is crucial to ensure that only relevant subscription events trigger the subsequent actions. In Pabbly Connect, add a filter step after the Stripe trigger. using Pabbly Connect

Select the filter app and set the condition to check if the plan ID corresponds to the specific course. This ensures that emails are only sent to customers who have subscribed to the intended product.

  • Choose ‘Filter by’ and select ‘Data Object Plan Product’.
  • Set the filter type to ‘Equals’ and input the unique ID of the plan.
  • Click ‘Save and Send Test Request’ to verify the filter.

Once the filter is set, you can proceed to retrieve customer details based on the subscription data captured by Pabbly Connect.


4. Retrieving Customer Details from Stripe

The next step involves retrieving the customer’s details using the customer ID received from the Stripe trigger. In Pabbly Connect, add another action step and select Stripe again. using Pabbly Connect

Choose the action event ‘Retrieve Customer by ID’ and connect your Stripe account using the API token obtained from the Developer section in Stripe. Map the customer ID from the previous step to fetch the customer details.

Select the customer ID field and map it from the Stripe trigger response. Click ‘Save and Send Test Request’ to retrieve the customer information.

This step ensures you have access to the customer’s email, name, and other necessary details for sending the invite link.


Now that you have the customer’s details, the next action is to create a Telegram chat invite link. In Pabbly Connect, add a new action step and select Telegram Bot as the app. using Pabbly Connect

Choose the action event ‘Create Chat Invite Link’. Ensure that you have created a Telegram bot using the BotFather and added it to your Telegram group, granting it admin rights. Connect this bot to Pabbly Connect using the API token provided by BotFather.

Input the chat ID of your Telegram group. Set the expiry time for the invite link to 24 hours using a date-time formatter. Click ‘Save and Send Test Request’ to generate the invite link.

Finally, set up a Gmail action to send an email containing the invite link to the customer. Map the email address and include a personalized message in the email body. This completes the automation process.


Conclusion

Using Pabbly Connect, you can effortlessly automate sending Telegram chat invite links to customers who subscribe through Stripe. This integration enhances customer engagement and streamlines communication, making it an invaluable tool for your business.

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