This workflow follows the HTTP Request → 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": "PokerHub Hand Analysis Flow",
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "poker-hand",
"responseMode": "responseNode",
"options": {}
},
"id": "webhook-trigger",
"name": "Webhook - New Hand",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"url": "http://server:3001/hand/simulate",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "playerCards",
"value": "={{ $json.playerCards }}"
},
{
"name": "communityCards",
"value": "={{ $json.communityCards }}"
},
{
"name": "numOpponents",
"value": "={{ $json.numOpponents || 2 }}"
}
]
},
"options": {}
},
"id": "simulate",
"name": "Monte Carlo Simulation",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
480,
300
]
},
{
"parameters": {
"url": "http://server:3001/bet/recommend",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "winProbability",
"value": "={{ $json.result.winProbability }}"
},
{
"name": "equity",
"value": "={{ $json.result.equity }}"
},
{
"name": "potSize",
"value": "={{ $('Webhook - New Hand').item.json.potSize || 200 }}"
},
{
"name": "callAmount",
"value": "={{ $('Webhook - New Hand').item.json.callAmount || 0 }}"
},
{
"name": "playerStack",
"value": "={{ $('Webhook - New Hand').item.json.playerStack || 5000 }}"
},
{
"name": "phase",
"value": "={{ $('Webhook - New Hand').item.json.phase || 'preflop' }}"
},
{
"name": "numOpponents",
"value": "={{ $('Webhook - New Hand').item.json.numOpponents || 2 }}"
}
]
},
"options": {}
},
"id": "recommend",
"name": "Bet Recommendation",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 3,
"position": [
720,
300
]
},
{
"parameters": {
"operation": "insert",
"schema": "public",
"table": "hands",
"columns": "player_cards, community_cards, phase, pot_size, win_probability",
"additionalFields": {}
},
"id": "store-hand",
"name": "Store Hand in DB",
"type": "n8n-nodes-base.postgres",
"typeVersion": 2,
"position": [
960,
300
],
"credentials": {
"postgres": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ { simulation: $('Monte Carlo Simulation').item.json.result, recommendation: $('Bet Recommendation').item.json.recommendation, handId: $('Store Hand in DB').item.json.id } }}"
},
"id": "respond",
"name": "Send Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
1200,
300
]
}
],
"connections": {
"Webhook - New Hand": {
"main": [
[
{
"node": "Monte Carlo Simulation",
"type": "main",
"index": 0
}
]
]
},
"Monte Carlo Simulation": {
"main": [
[
{
"node": "Bet Recommendation",
"type": "main",
"index": 0
}
]
]
},
"Bet Recommendation": {
"main": [
[
{
"node": "Store Hand in DB",
"type": "main",
"index": 0
}
]
]
},
"Store Hand in DB": {
"main": [
[
{
"node": "Send Response",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1"
},
"id": "pokerhub-flow-001"
}
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
PokerHub Hand Analysis Flow. Uses httpRequest, postgres. Webhook trigger; 5 nodes.
Source: https://github.com/comarni/PokerHub/blob/1c443bd45b8f6cd88839200e12d62fae6ef6b166/n8n/poker-flow.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.
CMM. Uses httpRequest, postgres, redis. Webhook trigger; 90 nodes.
Scraping. Uses httpRequest, postgres, @apify/n8n-nodes-apify, respondToWebhook. Webhook trigger; 61 nodes.
Workflow B — AI Listing Engine. Uses httpRequest, postgres, errorTrigger. Webhook trigger; 47 nodes.
LogSentinel Workflow. Uses postgres, emailSend, httpRequest. Webhook trigger; 44 nodes.
Pawa VAPI Tools v2 (live-schema). Uses postgres, httpRequest. Webhook trigger; 36 nodes.