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": "User Integration Setup",
"nodes": [
{
"name": "Config Webhook",
"type": "n8n-nodes-base.webhook",
"parameters": {
"httpMethod": "POST",
"path": "user/configure",
"responseData": "allEntries"
},
"position": [
250,
200
]
},
{
"name": "Auth0 SSO",
"type": "n8n-nodes-base.httpRequest",
"parameters": {
"url": "={{$env.AUTH0_ISSUER_URL}}/oauth/token",
"method": "POST",
"bodyParametersJson": "{\"grant_type\":\"authorization_code\",\"code\":\"{{$json[\"code\"]}}\",\"redirect_uri\":\"{{$env.REDIRECT_URI}}\",\"client_id\":\"{{$env.AUTH0_CLIENT_ID}}\",\"client_secret\":\"{{$env.AUTH0_CLIENT_SECRET}}\"}"
},
"position": [
450,
200
]
},
{
"name": "Save User",
"type": "n8n-nodes-base.postgres",
"parameters": {
"operation": "insert",
"table": "users",
"columns": [
{
"name": "auth0_id",
"value": "={{$node[\"Auth0 SSO\"].json[\"sub\"]}}"
},
{
"name": "email",
"value": "={{$node[\"Auth0 SSO\"].json[\"email\"]}}"
}
]
},
"position": [
650,
200
]
},
{
"name": "Configure WhatsApp",
"type": "n8n-nodes-base.set",
"parameters": {
"values": {
"string": [
{
"name": "whatsapp_api_url",
"value": "={{$json[\"whatsapp_api_url\"]}}"
},
{
"name": "whatsapp_token",
"value": "={{$json[\"whatsapp_token\"]}}"
}
]
}
},
"position": [
450,
350
]
},
{
"name": "Save Integrations",
"type": "n8n-nodes-base.postgres",
"parameters": {
"operation": "upsert",
"table": "user_integrations",
"columns": [
{
"name": "user_id",
"value": "={{$node[\"Save User\"].json[\"id\"]}}"
},
{
"name": "key",
"value": "={{$json[\"key\"]}}"
},
{
"name": "value",
"value": "={{$json[\"value\"]}}"
}
],
"conflictKey": "user_id,key"
},
"position": [
650,
350
]
}
],
"connections": {
"Config Webhook": {
"main": [
[
{
"node": "Auth0 SSO",
"type": "main",
"index": 0
}
]
]
},
"Auth0 SSO": {
"main": [
[
{
"node": "Save User",
"type": "main",
"index": 0
}
]
]
},
"Save User": {
"main": [
[
{
"node": "Configure WhatsApp",
"type": "main",
"index": 0
}
]
]
},
"Configure WhatsApp": {
"main": [
[
{
"node": "Save Integrations",
"type": "main",
"index": 0
}
]
]
}
}
}
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
User Integration Setup. Uses httpRequest, postgres. Webhook trigger; 5 nodes.
Source: https://github.com/sun-dev-kn/AI-marketing-automation/blob/50bdda4e267d9ec838e09d165a376257364c0793/n8n-workflows/Setup.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.
This workflow automates bulk email campaigns with built-in validation, deliverability protection, and smart send-time optimization.
get-data-for-marketting-dashboard. Uses postgres, googleAnalytics, httpRequest. Webhook trigger; 20 nodes.
Enrich person L3. Uses executeWorkflowTrigger, postgres, perplexity, httpRequest. Webhook trigger; 12 nodes.
Kreativ: Lead Scoring. Uses executeWorkflowTrigger, postgres, httpRequest. Webhook trigger; 8 nodes.
Workflow A — WhatsApp Lead Intake & Qualification. Uses postgres, httpRequest, errorTrigger. Scheduled trigger; 67 nodes.