{"updatedAt":"2026-04-15T19:39:47.901Z","createdAt":"2026-04-10T00:09:40.388Z","id":"21cXlP5tZ1WF3PIq","name":"EN — Client Onboarding → GHL","description":null,"active":true,"isArchived":false,"nodes":[{"parameters":{"httpMethod":"POST","path":"en-onboard","responseMode":"responseNode","options":{"allowedOrigins":"*"}},"id":"a1b2c3d4-0001-0001-0001-000000000001","name":"Onboarding Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[240,300],"webhookId":"en-onboard"},{"parameters":{"method":"POST","url":"https://services.leadconnectorhq.com/contacts/upsert","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Authorization","value":"Bearer pit-0947beb9-c594-4e74-865e-6b3ad8b562ef"},{"name":"Version","value":"2021-07-28"},{"name":"Content-Type","value":"application/json"}]},"sendBody":true,"specifyBody":"json","jsonBody":"={{ (() => {\n  const svc = (() => { try { return JSON.parse($json.body.services || '[]'); } catch(e) { return []; } })();\n  const cmp = (() => { try { return JSON.parse($json.body.competitors || '[]'); } catch(e) { return []; } })();\n  const bc  = (() => { try { return JSON.parse($json.body.brand_colors || '{}'); } catch(e) { return {}; } })();\n  const ct  = $json.body.audience_type === 'consumer' ? 'creator' : ($json.body.audience_type || '');\n  return JSON.stringify({\n    locationId: '0e0axgfXYSsM0J690HlY',\n    firstName: $json.body.first_name || '',\n    lastName:  $json.body.last_name  || '',\n    email:     $json.body.email || undefined,\n    phone:     $json.body.phone || undefined,\n    companyName: $json.body.biz_name || '',\n    website:   $json.body.website || '',\n    source: 'Onboarding Form',\n    tags: [\n      'onboarded','new-client',\n      ...(ct ? ['client-type:' + ct] : []),\n      ...($json.body.platforms ? $json.body.platforms.split(', ').filter(Boolean).map(p => 'platform:' + p.toLowerCase().replace(/[^a-z0-9]+/g,'-')) : [])\n    ],\n    customFields: [\n      { id: '8niXs50F7qhP9yzHIN5M',         field_value: ct },\n      { id: 'rTOiI3sde34uoLrmFce0',               field_value: $json.body.niche || '' },\n      { id: 'xjwb91X3Rk5AkgRDDhv7',             field_value: $json.body.tagline || '' },\n      { id: 'JP8z9ByvxbhVAQsH0DP6',    field_value: $json.body.ig || '' },\n      { id: 'MTSDWC9Vf1sF4zHac4sQ',       field_value: $json.body.tt || '' },\n      { id: 'FVZgHxVMNdzKdRVVEp93',     field_value: $json.body.fb || '' },\n      { id: '2h8LTSrgcY3MJ4hyK4sG',      field_value: $json.body.yt || '' },\n      { id: '5HbhacK5OrztymnqHcht',     field_value: $json.body.li || '' },\n      { id: 'qSlQk8SzgILZwhfUWtFf',      field_value: $json.body.th || '' },\n      { id: 'w1jjuVy1Bg9pkMXLHsBt',    field_value: $json.body.pi || '' },\n      { id: '6KEXoRkrCEWsHwU75reg', field_value: $json.body.gb || '' },\n      { id: 'ajSVVCZfIGQrfdb2jWNH',   field_value: $json.body.ai_assistant_name || '' },\n      { id: 'rHGJvjPAOh1NBgtyfJis',    field_value: $json.body.geo_focus || '' },\n      { id: '9Wp7iOPL1xIci24pyU2c',   field_value: $json.body.geo_detail || '' },\n      { id: 'fWj5FYrwb04kDn2mEFQm',        field_value: $json.body.primary_goal || '' },\n      { id: 'LMSKoMytyvVZwimBOnwB',    field_value: $json.body.website_platform || '' },\n      { id: 'H9MGLlOCBNnvd9axKi8k',    field_value: $json.body.domain_registrar || '' },\n      { id: 'RPDnrLEEq7J4G0UByjcR',         field_value: $json.body.current_crm || '' },\n      { id: 'Z92VuyBz9H0FTyoRVKnr',                field_value: $json.body.tone || '' },\n      { id: 'U84smXILtNh7kKIXNriN',         field_value: $json.body.mood_anchor || '' },\n      { id: 'U2bdfSBbJV60Er66Bme8',     field_value: $json.body.analytics || '' },\n      { id: 'hDI3zLbgqrvjxwWdCwQq',         field_value: $json.body.ad_accounts || '' },\n      { id: 'uvAlSxPVcenxYHgWZTCI',   field_value: $json.body.ga4_measurement_id || '' },\n      { id: 'VZw58mPa6uaPS36QQPtH',       field_value: $json.body.meta_pixel_id || '' },\n      { id: 'K1SbvmWH7G7ssUloeneP',    field_value: $json.body.gtm_container_id || '' },\n      { id: 'BLbiyhBSg912PqXroltf',    field_value: $json.body.fb_page_id || '' },\n      { id: 'dTKlRlmduc1EVjhumjT1',    field_value: $json.body.revenue_tracking || '' },\n      { id: '5h20PhbphJ6MfFYN0o5M',    field_value: $json.body.unfair_advantage || '' },\n      { id: 'C1lXU4me6jsLJax97tYX',        field_value: $json.body.testimonials || '' },\n      { id: 'OcuYZv9Vm6opmJfnPg5y',      field_value: (svc[0] && svc[0].name)  || '' },\n      { id: 'C3w0lsVzlakdLnZdJfdF',     field_value: (svc[0] && svc[0].price) || '' },\n      { id: 'BvH6elxhQT01AiI7RHMr', field_value: (svc[0] && svc[0].about) || '' },\n      { id: '2Fyr5jg7ieTJUloigPa4',      field_value: (svc[1] && svc[1].name)  || '' },\n      { id: 'KV1027Cs81tiClMjKbSF',     field_value: (svc[1] && svc[1].price) || '' },\n      { id: '5SSrcQ108RtlSDT8DEnW', field_value: (svc[1] && svc[1].about) || '' },\n      { id: 'FcETg1CUwt93mMJZexNA',      field_value: (svc[2] && svc[2].name)  || '' },\n      { id: '1YaFHZcQKCfHIg2OXSN1',     field_value: (svc[2] && svc[2].price) || '' },\n      { id: 'ibpmGyK2s2b8xg71Slw5', field_value: (svc[2] && svc[2].about) || '' },\n      { id: 'Chb7GOMqth7q1mDgg0xh',   field_value: cmp[0] || '' },\n      { id: 'Hyj3bTdDFgG8yPnzzCU5',   field_value: cmp[1] || '' },\n      { id: 'lBGMXzkZmirRaPIZiiBe',   field_value: cmp[2] || '' },\n      { id: 'RyeaXxGYiqZq9HPIISHb', field_value: bc.primary   || '' },\n      { id: '7opVRMtFimZMNfkIRg0m', field_value: bc.secondary || '' }\n    ].filter(f => f.field_value)\n  });\n})() }}","options":{}},"id":"a1b2c3d4-0002-0002-0002-000000000002","name":"GHL — Upsert Contact","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[500,160]},{"parameters":{"method":"POST","url":"=https://services.leadconnectorhq.com/contacts/{{ $json.contact.id }}/notes","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Authorization","value":"Bearer pit-0947beb9-c594-4e74-865e-6b3ad8b562ef"},{"name":"Version","value":"2021-07-28"},{"name":"Content-Type","value":"application/json"}]},"sendBody":true,"specifyBody":"json","jsonBody":"={{ JSON.stringify({\n  body: [\n    '📋 ONBOARDING FORM — ' + new Date($('Onboarding Webhook').item.json.body.submitted_at).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' }),\n    '',\n    'BUSINESS',\n    'Company: ' + ($('Onboarding Webhook').item.json.body.biz_name || '—'),\n    'Niche: ' + ($('Onboarding Webhook').item.json.body.niche || '—'),\n    'Website: ' + ($('Onboarding Webhook').item.json.body.website || '—'),\n    'Client Type: ' + ($('Onboarding Webhook').item.json.body.audience_type === 'consumer' ? 'creator' : ($('Onboarding Webhook').item.json.body.audience_type || '—')),\n    '',\n    'SOCIAL HANDLES',\n    ...[$('Onboarding Webhook').item.json.body.ig  ? 'Instagram: ' + $('Onboarding Webhook').item.json.body.ig : null,\n       $('Onboarding Webhook').item.json.body.fb  ? 'Facebook: '  + $('Onboarding Webhook').item.json.body.fb : null,\n       $('Onboarding Webhook').item.json.body.tt  ? 'TikTok: '    + $('Onboarding Webhook').item.json.body.tt : null,\n       $('Onboarding Webhook').item.json.body.yt  ? 'YouTube: '   + $('Onboarding Webhook').item.json.body.yt : null,\n       $('Onboarding Webhook').item.json.body.li  ? 'LinkedIn: '  + $('Onboarding Webhook').item.json.body.li : null,\n       $('Onboarding Webhook').item.json.body.th  ? 'Threads: '   + $('Onboarding Webhook').item.json.body.th : null,\n       $('Onboarding Webhook').item.json.body.pi  ? 'Pinterest: ' + $('Onboarding Webhook').item.json.body.pi : null,\n       $('Onboarding Webhook').item.json.body.gb  ? 'Google Business: ' + $('Onboarding Webhook').item.json.body.gb : null\n    ].filter(Boolean),\n    '',\n    'CONTENT PREFERENCES',\n    'Tone: ' + ($('Onboarding Webhook').item.json.body.tone || '—'),\n    'Format: ' + ($('Onboarding Webhook').item.json.body.content_format || '—'),\n    'Avoid: ' + ($('Onboarding Webhook').item.json.body.avoid || '—'),\n    'Inspiration: ' + ($('Onboarding Webhook').item.json.body.inspo || '—'),\n    '',\n    'PLATFORMS',\n    $('Onboarding Webhook').item.json.body.platforms || '—',\n    '',\n    'GOALS & TRACKING',\n    'Primary Goal: ' + ($('Onboarding Webhook').item.json.body.primary_goal || '—'),\n    'Revenue Tracking: ' + ($('Onboarding Webhook').item.json.body.revenue_tracking || '—'),\n    '',\n    'ADDITIONAL NOTES',\n    $('Onboarding Webhook').item.json.body.notes || '—',\n    '',\n    'TECH STACK',\n    'Website Platform: ' + ($('Onboarding Webhook').item.json.body.website_platform || '—'),\n    'Domain Registrar: ' + ($('Onboarding Webhook').item.json.body.domain_registrar || '—'),\n    'CRM: ' + ($('Onboarding Webhook').item.json.body.current_crm || '—'),\n    'Analytics: ' + ($('Onboarding Webhook').item.json.body.analytics || '—'),\n    'Ad Accounts: ' + ($('Onboarding Webhook').item.json.body.ad_accounts || '—'),\n    ...[$('Onboarding Webhook').item.json.body.tech_notes ? 'Notes: ' + $('Onboarding Webhook').item.json.body.tech_notes : null\n    ].filter(Boolean),\n    '',\n    'CONNECTED ACCOUNTS (OAuth)',\n    $('Onboarding Webhook').item.json.body.platforms_connected\n      ? 'Connected via OAuth: ' + $('Onboarding Webhook').item.json.body.platforms_connected\n      : ($('Onboarding Webhook').item.json.body.oauth_skipped === 'yes' ? 'Skipped — will connect on onboarding call' : 'None connected'),\n    '',\n    'GEOGRAPHIC FOCUS',\n    'Market: ' + ($('Onboarding Webhook').item.json.body.geo_focus || '—'),\n    ...[$('Onboarding Webhook').item.json.body.geo_detail ? 'Detail: ' + $('Onboarding Webhook').item.json.body.geo_detail : null].filter(Boolean),\n    '',\n    'SERVICES / PRODUCTS',\n    ...(() => { try { const s = JSON.parse($('Onboarding Webhook').item.json.body.services || '[]'); return s.length ? s.map((x,i) => (i+1) + '. ' + (x.name || '—') + ' (' + (x.price || '—') + ')' + (x.about ? ' — ' + x.about : '')) : ['—']; } catch(e) { return ['—']; } })(),\n    '',\n    'UNFAIR ADVANTAGE / FOUNDER STORY',\n    $('Onboarding Webhook').item.json.body.unfair_advantage || '—',\n    '',\n    'COMPETITORS',\n    ...(() => { try { const c = JSON.parse($('Onboarding Webhook').item.json.body.competitors || '[]'); return c.length ? c : ['—']; } catch(e) { return ['—']; } })(),\n    '',\n    'TRACKING IDS',\n    ...[$('Onboarding Webhook').item.json.body.ga4_measurement_id ? 'GA4: ' + $('Onboarding Webhook').item.json.body.ga4_measurement_id : null,\n       $('Onboarding Webhook').item.json.body.meta_pixel_id ? 'Meta Pixel: ' + $('Onboarding Webhook').item.json.body.meta_pixel_id : null,\n       $('Onboarding Webhook').item.json.body.gtm_container_id ? 'GTM: ' + $('Onboarding Webhook').item.json.body.gtm_container_id : null,\n       $('Onboarding Webhook').item.json.body.fb_page_id ? 'FB Page ID: ' + $('Onboarding Webhook').item.json.body.fb_page_id : null\n    ].filter(Boolean),\n    ...(() => { const ids = [$('Onboarding Webhook').item.json.body.ga4_measurement_id, $('Onboarding Webhook').item.json.body.meta_pixel_id, $('Onboarding Webhook').item.json.body.gtm_container_id, $('Onboarding Webhook').item.json.body.fb_page_id].filter(Boolean); return ids.length ? [] : ['—']; })(),\n    '',\n    'AI ASSISTANT',\n    'Name: ' + ($('Onboarding Webhook').item.json.body.ai_assistant_name || '—'),\n    '',\n    'TESTIMONIALS',\n    $('Onboarding Webhook').item.json.body.testimonials || '—'\n  ].join('\\n')\n}) }}","options":{}},"id":"a1b2c3d4-0003-0003-0003-000000000003","name":"GHL — Create Note","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[760,160]},{"parameters":{"operation":"append","documentId":{"__rl":true,"value":"1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k","mode":"id"},"sheetName":{"__rl":true,"value":"gid=0","mode":"list","cachedResultName":"Sheet1","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k/edit#gid=0"},"columns":{"mappingMode":"defineBelow","value":{"Business Name":"={{ $('Onboarding Webhook').item.json.body.biz_name }}","Status":"pending","Submitted At":"={{ $('Onboarding Webhook').item.json.body.submitted_at }}","GHL Contact ID":"={{ $('GHL — Upsert Contact').item.json.contact.id }}","Brand Color Primary":"={{ (() => { try { return JSON.parse($('Onboarding Webhook').item.json.body.brand_colors || '{}').primary || ''; } catch(e) { return ''; } })() }}","Brand Color Secondary":"={{ (() => { try { return JSON.parse($('Onboarding Webhook').item.json.body.brand_colors || '{}').secondary || ''; } catch(e) { return ''; } })() }}","Brand Files":"={{ (() => { try { const files = JSON.parse($('Onboarding Webhook').item.json.body.brand_files || '[]'); return JSON.stringify(files.map(f => ({label: f.label, name: f.name, size: (f.dataUrl || '').length}))); } catch(e) { return '[]'; } })() }}","Services Enabled":"={{ $('Onboarding Webhook').item.json.body.services_enabled || 'resources,profile' }}","Location ID":"={{ $('Onboarding Webhook').item.json.body.lid || '' }}"},"schema":[]},"options":{}},"id":"a1b2c3d4-0008-0008-0008-000000000008","name":"Sheets — Add to Onboarding Queue","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[1020,300],"credentials":{"googleSheetsOAuth2Api":{"id":"OhjizsinSISmx4Gl","name":"Google Sheets OAuth2 API"}}},{"parameters":{"sendTo":"bfolsom@emersonnorth.com","subject":"=New Onboarding Submission — {{ $('Onboarding Webhook').item.json.body.biz_name || $('Onboarding Webhook').item.json.body.first_name + ' ' + $('Onboarding Webhook').item.json.body.last_name }}","message":"={{ `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<title>New Onboarding Submission</title>\n</head>\n<body style=\"margin:0;padding:0;background:#0a0a0a;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;\">\n  <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#0a0a0a;padding:40px 20px;\">\n    <tr><td align=\"center\">\n      <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width:600px;width:100%;\">\n        <tr>\n          <td style=\"padding-bottom:32px;border-bottom:1px solid #1e1e1e;\">\n            <p style=\"margin:0;font-size:13px;letter-spacing:0.15em;text-transform:uppercase;color:#666;\">Emerson North</p>\n            <h1 style=\"margin:12px 0 0;font-size:26px;font-weight:600;color:#f5f5f5;letter-spacing:-0.02em;\">New Onboarding Submission</h1>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding:28px 0 0;\">\n            <p style=\"margin:0 0 4px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Client</p>\n            <p style=\"margin:0;font-size:20px;font-weight:600;color:#f5f5f5;\">${$('Onboarding Webhook').item.json.body.first_name} ${$('Onboarding Webhook').item.json.body.last_name}</p>\n            <p style=\"margin:4px 0 0;font-size:14px;color:#888;\">${$('Onboarding Webhook').item.json.body.biz_name || '—'} ${ $('Onboarding Webhook').item.json.body.niche ? '· ' + $('Onboarding Webhook').item.json.body.niche : '' }</p>\n            <p style=\"margin:4px 0 0;font-size:12px;color:#666;\">Client Type: ${$('Onboarding Webhook').item.json.body.audience_type === 'consumer' ? 'creator' : ($('Onboarding Webhook').item.json.body.audience_type || '—')}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding:20px 0 0;\">\n            <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n              <tr>\n                <td style=\"padding-right:16px;\">\n                  <p style=\"margin:0 0 2px;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:#555;\">Email</p>\n                  <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.email || '—'}</p>\n                </td>\n                <td>\n                  <p style=\"margin:0 0 2px;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:#555;\">Phone</p>\n                  <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.phone || '—'}</p>\n                </td>\n              </tr>\n            </table>\n          </td>\n        </tr>\n        <tr><td style=\"padding:24px 0;\"><div style=\"border-top:1px solid #1e1e1e;\"></div></td></tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Platforms</p>\n            <p style=\"margin:0;font-size:14px;color:#c8c8c8;line-height:1.6;\">${$('Onboarding Webhook').item.json.body.platforms || '—'}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Primary Goal</p>\n            <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.primary_goal || '—'}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Running automatically</p>\n            <p style=\"margin:0;font-size:14px;color:#4ade80;\">✓ Added to Onboarding Queue — Mac Mini will process within 2 minutes</p>\n          </td>\n        </tr>\n        <tr><td style=\"padding:24px 0 0;\"><div style=\"border-top:1px solid #1e1e1e;\"></div></td></tr>\n        <tr>\n          <td style=\"padding-top:24px;\">\n            <p style=\"margin:0;font-size:12px;color:#444;\">Emerson North · Automated Notification</p>\n          </td>\n        </tr>\n      </table>\n    </td></tr>\n  </table>\n</body>\n</html>` }}","options":{"allowUnauthorizedCerts":false,"appendAttribution":false}},"id":"a1b2c3d4-0007-0007-0007-000000000007","name":"Gmail — Notify Bryce","type":"n8n-nodes-base.gmail","typeVersion":2.1,"position":[1280,160],"credentials":{"gmailOAuth2":{"id":"g9I6fVtERQ0B0Eed","name":"Gmail account"}}},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify({ ok: true, contactId: $('GHL — Upsert Contact').item.json.contact.id }) }}","options":{}},"id":"a1b2c3d4-0004-0004-0004-000000000004","name":"Respond 200","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.1,"position":[1540,160]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"oauth-check","leftValue":"={{ $json.body.platforms_connected }}","rightValue":"","operator":{"type":"string","operation":"notEquals"}}],"combinator":"and"},"options":{}},"id":"a1b2c3d4-0005-0005-0005-000000000005","name":"Has OAuth Connections?","type":"n8n-nodes-base.if","typeVersion":2.2,"position":[500,460]},{"parameters":{"operation":"append","documentId":{"__rl":true,"value":"1RNQssJwYfCZyc6ZdQsftqy4UqsdhLb2v5svqVikEXoI","mode":"id"},"sheetName":{"__rl":true,"value":"gid=0","mode":"list","cachedResultName":"Sheet1","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k/edit#gid=0"},"columns":{"mappingMode":"defineBelow","value":{"Date Submitted":"={{ $('Onboarding Webhook').item.json.body.submitted_at }}","Business Name":"={{ $('Onboarding Webhook').item.json.body.biz_name }}","First Name":"={{ $('Onboarding Webhook').item.json.body.first_name }}","Last Name":"={{ $('Onboarding Webhook').item.json.body.last_name }}","Email":"={{ $('Onboarding Webhook').item.json.body.email }}","Platforms Selected":"={{ $('Onboarding Webhook').item.json.body.platforms }}","Platforms Connected (OAuth)":"={{ $('Onboarding Webhook').item.json.body.platforms_connected }}","OAuth Skipped":"={{ $('Onboarding Webhook').item.json.body.oauth_skipped }}"},"schema":[]},"options":{}},"id":"a1b2c3d4-0006-0006-0006-000000000006","name":"Sheets — Log OAuth Connections","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[760,460],"credentials":{"googleSheetsOAuth2Api":{"id":"OhjizsinSISmx4Gl","name":"Google Sheets OAuth2 API"}}}],"connections":{"Onboarding Webhook":{"main":[[{"node":"GHL — Upsert Contact","type":"main","index":0},{"node":"Has OAuth Connections?","type":"main","index":0}]]},"GHL — Upsert Contact":{"main":[[{"node":"GHL — Create Note","type":"main","index":0}]]},"GHL — Create Note":{"main":[[{"node":"Sheets — Add to Onboarding Queue","type":"main","index":0},{"node":"Gmail — Notify Bryce","type":"main","index":0}]]},"Sheets — Add to Onboarding Queue":{"main":[[{"node":"Respond 200","type":"main","index":0}]]},"Gmail — Notify Bryce":{"main":[[{"node":"Respond 200","type":"main","index":0}]]},"Has OAuth Connections?":{"main":[[{"node":"Sheets — Log OAuth Connections","type":"main","index":0}],[]]}},"settings":{"executionOrder":"v1","callerPolicy":"workflowsFromSameOwner","availableInMCP":false},"staticData":null,"meta":null,"pinData":null,"versionId":"bd493b5f-b7b6-4e92-82e2-14ae55ab3382","activeVersionId":"bd493b5f-b7b6-4e92-82e2-14ae55ab3382","versionCounter":60,"triggerCount":1,"shared":[{"updatedAt":"2026-04-10T00:09:40.391Z","createdAt":"2026-04-10T00:09:40.391Z","role":"workflow:owner","workflowId":"21cXlP5tZ1WF3PIq","projectId":"91dLj8Hg37i136qG","project":{"updatedAt":"2026-03-22T06:53:28.112Z","createdAt":"2026-02-12T18:32:53.056Z","id":"91dLj8Hg37i136qG","name":"Bryce Folsom <bfolsom@emersonnorth.com>","type":"personal","icon":null,"description":null,"creatorId":"17d3676f-3e74-4586-8363-5c1f4d237ed7"}}],"tags":[],"activeVersion":{"updatedAt":"2026-04-15T19:39:47.902Z","createdAt":"2026-04-15T19:39:47.902Z","versionId":"bd493b5f-b7b6-4e92-82e2-14ae55ab3382","workflowId":"21cXlP5tZ1WF3PIq","nodes":[{"parameters":{"httpMethod":"POST","path":"en-onboard","responseMode":"responseNode","options":{"allowedOrigins":"*"}},"id":"a1b2c3d4-0001-0001-0001-000000000001","name":"Onboarding Webhook","type":"n8n-nodes-base.webhook","typeVersion":2,"position":[240,300],"webhookId":"en-onboard"},{"parameters":{"method":"POST","url":"https://services.leadconnectorhq.com/contacts/upsert","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Authorization","value":"Bearer pit-0947beb9-c594-4e74-865e-6b3ad8b562ef"},{"name":"Version","value":"2021-07-28"},{"name":"Content-Type","value":"application/json"}]},"sendBody":true,"specifyBody":"json","jsonBody":"={{ (() => {\n  const svc = (() => { try { return JSON.parse($json.body.services || '[]'); } catch(e) { return []; } })();\n  const cmp = (() => { try { return JSON.parse($json.body.competitors || '[]'); } catch(e) { return []; } })();\n  const bc  = (() => { try { return JSON.parse($json.body.brand_colors || '{}'); } catch(e) { return {}; } })();\n  const ct  = $json.body.audience_type === 'consumer' ? 'creator' : ($json.body.audience_type || '');\n  return JSON.stringify({\n    locationId: '0e0axgfXYSsM0J690HlY',\n    firstName: $json.body.first_name || '',\n    lastName:  $json.body.last_name  || '',\n    email:     $json.body.email || undefined,\n    phone:     $json.body.phone || undefined,\n    companyName: $json.body.biz_name || '',\n    website:   $json.body.website || '',\n    source: 'Onboarding Form',\n    tags: [\n      'onboarded','new-client',\n      ...(ct ? ['client-type:' + ct] : []),\n      ...($json.body.platforms ? $json.body.platforms.split(', ').filter(Boolean).map(p => 'platform:' + p.toLowerCase().replace(/[^a-z0-9]+/g,'-')) : [])\n    ],\n    customFields: [\n      { id: '8niXs50F7qhP9yzHIN5M',         field_value: ct },\n      { id: 'rTOiI3sde34uoLrmFce0',               field_value: $json.body.niche || '' },\n      { id: 'xjwb91X3Rk5AkgRDDhv7',             field_value: $json.body.tagline || '' },\n      { id: 'JP8z9ByvxbhVAQsH0DP6',    field_value: $json.body.ig || '' },\n      { id: 'MTSDWC9Vf1sF4zHac4sQ',       field_value: $json.body.tt || '' },\n      { id: 'FVZgHxVMNdzKdRVVEp93',     field_value: $json.body.fb || '' },\n      { id: '2h8LTSrgcY3MJ4hyK4sG',      field_value: $json.body.yt || '' },\n      { id: '5HbhacK5OrztymnqHcht',     field_value: $json.body.li || '' },\n      { id: 'qSlQk8SzgILZwhfUWtFf',      field_value: $json.body.th || '' },\n      { id: 'w1jjuVy1Bg9pkMXLHsBt',    field_value: $json.body.pi || '' },\n      { id: '6KEXoRkrCEWsHwU75reg', field_value: $json.body.gb || '' },\n      { id: 'ajSVVCZfIGQrfdb2jWNH',   field_value: $json.body.ai_assistant_name || '' },\n      { id: 'rHGJvjPAOh1NBgtyfJis',    field_value: $json.body.geo_focus || '' },\n      { id: '9Wp7iOPL1xIci24pyU2c',   field_value: $json.body.geo_detail || '' },\n      { id: 'fWj5FYrwb04kDn2mEFQm',        field_value: $json.body.primary_goal || '' },\n      { id: 'LMSKoMytyvVZwimBOnwB',    field_value: $json.body.website_platform || '' },\n      { id: 'H9MGLlOCBNnvd9axKi8k',    field_value: $json.body.domain_registrar || '' },\n      { id: 'RPDnrLEEq7J4G0UByjcR',         field_value: $json.body.current_crm || '' },\n      { id: 'Z92VuyBz9H0FTyoRVKnr',                field_value: $json.body.tone || '' },\n      { id: 'U84smXILtNh7kKIXNriN',         field_value: $json.body.mood_anchor || '' },\n      { id: 'U2bdfSBbJV60Er66Bme8',     field_value: $json.body.analytics || '' },\n      { id: 'hDI3zLbgqrvjxwWdCwQq',         field_value: $json.body.ad_accounts || '' },\n      { id: 'uvAlSxPVcenxYHgWZTCI',   field_value: $json.body.ga4_measurement_id || '' },\n      { id: 'VZw58mPa6uaPS36QQPtH',       field_value: $json.body.meta_pixel_id || '' },\n      { id: 'K1SbvmWH7G7ssUloeneP',    field_value: $json.body.gtm_container_id || '' },\n      { id: 'BLbiyhBSg912PqXroltf',    field_value: $json.body.fb_page_id || '' },\n      { id: 'dTKlRlmduc1EVjhumjT1',    field_value: $json.body.revenue_tracking || '' },\n      { id: '5h20PhbphJ6MfFYN0o5M',    field_value: $json.body.unfair_advantage || '' },\n      { id: 'C1lXU4me6jsLJax97tYX',        field_value: $json.body.testimonials || '' },\n      { id: 'OcuYZv9Vm6opmJfnPg5y',      field_value: (svc[0] && svc[0].name)  || '' },\n      { id: 'C3w0lsVzlakdLnZdJfdF',     field_value: (svc[0] && svc[0].price) || '' },\n      { id: 'BvH6elxhQT01AiI7RHMr', field_value: (svc[0] && svc[0].about) || '' },\n      { id: '2Fyr5jg7ieTJUloigPa4',      field_value: (svc[1] && svc[1].name)  || '' },\n      { id: 'KV1027Cs81tiClMjKbSF',     field_value: (svc[1] && svc[1].price) || '' },\n      { id: '5SSrcQ108RtlSDT8DEnW', field_value: (svc[1] && svc[1].about) || '' },\n      { id: 'FcETg1CUwt93mMJZexNA',      field_value: (svc[2] && svc[2].name)  || '' },\n      { id: '1YaFHZcQKCfHIg2OXSN1',     field_value: (svc[2] && svc[2].price) || '' },\n      { id: 'ibpmGyK2s2b8xg71Slw5', field_value: (svc[2] && svc[2].about) || '' },\n      { id: 'Chb7GOMqth7q1mDgg0xh',   field_value: cmp[0] || '' },\n      { id: 'Hyj3bTdDFgG8yPnzzCU5',   field_value: cmp[1] || '' },\n      { id: 'lBGMXzkZmirRaPIZiiBe',   field_value: cmp[2] || '' },\n      { id: 'RyeaXxGYiqZq9HPIISHb', field_value: bc.primary   || '' },\n      { id: '7opVRMtFimZMNfkIRg0m', field_value: bc.secondary || '' }\n    ].filter(f => f.field_value)\n  });\n})() }}","options":{}},"id":"a1b2c3d4-0002-0002-0002-000000000002","name":"GHL — Upsert Contact","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[500,160]},{"parameters":{"method":"POST","url":"=https://services.leadconnectorhq.com/contacts/{{ $json.contact.id }}/notes","sendHeaders":true,"headerParameters":{"parameters":[{"name":"Authorization","value":"Bearer pit-0947beb9-c594-4e74-865e-6b3ad8b562ef"},{"name":"Version","value":"2021-07-28"},{"name":"Content-Type","value":"application/json"}]},"sendBody":true,"specifyBody":"json","jsonBody":"={{ JSON.stringify({\n  body: [\n    '📋 ONBOARDING FORM — ' + new Date($('Onboarding Webhook').item.json.body.submitted_at).toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' }),\n    '',\n    'BUSINESS',\n    'Company: ' + ($('Onboarding Webhook').item.json.body.biz_name || '—'),\n    'Niche: ' + ($('Onboarding Webhook').item.json.body.niche || '—'),\n    'Website: ' + ($('Onboarding Webhook').item.json.body.website || '—'),\n    'Client Type: ' + ($('Onboarding Webhook').item.json.body.audience_type === 'consumer' ? 'creator' : ($('Onboarding Webhook').item.json.body.audience_type || '—')),\n    '',\n    'SOCIAL HANDLES',\n    ...[$('Onboarding Webhook').item.json.body.ig  ? 'Instagram: ' + $('Onboarding Webhook').item.json.body.ig : null,\n       $('Onboarding Webhook').item.json.body.fb  ? 'Facebook: '  + $('Onboarding Webhook').item.json.body.fb : null,\n       $('Onboarding Webhook').item.json.body.tt  ? 'TikTok: '    + $('Onboarding Webhook').item.json.body.tt : null,\n       $('Onboarding Webhook').item.json.body.yt  ? 'YouTube: '   + $('Onboarding Webhook').item.json.body.yt : null,\n       $('Onboarding Webhook').item.json.body.li  ? 'LinkedIn: '  + $('Onboarding Webhook').item.json.body.li : null,\n       $('Onboarding Webhook').item.json.body.th  ? 'Threads: '   + $('Onboarding Webhook').item.json.body.th : null,\n       $('Onboarding Webhook').item.json.body.pi  ? 'Pinterest: ' + $('Onboarding Webhook').item.json.body.pi : null,\n       $('Onboarding Webhook').item.json.body.gb  ? 'Google Business: ' + $('Onboarding Webhook').item.json.body.gb : null\n    ].filter(Boolean),\n    '',\n    'CONTENT PREFERENCES',\n    'Tone: ' + ($('Onboarding Webhook').item.json.body.tone || '—'),\n    'Format: ' + ($('Onboarding Webhook').item.json.body.content_format || '—'),\n    'Avoid: ' + ($('Onboarding Webhook').item.json.body.avoid || '—'),\n    'Inspiration: ' + ($('Onboarding Webhook').item.json.body.inspo || '—'),\n    '',\n    'PLATFORMS',\n    $('Onboarding Webhook').item.json.body.platforms || '—',\n    '',\n    'GOALS & TRACKING',\n    'Primary Goal: ' + ($('Onboarding Webhook').item.json.body.primary_goal || '—'),\n    'Revenue Tracking: ' + ($('Onboarding Webhook').item.json.body.revenue_tracking || '—'),\n    '',\n    'ADDITIONAL NOTES',\n    $('Onboarding Webhook').item.json.body.notes || '—',\n    '',\n    'TECH STACK',\n    'Website Platform: ' + ($('Onboarding Webhook').item.json.body.website_platform || '—'),\n    'Domain Registrar: ' + ($('Onboarding Webhook').item.json.body.domain_registrar || '—'),\n    'CRM: ' + ($('Onboarding Webhook').item.json.body.current_crm || '—'),\n    'Analytics: ' + ($('Onboarding Webhook').item.json.body.analytics || '—'),\n    'Ad Accounts: ' + ($('Onboarding Webhook').item.json.body.ad_accounts || '—'),\n    ...[$('Onboarding Webhook').item.json.body.tech_notes ? 'Notes: ' + $('Onboarding Webhook').item.json.body.tech_notes : null\n    ].filter(Boolean),\n    '',\n    'CONNECTED ACCOUNTS (OAuth)',\n    $('Onboarding Webhook').item.json.body.platforms_connected\n      ? 'Connected via OAuth: ' + $('Onboarding Webhook').item.json.body.platforms_connected\n      : ($('Onboarding Webhook').item.json.body.oauth_skipped === 'yes' ? 'Skipped — will connect on onboarding call' : 'None connected'),\n    '',\n    'GEOGRAPHIC FOCUS',\n    'Market: ' + ($('Onboarding Webhook').item.json.body.geo_focus || '—'),\n    ...[$('Onboarding Webhook').item.json.body.geo_detail ? 'Detail: ' + $('Onboarding Webhook').item.json.body.geo_detail : null].filter(Boolean),\n    '',\n    'SERVICES / PRODUCTS',\n    ...(() => { try { const s = JSON.parse($('Onboarding Webhook').item.json.body.services || '[]'); return s.length ? s.map((x,i) => (i+1) + '. ' + (x.name || '—') + ' (' + (x.price || '—') + ')' + (x.about ? ' — ' + x.about : '')) : ['—']; } catch(e) { return ['—']; } })(),\n    '',\n    'UNFAIR ADVANTAGE / FOUNDER STORY',\n    $('Onboarding Webhook').item.json.body.unfair_advantage || '—',\n    '',\n    'COMPETITORS',\n    ...(() => { try { const c = JSON.parse($('Onboarding Webhook').item.json.body.competitors || '[]'); return c.length ? c : ['—']; } catch(e) { return ['—']; } })(),\n    '',\n    'TRACKING IDS',\n    ...[$('Onboarding Webhook').item.json.body.ga4_measurement_id ? 'GA4: ' + $('Onboarding Webhook').item.json.body.ga4_measurement_id : null,\n       $('Onboarding Webhook').item.json.body.meta_pixel_id ? 'Meta Pixel: ' + $('Onboarding Webhook').item.json.body.meta_pixel_id : null,\n       $('Onboarding Webhook').item.json.body.gtm_container_id ? 'GTM: ' + $('Onboarding Webhook').item.json.body.gtm_container_id : null,\n       $('Onboarding Webhook').item.json.body.fb_page_id ? 'FB Page ID: ' + $('Onboarding Webhook').item.json.body.fb_page_id : null\n    ].filter(Boolean),\n    ...(() => { const ids = [$('Onboarding Webhook').item.json.body.ga4_measurement_id, $('Onboarding Webhook').item.json.body.meta_pixel_id, $('Onboarding Webhook').item.json.body.gtm_container_id, $('Onboarding Webhook').item.json.body.fb_page_id].filter(Boolean); return ids.length ? [] : ['—']; })(),\n    '',\n    'AI ASSISTANT',\n    'Name: ' + ($('Onboarding Webhook').item.json.body.ai_assistant_name || '—'),\n    '',\n    'TESTIMONIALS',\n    $('Onboarding Webhook').item.json.body.testimonials || '—'\n  ].join('\\n')\n}) }}","options":{}},"id":"a1b2c3d4-0003-0003-0003-000000000003","name":"GHL — Create Note","type":"n8n-nodes-base.httpRequest","typeVersion":4.2,"position":[760,160]},{"parameters":{"operation":"append","documentId":{"__rl":true,"value":"1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k","mode":"id"},"sheetName":{"__rl":true,"value":"gid=0","mode":"list","cachedResultName":"Sheet1","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k/edit#gid=0"},"columns":{"mappingMode":"defineBelow","value":{"Business Name":"={{ $('Onboarding Webhook').item.json.body.biz_name }}","Status":"pending","Submitted At":"={{ $('Onboarding Webhook').item.json.body.submitted_at }}","GHL Contact ID":"={{ $('GHL — Upsert Contact').item.json.contact.id }}","Brand Color Primary":"={{ (() => { try { return JSON.parse($('Onboarding Webhook').item.json.body.brand_colors || '{}').primary || ''; } catch(e) { return ''; } })() }}","Brand Color Secondary":"={{ (() => { try { return JSON.parse($('Onboarding Webhook').item.json.body.brand_colors || '{}').secondary || ''; } catch(e) { return ''; } })() }}","Brand Files":"={{ (() => { try { const files = JSON.parse($('Onboarding Webhook').item.json.body.brand_files || '[]'); return JSON.stringify(files.map(f => ({label: f.label, name: f.name, size: (f.dataUrl || '').length}))); } catch(e) { return '[]'; } })() }}","Services Enabled":"={{ $('Onboarding Webhook').item.json.body.services_enabled || 'resources,profile' }}","Location ID":"={{ $('Onboarding Webhook').item.json.body.lid || '' }}"},"schema":[]},"options":{}},"id":"a1b2c3d4-0008-0008-0008-000000000008","name":"Sheets — Add to Onboarding Queue","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[1020,300],"credentials":{"googleSheetsOAuth2Api":{"id":"OhjizsinSISmx4Gl","name":"Google Sheets OAuth2 API"}}},{"parameters":{"sendTo":"bfolsom@emersonnorth.com","subject":"=New Onboarding Submission — {{ $('Onboarding Webhook').item.json.body.biz_name || $('Onboarding Webhook').item.json.body.first_name + ' ' + $('Onboarding Webhook').item.json.body.last_name }}","message":"={{ `<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\" />\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n<title>New Onboarding Submission</title>\n</head>\n<body style=\"margin:0;padding:0;background:#0a0a0a;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;\">\n  <table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" style=\"background:#0a0a0a;padding:40px 20px;\">\n    <tr><td align=\"center\">\n      <table width=\"600\" cellpadding=\"0\" cellspacing=\"0\" style=\"max-width:600px;width:100%;\">\n        <tr>\n          <td style=\"padding-bottom:32px;border-bottom:1px solid #1e1e1e;\">\n            <p style=\"margin:0;font-size:13px;letter-spacing:0.15em;text-transform:uppercase;color:#666;\">Emerson North</p>\n            <h1 style=\"margin:12px 0 0;font-size:26px;font-weight:600;color:#f5f5f5;letter-spacing:-0.02em;\">New Onboarding Submission</h1>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding:28px 0 0;\">\n            <p style=\"margin:0 0 4px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Client</p>\n            <p style=\"margin:0;font-size:20px;font-weight:600;color:#f5f5f5;\">${$('Onboarding Webhook').item.json.body.first_name} ${$('Onboarding Webhook').item.json.body.last_name}</p>\n            <p style=\"margin:4px 0 0;font-size:14px;color:#888;\">${$('Onboarding Webhook').item.json.body.biz_name || '—'} ${ $('Onboarding Webhook').item.json.body.niche ? '· ' + $('Onboarding Webhook').item.json.body.niche : '' }</p>\n            <p style=\"margin:4px 0 0;font-size:12px;color:#666;\">Client Type: ${$('Onboarding Webhook').item.json.body.audience_type === 'consumer' ? 'creator' : ($('Onboarding Webhook').item.json.body.audience_type || '—')}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding:20px 0 0;\">\n            <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n              <tr>\n                <td style=\"padding-right:16px;\">\n                  <p style=\"margin:0 0 2px;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:#555;\">Email</p>\n                  <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.email || '—'}</p>\n                </td>\n                <td>\n                  <p style=\"margin:0 0 2px;font-size:11px;letter-spacing:0.1em;text-transform:uppercase;color:#555;\">Phone</p>\n                  <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.phone || '—'}</p>\n                </td>\n              </tr>\n            </table>\n          </td>\n        </tr>\n        <tr><td style=\"padding:24px 0;\"><div style=\"border-top:1px solid #1e1e1e;\"></div></td></tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Platforms</p>\n            <p style=\"margin:0;font-size:14px;color:#c8c8c8;line-height:1.6;\">${$('Onboarding Webhook').item.json.body.platforms || '—'}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Primary Goal</p>\n            <p style=\"margin:0;font-size:14px;color:#c8c8c8;\">${$('Onboarding Webhook').item.json.body.primary_goal || '—'}</p>\n          </td>\n        </tr>\n        <tr>\n          <td style=\"padding-bottom:20px;\">\n            <p style=\"margin:0 0 10px;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;color:#555;\">Running automatically</p>\n            <p style=\"margin:0;font-size:14px;color:#4ade80;\">✓ Added to Onboarding Queue — Mac Mini will process within 2 minutes</p>\n          </td>\n        </tr>\n        <tr><td style=\"padding:24px 0 0;\"><div style=\"border-top:1px solid #1e1e1e;\"></div></td></tr>\n        <tr>\n          <td style=\"padding-top:24px;\">\n            <p style=\"margin:0;font-size:12px;color:#444;\">Emerson North · Automated Notification</p>\n          </td>\n        </tr>\n      </table>\n    </td></tr>\n  </table>\n</body>\n</html>` }}","options":{"allowUnauthorizedCerts":false,"appendAttribution":false}},"id":"a1b2c3d4-0007-0007-0007-000000000007","name":"Gmail — Notify Bryce","type":"n8n-nodes-base.gmail","typeVersion":2.1,"position":[1280,160],"credentials":{"gmailOAuth2":{"id":"g9I6fVtERQ0B0Eed","name":"Gmail account"}}},{"parameters":{"respondWith":"json","responseBody":"={{ JSON.stringify({ ok: true, contactId: $('GHL — Upsert Contact').item.json.contact.id }) }}","options":{}},"id":"a1b2c3d4-0004-0004-0004-000000000004","name":"Respond 200","type":"n8n-nodes-base.respondToWebhook","typeVersion":1.1,"position":[1540,160]},{"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"id":"oauth-check","leftValue":"={{ $json.body.platforms_connected }}","rightValue":"","operator":{"type":"string","operation":"notEquals"}}],"combinator":"and"},"options":{}},"id":"a1b2c3d4-0005-0005-0005-000000000005","name":"Has OAuth Connections?","type":"n8n-nodes-base.if","typeVersion":2.2,"position":[500,460]},{"parameters":{"operation":"append","documentId":{"__rl":true,"value":"1RNQssJwYfCZyc6ZdQsftqy4UqsdhLb2v5svqVikEXoI","mode":"id"},"sheetName":{"__rl":true,"value":"gid=0","mode":"list","cachedResultName":"Sheet1","cachedResultUrl":"https://docs.google.com/spreadsheets/d/1FX0eDt9d322XYcOQRp8b9tXkRrrrHcSWJ9maXEwYk7k/edit#gid=0"},"columns":{"mappingMode":"defineBelow","value":{"Date Submitted":"={{ $('Onboarding Webhook').item.json.body.submitted_at }}","Business Name":"={{ $('Onboarding Webhook').item.json.body.biz_name }}","First Name":"={{ $('Onboarding Webhook').item.json.body.first_name }}","Last Name":"={{ $('Onboarding Webhook').item.json.body.last_name }}","Email":"={{ $('Onboarding Webhook').item.json.body.email }}","Platforms Selected":"={{ $('Onboarding Webhook').item.json.body.platforms }}","Platforms Connected (OAuth)":"={{ $('Onboarding Webhook').item.json.body.platforms_connected }}","OAuth Skipped":"={{ $('Onboarding Webhook').item.json.body.oauth_skipped }}"},"schema":[]},"options":{}},"id":"a1b2c3d4-0006-0006-0006-000000000006","name":"Sheets — Log OAuth Connections","type":"n8n-nodes-base.googleSheets","typeVersion":4.5,"position":[760,460],"credentials":{"googleSheetsOAuth2Api":{"id":"OhjizsinSISmx4Gl","name":"Google Sheets OAuth2 API"}}}],"connections":{"Onboarding Webhook":{"main":[[{"node":"GHL — Upsert Contact","type":"main","index":0},{"node":"Has OAuth Connections?","type":"main","index":0}]]},"GHL — Upsert Contact":{"main":[[{"node":"GHL — Create Note","type":"main","index":0}]]},"GHL — Create Note":{"main":[[{"node":"Sheets — Add to Onboarding Queue","type":"main","index":0},{"node":"Gmail — Notify Bryce","type":"main","index":0}]]},"Sheets — Add to Onboarding Queue":{"main":[[{"node":"Respond 200","type":"main","index":0}]]},"Gmail — Notify Bryce":{"main":[[{"node":"Respond 200","type":"main","index":0}]]},"Has OAuth Connections?":{"main":[[{"node":"Sheets — Log OAuth Connections","type":"main","index":0}],[]]}},"authors":"Bryce Folsom","name":null,"description":null,"autosaved":false,"workflowPublishHistory":[{"createdAt":"2026-04-15T19:39:48.193Z","id":712,"workflowId":"21cXlP5tZ1WF3PIq","versionId":"bd493b5f-b7b6-4e92-82e2-14ae55ab3382","event":"activated","userId":"17d3676f-3e74-4586-8363-5c1f4d237ed7"},{"createdAt":"2026-04-15T19:39:48.035Z","id":711,"workflowId":"21cXlP5tZ1WF3PIq","versionId":"bd493b5f-b7b6-4e92-82e2-14ae55ab3382","event":"deactivated","userId":"17d3676f-3e74-4586-8363-5c1f4d237ed7"}]}}