Businesses and organizations rely heavily on whitepapers to showcase their products, services, and expertise in a given field. However, the process of creating, formatting, and publishing whitepapers can be time-consuming and often require a considerable amount of manual effort.

Fortunately, technology has advanced to the point where whitepaper publishing can be automated, thanks to tools like ChatGPT, Make, and PDF.co. By integrating these platforms, you can streamline your whitepaper publishing process, save time, and increase efficiency.

In this tutorial, we’ll guide you through the process of automating the conversion of ChatGPT-generated whitepapers to PDF documents and saving them to your preferred cloud storage service using PDF.co and Make. You can easily publish them after that.

With this workflow, you’ll be able to easily generate high-quality whitepapers in PDF. As an example, we generate a whitepaper in the Healthcare industry and save them to a cloud storage service, all without any manual intervention. So let’s get started!

To complete this workflow, we will be using HTML to PDF API within our no-code integration. PDF.co HTML to PDF API is a web-based API that allows you to convert HTML pages, URLs, and raw HTML code to PDF documents. With this API, you can programmatically generate PDFs from any web page or HTML document, customize the PDF output settings, and save the generated PDF to a file, memory, or cloud storage. This API tool supports a wide range of options for customizing the PDF output, such as paper size, orientation, margins, headers, footers, watermarks, page numbering, and more.

  1. Open Make Account
  2. Add OpenAI Module
  3. Setup OpenAI Configuration
  4. OpenAI Chat Response
  5. Add PDF.co Module
  6. Setup PDF.co Configuration
  7. PDF.co Result
  8. Generated PDF Output
  9. Add Google Drive Module
  10. Setup Google Drive
  11. Upload File Result
  12. Check File in Folder

Kindly follow the simple step-by-step guide below:

Step 1: Open Make Account

  • To begin, open your Make account and create a new scenario.

Step 2: Add OpenAI Module

  • Next, add the OpenAI app and choose the “Create a completion” option. This will allow you to generate a text response from ChatGPT based on the prompt or chat that you provide.

Add OpenAI App

Step 3: Setup OpenAI Configuration

  • To set up the OpenAI configuration, start by connecting your OpenAI account to Make.
  • Then, select the “Create a chat completion” option in the method field.
  • Choose the “gpt-3.5-turbo” model for optimal performance.
  • In the “Messages” field, enter the Role of the assistant and the text command to generate a response for the Message Content.

Setup OpenAI Configuration
Now, let’s run the scenario to generate a response from OpenAI. Once you trigger the scenario, the ChatGPT Assistant will receive the message content and generate a response using the OpenAI API with the configured GPT-3.5-turbo model.

Step 4: OpenAI Chat Response

  • Great! The OpenAI ran successfully and generated the response that was requested. Let’s move on to the next step and convert the generated response to PDF format.

OpenAI Chat Response

Step 5: Add PDF.co Module

  • In this step, we will add the PDF.co app and choose the Convert HTML to PDF module. This module will enable us to convert the HTML content generated by the OpenAI app into a PDF format.

Add PDF.co Module

Step 6: Setup PDF.co Configuration

  • To set up the PDF.co Configuration, start by connecting your PDF.co account to Make using your API Key, which you can find in your PDF.co dashboard.
  • Next, in the Convert Type field, select the “HTML to PDF” option.
  • Then, for the Input HTML Code field, choose the “Message Content” generated by OpenAI in the previous step.
  • Finally, in the Output File Name field, enter your desired name for the PDF file that will be created.

Note: You can customize the PDF conversion settings according to your desired parameters, such as orientation, page size, margins, and more. By default, PDF.co uses letter page size and portrait orientation, but you can adjust these settings to suit your needs.
Setup PDF.co Configuration
Setup PDF.co Configuration
Now that we have set up the PDF.co configurations, let’s run the scenario again to convert the generated response from OpenAI to PDF format.

Step 7: PDF.co Run Result

  • Excellent! The scenario has successfully run and converted the generated response from OpenAI to PDF format. You can copy the URL provided by PDF.co and paste it into your preferred browser to view the output.

PDF.co Run Result

Step 8: Generated PDF Output

  • Here’s the converted PDF from the generated response of the OpenAI.
Generated PDF Output
Generated PDF Output

Now, let’s add another module to save the generated PDF file to a cloud storage service.

Step 9: Add Google Drive Module

  • In this step, we’ll add the Google Drive app to our Zapier workflow. From there, we’ll select the “Upload File” option to upload our newly converted PDF file to a specific folder in our Google Drive account.

Add Google Drive Module
Note: Aside from Google Drive, you can also use different cloud storage such as Dropbox, Onedrive, Box, iCloud, and many more with the same feature.

Step 10: Setup Google Drive

Let’s set up the Google Drive Configuration.

  • First, connect your Google Drive account to Make.
  • Next, in the “Enter a Folder ID” field, use the “Select from the list” option to see all available folders in your Google Drive.
  • In “New Drive Location“, select the “My Drive” option.
  • For the “New Folder Location” field, select the specific folder where you want to save the generated PDF file.
  • For the “File” field, select PDF.co – Convert HTML to PDF to use the generated file.

Setup Google Drive Configuration
After setting up the configuration, let’s run the scenario to upload the generated PDF file to the specified Google Drive folder.

Step 11: Upload File Result

  • Great! The PDF file has been successfully uploaded to the specified folder in your Google Drive account. You can access the file from there at any time.

Upload File Result

Step 12: Check File in Folder

  • You have successfully completed the scenario and uploaded the PDF file to your designated Google Drive folder. You can access the file by navigating to the folder and opening it from there.

Uploaded PDF File

In this tutorial, we covered the process of automating the conversion of ChatGPT text responses to PDF documents and saving them to your preferred cloud storage service using PDF.co and Make. We walked through how to use the PDF.co HTML to PDF Converter to convert generated content to PDF format, and how to set up and run the conversion scenario in Make. Additionally, we learned how to upload the resulting PDF file to a specific folder in Google Drive. With these tools and steps, you can automate the creation and storage of PDF documents for your specific use case.