Quick overview
This workflow collects a proposal brief via an n8n form, uses Anthropic Claude to extract structured proposal fields, generates a branded PDF with ShipPDF, then emails the PDF via Gmail and archives it to Google Drive after ShipPDF confirms completion.
How it works
- Receives a new proposal request from an n8n Form submission with client details, recipient email, and a project brief.
- Uses Anthropic Claude (via the Information Extractor) to turn the free-text brief into structured proposal fields like title, scope, timeline, and price.
- Sends the extracted fields to the ShipPDF API to generate a document from your proposal template and provides an n8n resume webhook URL for the completion callback.
- Waits for ShipPDF to call back and normalizes the returned status and PDF URL.
- If ShipPDF reports the document as completed, downloads the generated PDF from the provided URL.
- Sends the PDF as an attachment through Gmail to the recipient email address and uploads the same PDF to Google Drive for archiving.
- If ShipPDF reports a non-completed status, routes the execution to a placeholder step where you can add alerting or error handling.
Setup
- Add an Anthropic API credential and select the Claude model you want to use for structured extraction.
- Add a ShipPDF API key as an HTTP Bearer Auth credential and replace the
template_id in the ShipPDF request with your ShipPDF proposal template ID.
- Update the Information Extractor attributes and the ShipPDF
data mapping to match your ShipPDF template’s data_schema fields.
- Connect Gmail credentials and confirm the recipient email mapping and email subject/body text.
- Connect Google Drive credentials and set the target drive and folder for uploads.
- (Optional) Add a Slack/email alert step on the failure branch to handle
status: failed callbacks from ShipPDF.