Skip to main content

Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat

Workflow preview

Workflow preview
100%
Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works Trigger: Listens for an incoming chat message Copy Assistant: Feeds the message (plus memory) into an OpenAI Chat Model and exposes two “tools” Cold Email Writer Tool Sales Letter Tool...

Best for

  • Content Creation automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, n8n-nodes-base.googledocs, @n8n/n8n-nodes-langchain.toolworkflow

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yar Malik (Asfandyar).

Original n8n.io source

1.1 Workflow description

Title
Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat
Workflow name
Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat

How it works

  • Trigger: Listens for an incoming chat message
  • Copy Assistant: Feeds the message (plus memory) into an OpenAI Chat Model and exposes two “tools”

Cold Email Writer Tool

Sales Letter Tool

Tool execution: Depending on the user’s intent, the appropriate tool generates the copy • Save output: Writes the generated email or sales letter into your target document via the Update a document node

Set up steps

  • • Configure your OpenAI Chat Model credentials in n8n (no hard-coded keys!)
  • • Add and authenticate the Simple Memory credential (to keep context across messages)
  • • Create Google Docs (or MS Word) credentials for the Update a document node
  • • Ensure your Chat trigger is pointing at your incoming-message endpoint
  • • Mandatory: Drop sticky-note annotations on each tool node explaining where to enter API keys and how to tweak prompts

Once everything’s wired up, send a test chat message like “Write me a cold email for a fintech startup” and watch the workflow spin up a polished draft in your document.

How to use

Import the workflow JSON into n8n.

Configure your Chat trigger (webhook or form) to receive incoming messages.

Send a chat prompt like:

“Write me a cold email for a B2B SaaS offering.”

The “Copy Assistant” custom GPT picks the right tool (Cold Email or Sales Letter).

Generated copy is written directly into your linked Google Doc or Word document.

Requirements OpenAI API Key (with Chat Completions & Custom GPTs enabled)

Custom Assistant created in your ChatGPT dashboard (Assistant ID pasted into the Chat Model node)

n8n instance (Cloud or self-hosted) with credentials set up for:

Simple Memory (to persist context)

Google Docs or Microsoft Word (for document output)

Customising this workflow Tweak system and user prompts inside the Copy Assistant node to fit your brand voice.

Swap in Slack, Teams or email nodes instead of a document writer to deliver copy where you need it.

Add or remove tools (e.g., “Follow-up Email Writer”) by duplicating the existing tool pattern.

Use sticky-note annotations on every node to explain where to enter API keys, Assistant IDs, or prompt tweaks.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 2 - Copy Assistant

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 3 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - Update a document

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 6 - Cold Email Writer Tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.2

Block 7 - Sales Letter Tool

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.2

3. Summary Table

Workflow Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat
Complexity intermediate
Nodes 7
Categories Content Creation, AI Chatbot
Author Yar Malik (Asfandyar)
Published 09 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5828/5828.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate cold emails & sales letters with OpenAI GPT & Google Docs via Chat do?

How it works Trigger: Listens for an incoming chat message Copy Assistant: Feeds the message (plus memory) into an OpenAI Chat Model and exposes two “tools” Cold Email Writer Tool Sales Letter Tool...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, AI Chatbot use case.