AutomationFlowsData & Sheets › Log Inquiry to Google Sheets

Log Inquiry to Google Sheets

Original n8n title: Caipher AI - Log Inquiry

Caipher AI - Log Inquiry. Uses googleSheets. Webhook trigger; 4 nodes.

Webhook trigger★★★★☆ complexity4 nodesGoogle Sheets
Data & Sheets Trigger: Webhook Nodes: 4 Complexity: ★★★★☆ Added:

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 →

Download .json
{
  "name": "Caipher AI - Log Inquiry",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "elevenlabs-webhook/log-inquiry",
        "responseMode": "responseNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        260,
        460
      ],
      "id": "wh-log-inquiry",
      "name": "Log Inquiry Webhook"
    },
    {
      "parameters": {
        "jsCode": "const body = $input.all()[0].json.body || $input.all()[0].json;\n\nconst caller_name = body.caller_name || body.name || 'Unknown';\nconst caller_phone = body.caller_phone || body.phone || body.phone_number || '';\nconst caller_email = body.caller_email || body.email || '';\nconst business_name = body.business_name || body.company || '';\nconst inquiry = body.inquiry || body.question || body.message || '';\nconst notes = body.notes || '';\nconst category = body.category || 'General Inquiry';\n\nreturn [{\n  json: {\n    caller_name,\n    caller_phone,\n    caller_email,\n    business_name,\n    inquiry,\n    notes,\n    category,\n    timestamp: new Date().toISOString()\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        500,
        460
      ],
      "id": "parse-inquiry",
      "name": "Parse Inquiry Data"
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1KFnP0q_oY91rUX3KHzEOCuukxc4C3opkPLhOQMXBvzU",
          "mode": "list",
          "cachedResultName": "lead_template",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KFnP0q_oY91rUX3KHzEOCuukxc4C3opkPLhOQMXBvzU/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1KFnP0q_oY91rUX3KHzEOCuukxc4C3opkPLhOQMXBvzU/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "name": "={{ $json.caller_name }}",
            "phone_number": "={{ $json.caller_phone }}",
            "email": "={{ $json.caller_email }}",
            "business_name": "={{ $json.business_name }}",
            "status": "=INQUIRY",
            "last_called": "={{ $json.timestamp }}",
            "notes": "={{ $json.inquiry + ($json.notes ? ' | ' + $json.notes : '') }}",
            "output": "=INBOUND - INQUIRY",
            "leadCategory": "={{ $json.category }}",
            "interestLevel": "=Unknown"
          },
          "matchingColumns": [
            "phone_number"
          ],
          "schema": [
            {
              "id": "name",
              "displayName": "name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "business_name",
              "displayName": "business_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "phone_number",
              "displayName": "phone_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "displayName": "email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "last_called",
              "displayName": "last_called",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "notes",
              "displayName": "notes",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "output",
              "displayName": "output",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "leadCategory",
              "displayName": "leadCategory",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "interestLevel",
              "displayName": "interestLevel",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        740,
        460
      ],
      "id": "save-inquiry",
      "name": "Log Inquiry to Sheets",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ success: true, message: 'Inquiry logged for ' + $('Parse Inquiry Data').first().json.caller_name, inquiry: $('Parse Inquiry Data').first().json.inquiry }) }}"
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        980,
        460
      ],
      "id": "respond-inquiry",
      "name": "Respond Success"
    }
  ],
  "connections": {
    "Log Inquiry Webhook": {
      "main": [
        [
          {
            "node": "Parse Inquiry Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Inquiry Data": {
      "main": [
        [
          {
            "node": "Log Inquiry to Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Inquiry to Sheets": {
      "main": [
        [
          {
            "node": "Respond Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "tags": []
}

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.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Caipher AI - Log Inquiry. Uses googleSheets. Webhook trigger; 4 nodes.

Source: https://github.com/theblockchainbaby/automotive-ai/blob/3cb12bbd79eaa99ca866dd6f2d0c6b4a669959eb/workflows/log-inquiry.json — original creator credit. Request a take-down →

More Data & Sheets workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Data & Sheets

[SANTOBET] FLUXO TODO - BACKUP. Uses googleSheets, httpRequest, googleSheetsTrigger. Webhook trigger; 57 nodes.

Google Sheets, HTTP Request, Google Sheets Trigger
Data & Sheets

FLUXO DISPARO DATA E HORA. Uses itemLists, googleSheets, httpRequest. Webhook trigger; 48 nodes.

Item Lists, Google Sheets, HTTP Request
Data & Sheets

This workflow allows you to accept online payments via YooKassa and log both orders and transactions in Google Sheets — all without writing a single line of code. It supports full payment flow: produc

Google Sheets, HTTP Request
Data & Sheets

Transform your n8n instance management with this advanced automation system featuring artificial intelligence-driven workflow selection. This template provides comprehensive maintenance operations wit

n8n, HTTP Request, Google Sheets +1
Data & Sheets

Nexus_v6(ล่าสุดจริงๆ)ล่าสุดไกไก. Uses googleSheets, httpRequest. Webhook trigger; 41 nodes.

Google Sheets, HTTP Request