This workflow follows the Execute Workflow Trigger → Postgres 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": "00-shared: Log Event",
"nodes": [
{
"parameters": {},
"id": "trg-log",
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"operation": "executeQuery",
"query": "INSERT INTO app.logs (workflow, module, level, message, context, execution_id) VALUES ($1, $2, $3, $4, $5::jsonb, $6);",
"options": {
"queryReplacement": "={{ $json.workflow || 'unknown' }},{{ $json.module || '' }},{{ $json.level || 'info' }},{{ $json.message || '' }},{{ JSON.stringify($json.context || {}) }},{{ $json.execution_id || $execution.id }}"
}
},
"id": "pg-log",
"name": "Insert Log Row",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2.5,
"position": [
480,
300
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Insert Log Row",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
}
}
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.
postgres
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
00-shared: Log Event. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.
Source: https://github.com/AskariJafri/job-search-os/blob/main/n8n/workflows/00-shared/log-event.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.
Calidad de Lata — 7b) Tool Consultar Evidencias. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 5 nodes.
Feedback Collection and Training Data. Uses executeWorkflowTrigger, postgres, httpRequest. Event-driven trigger; 4 nodes.
Interaction Logging Workflow. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.
Stage C. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 3 nodes.
Handoff_data. Uses executeWorkflowTrigger, postgres. Event-driven trigger; 2 nodes.