Generate Notion task results with OpenAI and save them to a Resultados database
Ready for 3.0What this workflow does
This AI workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects OpenAI.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- Chamar criação de resultados (Execute Sub-workflow): calls another n8n workflow
- Buscar contexto no Notion (Execute Sub-workflow): calls another n8n workflow
- Preparar contexto para a IA (Edit Fields (Set)): sets 5 fields: funcoes, tarefa, taxonomias…
- Gerar resultados conforme a função (OpenAI): uses OpenAI
- Separar resultados gerados (Split Out): splits a list into separate items
- Percorrer resultados (Loop Over Items (Split in Batches)): loops over the items in batches
- Registrar resultado no Notion (HTTP Request): calls an HTTP API (POST)
Services it uses
Other OpenAI + Notion templates (157)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - OpenAI
@n8n/n8n-nodes-langchain.openAi - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest
From the author
Quick Overview This workflow receives a Notion task (via webhook or as a sub-workflow input), enriches it with related Notion context, uses OpenAI to generate one or more task results, and then creates a separate page for each result in a Notion “Resultados”…