This workflow follows the Execute Workflow Trigger → OpenAI 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": "image_generation",
"nodes": [
{
"parameters": {
"inputSource": "passthrough"
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
-120,
-140
],
"id": "0709c92e-2939-4411-b6a7-cc106f7232fc",
"name": "When Executed by Another Workflow"
},
{
"parameters": {
"resource": "image",
"model": "gpt-image-1",
"prompt": "=Create the final recipe look , based on the recipe details below- \nTitle- {{ $json.title }}\nIngredients- {{ $json.ingredients }}\n\n",
"options": {
"quality": "medium",
"size": "1024x1024",
"returnImageUrls": true
}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
-240,
220
],
"id": "f70394d3-6122-4f8f-918d-4bbc3f8b67a4",
"name": "OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"tableId": "image_urls",
"fieldsUi": {
"fieldValues": [
{
"fieldId": "id",
"fieldValue": "={{ $('When Executed by Another Workflow').item.json.id }}"
},
{
"fieldId": "image_url",
"fieldValue": "={{ $json.url }}"
}
]
}
},
"type": "n8n-nodes-base.supabase",
"typeVersion": 1,
"position": [
340,
-140
],
"id": "5da1d805-eb5b-40c4-89ef-a95761a04307",
"name": "Supabase",
"credentials": {
"supabaseApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"resource": "image",
"prompt": "=Create the final recipe look , based on the recipe details below- \nTitle- {{ $json.title }}\nIngredients- {{ $json.ingredients }}\nGenerate a high-quality, photorealistic image only. Artistic, cartoon, or illustrated styles are strictly not allowed.",
"options": {
"size": "1024x1024",
"returnImageUrls": true
}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
120,
-140
],
"id": "cac96002-aab9-461c-aa78-3984bfd5a861",
"name": "OpenAI1",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"disabled": true
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "b64_json",
"options": {}
},
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
200,
140
],
"id": "5245b2f0-a0a1-4f4d-88ed-77067fefbcc4",
"name": "Convert to File"
},
{
"parameters": {
"operation": "binaryToPropery",
"options": {}
},
"type": "n8n-nodes-base.extractFromFile",
"typeVersion": 1,
"position": [
420,
140
],
"id": "1043d632-d4b0-42de-9e8d-2861eeb29e7d",
"name": "Extract from File"
}
],
"connections": {
"OpenAI": {
"main": [
[]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "OpenAI1",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[]
]
},
"OpenAI1": {
"main": [
[
{
"node": "Supabase",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "01f28345-0e10-4f40-86dc-43d0b536af93",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "zcnkvZzy74pHf4pk",
"tags": [
{
"createdAt": "2025-05-17T18:02:11.036Z",
"updatedAt": "2025-05-17T18:02:11.036Z",
"id": "ZzmT3Lhg98iXuRw2",
"name": "working"
}
]
}
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.
openAiApisupabaseApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
image_generation. Uses executeWorkflowTrigger, openAi, supabase. Event-driven trigger; 6 nodes.
Source: https://github.com/gtshinde/vAIbe_cooking/blob/366bed38ec87b1ee6eab98d1ddd105bad6012a30/n8n/image_generation.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.
Pitch Paul. Uses lmChatOpenRouter, telegram, outputParserStructured, supabaseTool. Event-driven trigger; 33 nodes.
Workana AI Agent: Generate Application Copy. Uses executeWorkflowTrigger, openAi. Event-driven trigger; 5 nodes.
How it Works
The best content automation template in the market is now even better—with “deep research” on time-sensitive topics\! Unlike most n8n content automation templates that are mainly for “demo purposes,”
Template Carnaval - time instagram. Uses toolWorkflow, lmChatOpenAi, memoryBufferWindow, agent. Event-driven trigger; 56 nodes.