Block 1 - Webhook
- Type / Role
- n8n-nodes-base.webhook - webhook
- Config choices
- Version 2
This workflow is provided as-is. Please review and test before using in production.
How it Works: 1. Trigger: The workflow is triggered by a webhook, initiated by an Airtable automation. This automation sends the Book or Chapter record ID and the desired action (e.g., "Generate Bo...
n8n-nodes-base.webhook, n8n-nodes-base.switch, n8n-nodes-base.airtable, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.toolhttprequest, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Agniva Mahata.
Original n8n.io sourceHow it Works:
action query parameter received from the webhook. This determines which part of the book creation process will be executed.recordId.Set Up Steps:
Airtable Setup (Estimated time: 10-15 minutes):
Trigger: When a record matches conditions -> Action is Generate Book Details
Action: Run a script. Use the following script:
let autoRoute = input.config();
await fetch(autoRoute.webhookUrl + "?recordId=" + autoRoute.recordId + "&action=" + autoRoute.action);
In the script action's configuration, add three "Input variables":
* `webhookUrl` (map it to your n8n webhook URL, obtained in the next step)
* `recordId` (map it to the Airtable record ID)
* `action` (map it to `Action`)
Repeat this process to create two more automations in the "Book" table, identical except triggered when Action is Generate Chapters, respectively.
Action is Generate Chapter ResearchAction is Generate Chapter Content.n8n Setup (Estimated time: 15-20 minutes):
webhookUrl you'll use in the Airtable automations. Important: Once you've tested and are ready to go live, switch to the "Production URL."Testing (Estimated Time: 5-10 minutes):
Generate Chapters, Generate Chapter Research and Generate Chapter Content.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 | Book ghostwriting & research AI agent |
|---|---|
| Complexity | advanced |
| Nodes | 24 |
| Categories | AI, Content Creation |
| Author | Agniva Mahata |
| Published | 11 Feb 2025 |
Use the JSON export at /data/workflows/2879/2879.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: 1. Trigger: The workflow is triggered by a webhook, initiated by an Airtable automation. This automation sends the Book or Chapter record ID and the desired action (e.g., "Generate Bo...
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 AI, Content Creation use case.