n8nDemo tested12 nodes
Researcher agent hands off to a writer
A research note is stored and a writer-ready summary is produced. The live canvas has an agent plus a sheet so the research and the draft are separate records.
Portfolio reference build with demo data and placeholder credentials, not a client deployment.
Pain
Replaces a brittle if/then chain with an assistant that can look something up, then stops before a sensitive send.
Solution
A research note is stored and a writer-ready summary is produced. The live canvas has an agent plus a sheet so the research and the draft are separate records.
Impact · From the blueprint
The rework when a draft cannot be traced to a note
- Advanced
- Tests passed
- Draft / approval
- AI Agent
- Groq
- Google Sheets
- Slack
Library status: executed. Imported into a local n8n and executed on the demo branch until it returned demo_ready.

Step inspector
The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.
Guardrails
- Demo mode?
Credential ids in the JSON are placeholders. These files are portfolio demos.
Deploy this for your business
Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.
README
Portfolio demo only. This workflow is an original example for demonstration. It is not client work and it does not represent a deployment for any customer.
| Category | ai-agents |
| Difficulty | advanced |
| Apps | AI Agent, Groq, Google Sheets, Slack |
| Time saved | The rework when a draft cannot be traced to a note |
| Demo status | Run Run demo in n8n. The live apps stay on the false branch until you send demo: false. |
Problem
Research and writing happen in the same chat and the sources disappear.
Who it is for
Content teams who want a visible handoff, not a single opaque prompt.
What the workflow does
A research note is stored and a writer-ready summary is produced. The live canvas has an agent plus a sheet so the research and the draft are separate records.
The checked-in sample is the contract. Apply rules turns that payload into a summary, a route, a record for the destination apps, and an actions list describing each write the live branch would make. Package demo result returns that object when demo is true, which is the default.
Estimated time saved
The rework when a draft cannot be traced to a note. The figure assumes the sample's volume and a person who currently does the same triage by hand. It is a planning number for a portfolio review, not a measured client result.
Node by node
- Overview. Sticky note with the portfolio-demo disclaimer and how to run the offline path.
- Run demo. Manual trigger used by the editor and by
n8n execute. With no payload, the next node loads the sample. - Inbound webhook. Production-style POST webhook at
/webhook/researcher-writer-handoff. Responds with the last node's JSON. - Normalize input. Fills any missing fields from the checked-in sample and forces an explicit demo flag. An empty manual run therefore always has something valid to score.
- Apply rules. Produces a writer-ready shipping sentence. The sheet on the live branch is the research record.
- Demo mode?. Routes to the offline result while
demois true. The live apps run only when a caller sends demo:false. - Package demo result. Shapes the object returned to the editor, the CLI, and the webhook: summary, route, record, and the actions the live branch would have taken.
- AI Agent. n8n AI Agent. It receives the prompt built by Apply rules and may call the tools wired underneath it.
- Groq chat model. Groq chat model on the free-tier friendly path. Swap the model name for the one your key can call.
- Window memory. Keeps the last eight turns for this session id. Use a per-user session id in production.
- lookup_policy. Return the shipping policy sentence. Implemented as a Code tool so the contract is visible in the canvas.
- Append Research notes. Appends the record to the Research notes tab. Map columns explicitly once the sheet exists.
- Post #content. Posts slackText to #content.
Diagram
flowchart LR n0["Run demo"] n1["Inbound webhook"] n2["Normalize input"] n3["Apply rules"] n4["Demo mode?"] n5["Package demo result"] n6["AI Agent"] n7["Groq chat model"] n8["Window memory"] n9["lookup_policy"] n10["Append Research notes"] n11["Post #content"] n0 --> n2 n1 --> n2 n2 --> n3 n3 --> n4 n4 -->|demo| n5 n4 -->|live| n6 n6 --> n7 n7 --> n8 n8 --> n9 n9 --> n10 n10 --> n11
Sample input
Save as the webhook body, or rely on the manual trigger, which loads the same object from Normalize input.
{
"demo": true,
"prompt": "Summarize our shipping policy for a writer.",
"sessionId": "handoff"
}
The file next to this README, sample-input.json, is the same payload.
Setup
- Import
workflow.jsonwith n8n's Import from File. The workflow arrives inactive. - Select Run demo and execute it. Package demo result returns
status: demo_readyplus the summary, route, record, and actions. - Create each credential listed below in n8n and choose it on the matching node. The
PLACEHOLDER_*ids are labels, not secrets. - Replace every
YOUR_*resource id (sheet, channel, list, parent page, calendar) with a resource you own. - Optional HTTP check: POST
sample-input.jsonto/webhook/researcher-writer-handoffwhile the workflow is published. The defaultdemo: trueflag stays on the offline path. - Connect the live apps, send the same JSON with
"demo": false, confirm one real record, then publish.
Credentials
- Google Sheets account (
googleSheetsOAuth2Api), placeholder idPLACEHOLDER_GOOGLESHEETSOAUTH2API - Slack account (
slackOAuth2Api), placeholder idPLACEHOLDER_SLACKOAUTH2API - Groq account (
groqApi), placeholder idPLACEHOLDER_GROQAPI
Placeholder ids are not real credentials. n8n will show them as missing until you create a credential of that type and select it on the node. Do not paste production secrets into the workflow JSON.
Customization
- Keep the researcher and the writer as two executions that share the sheet, rather than one prompt that does both.
- Keep the system message strict: tools for facts, no invented prices or dates.
- The demo answer is a local lookup. The agent on the live branch is what you point at Groq or Claude.
Demo mode and the live branch
- Execute Run demo or POST the sample to
/webhook/researcher-writer-handoffwithdemoomitted or true. The run stops after Package demo result. - POST the same JSON with
"demo": falseonly after every placeholder credential on the live branch has been replaced. - The rules engine is intentionally local so the workflow can be reviewed and tested without buying model or SaaS credits. When you want a live model, put it on the live branch in front of the app nodes, or replace Apply rules with an Information Extractor / AI Agent and keep the same output shape.
Portfolio note
Built as a portfolio demo for Mustafa (mustafaautomation). Public demos live under *.quvantic.com. Vendor names belong to their owners. Nothing in this folder is a customer deliverable.