Protecting sensitive information is an important aspect of ensuring data privacy and security. With the increasing amount of data being generated and shared online, it is important to take measures to safeguard personal and confidential information.
PDF.co’s Privacy Protection via Zapier is a tool that can automatically identify and redact sensitive information in documents generated by ChatGPT. This can include personal information such as names, addresses, phone numbers, email addresses, credit card numbers, bank account numbers, and social security numbers.
In this tutorial, we will walk you through the process of redacting sensitive information from documents generated by ChatGPT using PDF.co and Zapier. The generated text from ChatGPT can often contain sensitive information that needs to be kept confidential.
- Create a Zap
- Add ChatGPT App
- Connect ChatGPT Account
- Setup ChatGPT Configuration
- ChatGPT Test Result
- Add PDF.co App
- Connect PDF.co App
- Setup PDF.co Configuration
- PDF.co Test Result
- Converted PDF Document
- Add Another PDF.co App
- Setup Custom API Call
- Redacting Sensitive Information Result
- Output
Step 1: Create a Zap
- To get started! First, log into your Zapier account and click on the Create Zap button.
Step 2:Add ChatGPT App
- To proceed, select the ChatGPT app from the list of available apps. Once you have selected the app, you will need to enter the conversation option to send a message to OpenAI and generate a completion.
Step 3: Connect ChatGPT Account
- Next, we need to connect your ChatGPT account to Zapier. This process will grant Zapier access to your ChatGPT account and authorize it for use.
Step 4: Setup ChatGPT Configuration
Now, let’s set up the ChatGPT configuration.
- Enter the text command to generate a document with sensitive information. This command will instruct ChatGPT to generate a document that contains sensitive information that needs to be protected.
- Set up the parameter values, such as User Name, Assistant Name, Assistant Instructions, Model, and Temperature. In this demo, we will use the default values, but you can customize these settings to suit your specific needs.
- Add a unique value for the memory key to allow the assistant to continue the conversation from the previous message. This step will ensure that ChatGPT can maintain context and provide accurate responses to your queries.
Once the configuration is set up, proceed to test the action by sending a request to ChatGPT and generating a document that contains sensitive information.
Step 5: ChatGPT Test Result
- Great! ChatGPT has generated a document containing sensitive information. We can now proceed to add another application and convert the document into a PDF format and redact sensitive information from the PDF document.
Step 6: Add PDF.co App
- For this step, we will incorporate the PDF.co application and select the HTML to PDF Converter option. This will enable us to convert the document that was generated by ChatGPT into a PDF format.
Step 7: Connect PDF.co Account
- Now, let’s connect the PDF.co account to Zapier by adding the API Key. You can obtain the API Key from your PDF.co dashboard or by signing up at this link.
Step 8: Setup PDF.co Configuration
Let’s set up the PDF.co configuration.
- First, we will input the Assistant Response Message that contains the document generated by ChatGPT.
- Next, we will set the parameters for page orientation, page size, margins, etc. For this demonstration, we will use the default parameter values.
- Finally, we will provide a name for the PDF file that we want to generate.
Once we have configured the settings, we can proceed to test the action of converting the document generated by ChatGPT into a PDF format.
Step 9: PDF.co Test Result
- Excellent! The test was successful, and the document generated by ChatGPT has been converted into a PDF format. Please copy the URL and paste it into your browser to view the resulting PDF document.
Step 10: Converted PDF Document
- Please find below the resulting PDF document that was converted from the document generated by ChatGPT.

Now that we have successfully converted the document generated by ChatGPT into a PDF format, we can proceed to incorporate another application to redact any sensitive information that might be present in the PDF document.
Step 11: Add Another PDF.co App
- For this step, we will include another application from PDF.co and select the Custom API Call option.
Step 12: Setup Custom API Call
Let’s set up the Custom API Call configuration.
- Enter the PDF Delete Text endpoint to redact sensitive information from the PDF document.
- Input the output URL from the PDF.co HTML to PDF Converter that was used to generate the PDF document.
- Add the JSON code containing the search string for the sensitive information that needs to be redacted, the replacement limit, and the profiles to use for the patch and color of the redacted information.
After setting up the configuration, let’s test the action to send a request to PDF.co and redact sensitive information from the PDF document.
Step 13: Redacting Sensitive Information Result
- Congratulations! PDF.co has processed our request successfully and returned a temporary URL containing the redacted PDF document with sensitive information removed. To view the output, please copy the URL provided and paste it into your browser.
Step 14: Output
- Please find below the resulting PDF document that we were able to redact sensitive information.

In this tutorial, we covered the process of how to redact any sensitive information from a document that was generated by ChatGPT by using PDF.co and Zapier.