This workflow follows the Agent → Execute Workflow Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "AI Blog Post Generator with Web Search",
"nodes": [
{
"parameters": {
"toolDescription": "Use this tool to search the internet",
"method": "POST",
"url": "https://api.tavily.com/search",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"api_key\": \"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\",\n \"query\": \"{searchTerm}\",\n \"search_depth\": \"basic\",\n \"include_answer\": true,\n \"topic\": \"news\",\n \"include_raw_content\": true,\n \"max_results\": 3\n} ",
"placeholderDefinitions": {
"values": [
{
"name": "searchTerm",
"description": "What the user requested to write the blog post about",
"type": "string"
}
]
}
},
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"typeVersion": 1.1,
"position": [
-240,
360
],
"id": "f0af74a9-9fde-4f1c-89c1-bb62df9bde7b",
"name": "Tavily"
},
{
"parameters": {
"inputSource": "passthrough"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
-700,
80
],
"id": "15fed980-0b2d-44e4-bea4-b4bf9fee8aba",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
-500,
360
],
"id": "b1361bc3-59e3-4d25-9541-4bfbb81bb0a9",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "14d9076e-27ea-4846-8b44-f83cf4022b9e",
"name": "response",
"value": "={{ $json.output }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
0,
0
],
"id": "aed27234-e758-4c8d-981d-d94c49cfe4bd",
"name": "Sucesso"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "f2a8ff2d-6b59-4ad6-a2e7-8705354f4105",
"name": "response",
"value": "Error occurred. Please try again.",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
0,
180
],
"id": "0907ae8c-8d4c-46f5-b525-83d58e9e863f",
"name": "Erro"
},
{
"parameters": {
"promptType": "define",
"text": "={{ $json.query}}",
"options": {
"systemMessage": "=# Vis\u00e3o Geral\nVoc\u00ea \u00e9 um redator de blogs habilidoso especializado em conte\u00fados envolventes, bem estruturados e informativos. Seu estilo de escrita \u00e9 claro, cativante e adaptado ao p\u00fablico-alvo. Voc\u00ea otimiza para legibilidade, SEO e valor, garantindo que os blogs sejam bem pesquisados, originais e livres de conte\u00fado irrelevante.\n\n## Ferramentas\nTavily - Use esta ferramenta para pesquisar na web sobre o tema solicitado para o post do blog.\n\n## Requisitos do Blog\nFormate todo o conte\u00fado do blog em HTML, utilizando cabe\u00e7alhos apropriados (<h1>, <h2>), par\u00e1grafos (<p>), listas com marcadores (<ul><li>) e links (<a href=\"URL\">) para cita\u00e7\u00f5es. Todas as cita\u00e7\u00f5es vindas da ferramenta Tavily devem ser preservadas, com hiperlinks clic\u00e1veis para que os leitores possam acessar as fontes originais.\n\nMantenha um tom natural e humano, utilize estruturas de frase variadas e inclua exemplos ou dados relevantes quando necess\u00e1rio. Estruture o conte\u00fado para f\u00e1cil leitura, com par\u00e1grafos concisos e fluxo l\u00f3gico. Sempre garanta precis\u00e3o factual e alinhe o tom com a marca ou prop\u00f3sito pretendido.\n"
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 1.7,
"position": [
-440,
80
],
"id": "528bbf5a-87a8-4445-9f08-a8287e060be7",
"name": "Criador de Conte\u00fado (Agente)",
"onError": "continueErrorOutput"
}
],
"connections": {
"Tavily": {
"ai_tool": [
[
{
"node": "Criador de Conte\u00fado (Agente)",
"type": "ai_tool",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Criador de Conte\u00fado (Agente)",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Criador de Conte\u00fado (Agente)",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Criador de Conte\u00fado (Agente)": {
"main": [
[
{
"node": "Sucesso",
"type": "main",
"index": 0
}
],
[
{
"node": "Erro",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "387ef14a-bf9b-420d-80fb-e7aa7f6ab546",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "J8Iul8lE1ihKrH76",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
AI Blog Post Generator with Web Search. Uses toolHttpRequest, executeWorkflowTrigger, lmChatOpenAi, agent. Event-driven trigger; 6 nodes.
Source: https://github.com/mesquitapetro-crypto/n8n-mcp-knowledge-base/blob/a6cc08e57184733dc87a55f53d291650cc52e9bc/workflows/ai-blog-post-generator-with-web-search.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
CoinMarketCap_Crypto_Agent_Tool. Uses executeWorkflowTrigger, agent, lmChatOpenAi, memoryBufferWindow. Event-driven trigger; 13 nodes.
Access real-time cryptocurrency prices, market rankings, metadata, and global stats—powered by GPT-4o and CoinMarketCap! This modular AI-powered agent is part of a broader CoinMarketCap multi-agent sy
📉 Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT-4.1 and real-time OHLCV data. This AI agent evaluates 1-hour and 1-day candles and is an essential part of th
OpenSea Analytics Agent Tool. Uses lmChatOpenAi, memoryBufferWindow, toolHttpRequest, agent. Event-driven trigger; 12 nodes.
CoinMarketCap_Exchange_and_Community_Agent_Tool. Uses executeWorkflowTrigger, agent, lmChatOpenAi, memoryBufferWindow. Event-driven trigger; 12 nodes.