Block 1 - When chat message received
- Type / Role
- @n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
- Config choices
- Version 1.1
This workflow is provided as-is. Please review and test before using in production.
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...
@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
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yar Malik (Asfandyar).
Original n8n.io sourceHow it works
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
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.
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.
| 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 |
Use the JSON export at /data/workflows/5828/5828.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
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...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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.