How to automatically create PDF files from form responses and send these to respondents
Connect your Tripetto form to Google Docs and Gmail to automatically create personalized PDF files and send these to your respondents. For this example we use Make (formerly Integromat) as our automation tool.
When to use
You can use this automation if you want to email your respondents after they have completed your Tripetto form. You can attach a PDF file to that email message, for example to include a summary of the given answers.
What you need
The scenario we describe in this article is an example of connecting Tripetto to other services, in this case Google Docs and Gmail. Click here for more general information about connecting Tripetto to other services.
For this scenario you will need the following:
- Tripetto, to collect your form submissions;
- Make1, to connect your form data to other services;
- Google Docs, to create a personalized document;
- Gmail, to send an email with PDF attachment.
π Ad 1: Make alternatives
There are alternatives to use as your automation tool. In our example we use Make as our automation tool, but you can also use Zapier, Pabbly Connect or even a custom webhook. Of course it's up to you to use your favorite automation tool.
How to use
These are the steps to take to automate the process of creating a personalized PDF file and send that to a recipient.
Step 1 - Build Tripetto form
- First make sure your Tripetto form collects the desired data.
- Please make sure you have an email address field in your form, as we will need that to be able to send the email with the PDF file to the respondent.
The result of this step is your Tripetto form, which you will use to collect your data from your respondents.
Step 2 - Prepare Google Docs template
- In your Google Docs account create a new file/template. This will be the base for your final PDF file.
- Give your template a name, for example
Tripetto Template
. - At the positions in your template where you want to use a value from the Tripetto form data, use the following format to insert a variable:
{{your_variable_name}}
(double brackets, without spaces). In the final file that we will generate for each form submission, those variables will be replaced with the entered value from the respondent in the Tripetto form.
The result of this step is your Google Docs template, that we will use later on in the process.
Step 3 - Connect Tripetto to Make
- In your Make account add a new scenario.
- Give your scenario a name, for example
Email PDF attachment from new Tripetto submission
. - Add a
Tripetto
module to your Make scenario. As trigger selectWatch Responses
. - Connect your Tripetto form to that trigger, by copy-pasting the webhook URL from Make into your Tripetto form (navigate to
Automate
Connections
Make
). Have a look at this article for the detailed description how to connect Tripetto to Make. - Test the connection, so Make receives the structure of your dataset.
The result of this step is that your Make scenario gets executed for each new form submission and you can use the data fields from your Tripetto form in the Make scenario.
Step 4 - Create Google Docs file
- Add a
Google Docs
module to your Make scenario. As action selectCreate a Document from a Template
. - Grant access to your Google account.
- Under
Document ID
select your earlier created Google Docs template file. - If you have used variables in your template, you will now see those variables in Make. For each variable you can now select the corresponding data field from your Tripetto form. This is the part where you map the entered data from your Tripetto form to the variables in your Google Docs template.
- Under
Title
you can enter the file name of the file. We advise to include the email address field from your Tripetto form into this, so you can recognize the different files in your Google Drive. - Under
New Document's Location
select the folder where the newly create document will be stored. We advise to store the files in a dedicated folder. - Test this scenario up to this point. Check if the Google Docs file gets created in the selected folder and the variables in your template are replaced with the form data.
The result of this step is you now have automated the creation of a new Google Docs file for each Tripetto form submission, including values from the Tripetto form data.
Step 5 - Download PDF document
- Add another
Google Docs
module to your Make scenario. As action selectDownload a Document
. - Under
Document ID
activate theMap
toggle. Now select theDocument ID
that's outputted from your previous Google Docs module. - Under
Type
selectPDF Document (.pdf)
to download it as a PDF file.
The result of this step is your Make scenario now has access to the PDF file, which we will use in our email message.
Step 6 - Send email with PDF attachment
- Now add a
Gmail
module to your Make scenario. As action selectSend an Email
. - Grant access to your Google account. Please make sure your Google account includes Gmail. Please note that you might have to take additional steps to be able to send emails via Gmail from Make (see instructions).
- Under
To
enter the recipient. To email to the respondent of your form, select the email address from the Tripetto form data. - Under
Subject
andContent
you can now enter the desired subject and message of the email. You can also use Tripetto form data in those texts. - Under
Attachments
select the optionGoogle Docs - Download a Document
. That will automatically use the PDF download from your previous module.
The result of this step is an email message will be sent to the entered recipient, with the entered subject and content, including a PDF attachment with the personalized Google Docs template.
Step 7 - Test and activate
- Click
Run once
in Make to start testing your automation. - Fill out and submit your Tripetto form once.
- Check if your Make scenario has been processed correctly. If so, check the Inbox of the recipient to receive the email and check if everything is okay.
- Activate your scenario in Make.
From now on this scenario will be executed automatically for each new form submission! Every respondent will now receive an automated email message with a personalized PDF file as attachment π
Other examples
Tripetto lets you connect to 1.000+ services. We have made some step-by-step examples for often used scenarios:
- How to automatically store form responses in Google Sheets and generate analysis reports;
- How to automatically store form responses in Notion;
- How to automatically create PDF files from form responses and send these to respondents (current article);
- How to automatically add Mailchimp subscribers from form responses;
- How to automatically create Zendesk support tickets from form responses.