Auto Knowledge Base Article Generator
Configured with Agent, Chat Trigger, Execute Workflow, Function, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Web / API
- AI & models
- Subworkflow
- Trigger
- Code
- Transform
- Routing
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Create Perplexity Content | Web / API | HTTP Request | POST |
| AI Writer Agent | AI & models | Agent | See node parameters |
| AI Editor Agent | AI & models | Agent | See node parameters |
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| OpenAI Chat Model1 | AI & models | OpenAI Chat Model | See node parameters |
| Accept and Publish | Subworkflow | Tool Workflow | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| JSON.parse1 | Code | Code | See node parameters |
| Merge | Transform | Merge | See node parameters |
| Format | Code | Code | See node parameters |
| JSON.parse | Code | Code | See node parameters |
| Format Perplexity Output & Add Citations | Code | Code | See node parameters |
| Initialize Count | Transform | Edit Fields | See node parameters |
| Increment Count | Code | Function | See node parameters |
| Check Limit | Routing | If | See node parameters |
| Stop Here | Routing | No Op | See node parameters |
| Execute Workflow | Subworkflow | Execute Workflow | See node parameters |
| JSON.parse3 | Code | Code | See node parameters |
| should submit | Routing | If | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
openAiApi
Workflow notes
Writer Agent
Writer Agent
- Focuses on writing for all the fields in contentful
- Has a specified format for input and output
- Handles implementing feedback from editor agent
Count Incrementer
Count Incrementer
- Tracks a variable count to ensure the flow hits a max number of feedback iterations.
- This is critical for feedback to avoid hitting an infinite loop.
Editor Agent
Editor Agent
- Sole purpose is to look at the quality of output for the previous combo of perplexity & openAI Agent.
- Determines if it is publishable or not.
Publish To Contentful
Publish To Contentful
- Publishes to Contentful by converting the fields to the appropriate fields for the contentful POST create content API.
- Converts the article to Rich Text formatting specifically for Contentful by using another AI formatter trained on it's specs.
email us if you want that flow too: user@example.com
Auto Knowledge Base Article Generator
Auto Knowledge Base Article Generator
Purpose and structure
This folder contains the Auto Knowledge Base Article Generator workflow. Its executable nodes use agent, chatTrigger, code, executeWorkflow, function, httpRequest, if, lmChatOpenAi, merge, noOp, set, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When chat message received
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Code/1756_Code_HTTP_Automation_Webhook.json MIT; preserve source notices.