DEV Community

Cover image for Generate and Send Stripe Summary Reports with BuildShip
Bhavya Verma for BuildShip

Posted on • Originally published at buildship.com

Generate and Send Stripe Summary Reports with BuildShip

If you're seeking a powerful tool that can help you build complex backend solutions with the ease of low-code and no-code, look no further than BuildShip. This blog will guide you on how to generate and send a Stripe summary report by email using BuildShip's new feature.

What is BuildShip?

BuildShip is an AI low-code workflow backend builder that simplifies the process of creating backend solutions. It offers a variety of templates and features that can be customized to suit your specific needs. One of these features is the ability to generate a Stripe summary report.

How to Generate a Stripe Summary Report with BuildShip

To begin with, navigate to your project in BuildShip and select the template for the workflow that suits your needs. In this case, we're focusing on the 'Stripe Summary Report' template.

Stripe Summary Report Workflow

Once you've selected your template, you'll see that most of the work is already done for you. There are just a few fields for you to fill in. Let's walk through each node:

  • Trigger Node: This is your schedule or CRON job with a location. You can set your CRON syntax schedule once a month and define the time zone.

CRON Job Node

  • Generate Stripe Report Node: Here, you'll see a warning that the Stripe API key is required. You can safely store your secrets in BuildShip. If you already have a Stripe key, you can select it here.

Generate Stripe Report Node

  • JSON to HTML Node: This node turns the JSON from Stripe into HTML. We'll delve into this more shortly.

JSON to HTML Node

  • Generate PDF Document Node: This node uses Puppeteer to convert the HTML input into a PDF document and saves it to the cloud storage. The input comes from the generated HTML, and the browserless key comes from your secrets.

Generate PDF Document Node

  • Send Email Node: This is the final node, which sends emails with the PDF as an attachment. You'll be using the Resend API for this. Enter your Resend secret, recipient email, and the 'from' address.

Send Email Node

Once you've filled in all the necessary fields, you're ready to deploy your summary report generator. After successful deployment, you can see your workflow in action.

Customizing Your Workflow

One of the standout features of BuildShip is its ability to customize and tweak parts of your workflow. For instance, if you want to add a footer to the HTML of your Stripe report, you can use the AI feature in BuildShip to do this. Simply click on the magic wand button next to the node, write your prompt, and let the AI work its magic. In this case, we're adding a footer that says 'Built with BuildShip'.

Customizing Your Workflow

Conclusion

BuildShip offers a powerful and flexible solution for building your own backend solutions. With its low-code and no-code approach, it's easier than ever to get up and running with your own customized workflows. Stay tuned for more tutorials on how to get the most out of BuildShip.

Remember, we're just scratching the surface here. There's so much more you can do with BuildShip. Happy Building!

If you enjoyed our content, please give us a follow on Twitter or join our Discord in case of any questions. We look forward to hearing from you! 💜

Top comments (0)