If youโre searching for a method to automatically generate PDF documents based on responses from Google Forms, youโve come to the right tutorial. In this guide, we will explore the capabilities of zenphi, a powerful no-code process automation platform built specifically for Google Workspace. Not only will we learn how to automatically export Google Form responses to PDF, but weโll also discover how to save the generated files to Google Drive or Dropbox, and even send confirmation emails with the generated docs to respondents.ย You can either watch the video version below or continue with the step-by-step instructions provided after. Letโs get started and build your automated document generation workflow!
Step 1: Set Up the Google Form
To begin, make sure you have a Google Form ready for collecting responses. For this tutorial, weโll use the โOrder Formsโ template provided by Google. You can choose any template or create your own form. Just remember to enable the collection of email addresses under Form settings.

Step 2: Create an โExport Google Form Responses to PDFโ Flow in zenphi
1. Open your zenphi account.
2. Create a new Space or open the existing one and create a new Flow.
ย
3. Select a Google Form trigger.
ย
4. Name your Flow.
ย
Step 3: Configure the Trigger
1. Click on the Google Form trigger inside the Flow Designer to open the settings.
ย
2. Establish a Connection with your Google Forms account by clicking on the โplusโ in the Connection field.
3. Click on the Drive icon under the Form File ID field and choose the Google Form you created in Step 1.
4. Save the Flow.
Step 4: Export Google Form Responses to PDF with Google Docs Template
1. Drag and drop the โGenerate document using templateโ action from the Google Docs section.
2. Create a template in Google Docs that match the design you desire for the PDF document.
ย
3. Go back to zenphi and configure the action by selecting the template and setting the destination folder for the generated documents.

4. Customize the document name using tokens or any desired value.
5. Switch on the โGenerate PDFโ option.
6. Map out the values using the Token picker.

Once you indicate the Google Doc template, zenphi will automatically load all the placeholders where you can put tokens from the Google Form. Click on the Token picker in the Value fields and find the needed value from the Google Form response.
Step 5: Configure Format Date Time Action
With zenphi, customizing the date format is a breeze using the โFormat Date Timeโ action. Simply input the Google Form token โCreated Dateโ and select your preferred format.

Next, in the โGenerate Document using templateโ action, specify the output from the โFormat Date Timeโ action.

Step 6: Test the โExport Google Form responses to PDFโ Flow
Firstly, save and Publish the Flow using the controls on the top panel.
There are two ways to test your Flow. First, you can submit a new response through the Google Form, which will trigger the Flow and execute all the actions. To monitor the progress, exit the Flow Designer and navigate to the Flow Recent Runs section.

Open the Flow Run details to see all the actions live.

Alternatively, if you already have existing responses in the Google Form, you can launch a Test Run in the Flow Designer. Itโs important to note that during the Test Run, the Flow will run using real responses and carry out all the actions. To ensure data integrity, itโs recommended to use a test account when submitting responses in the Google Form.
ย
After executing the Flow, you will discover two new documents in the designated Google Drive folder. One document will be in Google Doc format, while the other will be in PDF format. Both files will contain the generated content based on the Google Form responses.
Step 7: Working with the Collections
You might observe that certain values in the document appear within brackets. This occurs when respondents select multiple responses, such as in a checkbox question type, resulting in data being returned in a Collection format. With zenphi, a Collection is simply a group of information โ in this case, multiple answers to the same question. To enhance the visual presentation of these values, weโll employ another useful zenphi action called โConvert to Text.โ This action will help us format the data in a more visually appealing manner.
1. Drag and drop the โConvert to textโ action before the โGenerate documentโ action in your Flow.
2. Specify the Collection you wish to convert. These collections are indicated in the token values within square brackets [ ].

3. Specify the separator you desire. For example, if you want the items in the collection to be separated by a comma and a space, enter these symbols as the separator.

4. Optionally, enable the options to exclude empty values and duplicates.
5. Save the changes to your Flow.
Make sure to add the โConvert to textโ action for all the collections you want to format. In the โGenerate Google Docโ action, include the output from the โConvert to textโ action.
To ensure everything works as expected, run a new test using the instructions provided in Step 5.
Configure Additional Actions (Optional)
Depending on your requirements, you can add more actions to enhance the automation process. Here are a few examples:
1. Delete the generated Google Docs file after conversion to PDF to avoid cluttering your Google Drive;
ย
2. Send an email with the generated PDF document as an attachment to the respondent;
ย
3. Save the generated document using Dropbox โ Save File action.

4. Organize the PDF files in folders based on the submission date by using a โCreate Folderโ action.
ย
5. Merge the attachments from the Google Form with the generated document and save it to Google Drive.

Use the โMerge Documentsโ action to combine the Form attachments with the generated document:
โ Place the โMerge Documentsโ action after the โGenerate document using template fileโ action.
โ In the โSource Documentsโ field, specify the output of the generated document as well as the attachments obtained from the Google Form.
To save the merged document to Google Drive:
โ Drag and drop the โSave Fileโ action from the Google Drive section.
โ Indicate the Folder ID that was obtained in the previous steps.
Conclusion
By following these simple steps, you can export Google Forms responses to PDF files and save them to your preferred cloud storage or send them to the respondents via email. The automation provided by zenphi streamlines the process, saving you time and effort on repetitive tasks. Enjoy the benefits of generating PDF documents with ease and efficiency!
