Automate your client invoicing process using this powerful n8n workflow. It reads pending invoice data from Google Sheets, uses an AI agent to craft professional emails, generates PDF documents via CraftMyPDF, and sends them via the Gmail n8n node, saving hours of manual work.
Download this n8n workflow template and start using it instantly.
Manually tracking pending invoices, drafting personalized emails, and generating PDFs is time-consuming and prone to errors. This comprehensive n8n workflow template eliminates manual effort by fully automating the invoice delivery cycle. The system starts by querying your 'Client Invoices' Google Sheet for items marked 'Pending'. It then uses dynamic data to power an AI Agent that writes a polite, professional payment request email. Simultaneously, the workflow generates a professional PDF invoice attachment. The final steps involve sending the compiled email and PDF via Gmail and automatically updating the Google Sheet record to 'Completed'. This powerful integration showcases how sophisticated n8n automation can transform back-office operations.
The entire process is initiated by an n8n trigger and operates on a per-item basis for reliability.
To deploy and utilize this n8n workflow template effectively, follow these steps:
CraftMyPDF community n8n node if it's not already present. You must obtain an API key and replace the placeholder YOURTEMPLATEID with the ID of your invoice template on the CraftMyPDF platform. This is crucial for successful PDF generation. Manual Trigger (n8n trigger): Starts the n8n workflow execution, typically used for testing or scheduled runs.
Google Sheets (Initial Read): Reads data from the 'Client Invoices' sheet. Key configuration: Reads all rows to find pending status.
Filter (n8n node): Filters items to retain only those where Status is 'Pending'. This is essential for controlling the data flow of the n8n workflow.
Edit Fields (Set n8n node): Dynamically sets the Invoice Date to $now and Due Date to 7 days after the invoice date.
Loop Over Items (n8n node): Ensures that the AI and PDF generation steps are run individually for each pending invoice item.
AI Agent (LangChain n8n node): Generates the full, professional email text based on a detailed prompt and dynamically injected invoice data. It utilizes the connected OpenAI LLM.
Information Extractor (LangChain n8n node): A powerful LangChain n8n node that structures the raw email output into specific JSON fields: email subject and email body.
CraftMyPDF (n8n node): Generates the PDF invoice binary file using the collected client and financial data against a configured template ID.
Gmail (n8n node): Sends the final email to the client, utilizing the AI-generated subject and body, and attaching the binary PDF file.
Google Sheets1 (Update): An essential final step in this n8n workflow. It uses the appendOrUpdate operation, matching by Invoice ID, to mark the processed invoice status as 'Completed'.
Use this comprehensive n8n workflow to automate daily industry trend monitoring. It scrapes X (Twitter), processes Gmail newsletters, browses key websites, and generates structured reports using an advanced n8n AI agent powered by GPT.

Use this powerful n8n workflow template to deploy a secure Image Moderation MCP Server. Easily detect nudity and filter inappropriate content using a specialized n8n node for your AI agents.

Build an intelligent Telegram bot using this complex n8n workflow. It automates image editing, state management via Airtable, and file storage in Google Drive, powered by the Google Gemini API. Explore advanced n8n templates.

Use this powerful n8n workflow to automatically scrape LinkedIn jobs, leverage GPT-4o-mini to score relevance against your resume, and save only highly relevant results to Google Sheets.

Build a robust AI assistant using RAG (Retrieval-Augmented Generation) in n8n. Automate syncing Google Drive documents to Supabase vector storage via an n8n workflow, powering an OpenAI chatbot capable of handling text and voice queries.








































