Evaluación automatizada de entrevistas por teléfono, usando Vapi, GPT-4o y Hojas de Cálculo de Google

Intermedio

Este es unHR, Multimodal AIflujo de automatización del dominio deautomatización que contiene 12 nodos.Utiliza principalmente nodos como Set, Webhook, GoogleSheets, Agent, LmChatOpenAi. Evaluación automatizada de entrevistas telefónicas usando Vapi, GPT-4o y Google Sheets

Requisitos previos
  • Punto final de HTTP Webhook (n8n generará automáticamente)
  • Credenciales de API de Google Sheets
  • Clave de API de OpenAI
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "meta": {
    "instanceId": "efb474b59b0341d7791932605bd9ff04a6c7ed9941fdd53dc4a2e4b99a6f9439"
  },
  "nodes": [
    {
      "id": "3cc91fbb-2e99-45ee-8821-67ed388109d5",
      "name": "Disparador Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -200,
        40
      ],
      "webhookId": "351ffe7c-69f2-4657-b593-c848d59205c0",
      "parameters": {
        "path": "351ffe7c-69f2-4657-b593-c848d59205c0",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "903ca124-8988-42a4-9164-75b04d338fd9",
      "name": "Editar Campos2",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        60
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "d804175b-c363-4564-a265-b639ed502251",
              "name": "body.message.artifact.transcript",
              "type": "string",
              "value": "={{ $json.body.message.artifact.transcript }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "04c4089d-a6e7-45b0-8417-1baaa6adea56",
      "name": "Modelo de Chat OpenAI",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        460,
        -40
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ghJTvay8CvwXDsXz",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "17735ead-a04a-488b-b176-f7cd94cffbb0",
      "name": "Analizador de Salida Estructurada",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        840,
        200
      ],
      "parameters": {
        "jsonSchemaExample": "{\n  \"name\": \"<First Last\",\n  \"phone\": \"8881231253\",\n  \"cityState\": \"City, State\",\n  \"qualifies\": \"True/False\",\n  \"reasoning\": \"1‑2 concise sentences summarizing why they do or do not qualify\"\n}"
      },
      "typeVersion": 1.2
    },
    {
      "id": "5e5ea0c8-c6bc-4d9b-8815-cca16d247da4",
      "name": "Modelo de Chat OpenAI2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        580,
        220
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "ghJTvay8CvwXDsXz",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "9298ef39-7743-4bf0-8251-a66a1463b18c",
      "name": "Evaluar Candidato",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        400,
        -220
      ],
      "parameters": {
        "text": "=Transcript: {{ $json.body.message.artifact.transcript }}",
        "options": {
          "systemMessage": "You are an AI assistant that reviews phone‑screen transcripts for a $17 per hour  driving job in Massachusetts.\n\nINPUT  \n• A single variable named  transcript  containing the full, verbatim conversation between “Will” (the interviewer) and the caller.\n\nEVALUATION CRITERIA  \nA candidate qualifies **only if every box below is satisfied** (case‑insensitive search is acceptable):\n\n1. ❑  They affirmed having a **valid, non‑expired, non‑suspended Massachusetts driver’s license**.  \n2. ❑  They reported **NO felony convictions**.  \n3. ❑  They reported **NO tickets or accidents in the last few years** (responses such as “none,” “clean record,” etc., count as a pass).  \n4. ❑  They **agreed to a background check**.  \n5. ❑  They **stated they can pass a drug test with zero tolerance — including marijuana**.  \n6. ❑  They are **available to work full‑time Monday–Friday**.  \n7. ❑  They **live in Massachusetts** (the transcript must mention a city/town **and** “MA” or “Massachusetts”).\n\nIf any box is unchecked,  \"qualifies\"  must be  false  and the  \"reasoning\"  field must state exactly which box(es) failed.\n\nOUTPUT  \nReturn **only** the following JSON object (no additional text, no Markdown, no code block, if one is unknown, just put unknown):\n\n{\n  \"name\": \"First Last\",\n  \"phone\": \"8881231253\",\n  \"cityState\": \"City, state\",\n  \"qualifies\": \"true/false\",\n  \"reasoning\": \"1–2 concise sentences explaining why the candidate does or does not qualify\"\n}\n\nRULES  \n• If any of the first three fields are missing, write `\"unknown\"` (string).  \n• \"qualifies\" must be a boolean value (true or false).  \n• When \"qualifies\" is false, the reasoning must reference the specific criterion/criteria that were not met.  \n• Output **nothing** except the JSON object described above.\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.8
    },
    {
      "id": "ddd4bd70-9e00-478c-97f1-601100de5f23",
      "name": "Convertir a JSON",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        640,
        60
      ],
      "parameters": {
        "text": "={{ $json.output }}",
        "options": {
          "systemMessage": "convert this into valid json only. outupt this format. {\n  \"name\": \"<First Last\",\n  \"phone\": \"8881231253\",\n  \"cityState\": \"City, State\",\n  \"qualifies\": \"True/False\",\n  \"reasoning\": \"1‑2 concise sentences summarizing why they do or do not qualify\"\n}"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.8
    },
    {
      "id": "019f4026-ab3b-4ff7-97f6-be39c5ee2edc",
      "name": "Guardar en Hojas Google",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        920,
        -180
      ],
      "parameters": {
        "columns": {
          "value": {
            "name": "={{ $json.output.name }}",
            "phone": "={{ $json.output.phone }}",
            "cityState": "={{ $json.output.cityState }}",
            "qualifies": "={{ $json.output.qualifies }}",
            "reasoning": "={{ $json.output.reasoning }}"
          },
          "schema": [
            {
              "id": "name",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "name",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "phone",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "phone",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "cityState",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "cityState",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "qualifies",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "qualifies",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "reasoning",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "reasoning",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": " ",
              "type": "string",
              "display": true,
              "removed": true,
              "required": false,
              "displayName": " ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/18W1ZzPM__foVNjeapuxnon0ZtgxaQjncNaamuZOdUSo/edit#gid=0",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "18W1ZzPM__foVNjeapuxnon0ZtgxaQjncNaamuZOdUSo",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/18W1ZzPM__foVNjeapuxnon0ZtgxaQjncNaamuZOdUSo/edit?usp=drivesdk",
          "cachedResultName": "Drivers"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "WsgMg14OYooIdvn7",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "7e0c1e84-feb2-4438-9af3-b234d3a954cc",
      "name": "Nota Adhesiva16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -740
      ],
      "parameters": {
        "width": 1932,
        "content": "## 📬 Need Help or Want to Customize This?\n📧 [robert@ynteractive.com](mailto:robert@ynteractive.com)  \n🔗 [LinkedIn](https://www.linkedin.com/in/robert-breen-29429625/)"
      },
      "typeVersion": 1
    },
    {
      "id": "5d71a4d8-8110-4497-896d-6aab71ea25b1",
      "name": "Nota Adhesiva1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        360,
        -560
      ],
      "parameters": {
        "color": 6,
        "width": 700,
        "height": 860,
        "content": "\n### Step 4: Customize Evaluation Criteria\n\nThe workflow includes predefined criteria for a Massachusetts driving job. To customize for your needs:\n\n1. Click on the \"Evaluate Candidate\" node\n2. Modify the system message to include your specific requirements\n3. Update the evaluation criteria checklist\n4. Adjust the JSON output format if needed\n\n\n### Step 5: Connect to Vapi.ai (Phone Interview System)\n"
      },
      "typeVersion": 1
    },
    {
      "id": "583e83d3-3676-43aa-8a71-fb735c603f3f",
      "name": "Nota Adhesiva2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -560
      ],
      "parameters": {
        "color": 5,
        "width": 600,
        "height": 860,
        "content": "\n## Prerequisites\n\nBefore implementing this workflow, you'll need:\n\n1. **N8N Instance** - Self-hosted or cloud version\n2. **OpenAI API Account** - For AI transcript processing\n3. **Google Account** - For Google Sheets integration\n4. **Phone Interview System** - That can send webhooks (like Vapi.ai)\n\n## Step-by-Step Setup Instructions\n\n### Step 1: Set Up OpenAI API Access\n\n1. Visit [OpenAI's API platform](https://platform.openai.com/)\n2. Create an account or log in\n3. Navigate to API Keys section\n4. Generate a new API key\n5. Copy and securely store your API key\n\n### Step 2: Create Your Google Sheet\n\n**Option 1: Use Our Pre-Made Template (Recommended)**\n1. Copy our template: [Driver Interview Results Template](https://docs.google.com/spreadsheets/d/18W1ZzPM__foVNjeapuxnon0ZtgxaQjncNaamuZOdUSo/edit?usp=sharing)\n2. Click \"File\" → \"Make a copy\" to create your own version\n3. Rename it as desired\n4. Copy your new sheet's URL - you'll need this for the workflow\n"
      },
      "typeVersion": 1
    },
    {
      "id": "c312380c-e073-40e9-b285-d8d7544ed8ff",
      "name": "Nota Adhesiva",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        -560
      ],
      "parameters": {
        "color": 5,
        "width": 600,
        "height": 860,
        "content": "\n\n### Step 3: Import and Configure the N8N Workflow\n\n1. **Import the Workflow**\n   - Copy the workflow JSON from the template\n   - In your N8N instance, go to Workflows → Import from JSON\n   - Paste the JSON and import\n\n2. **Configure OpenAI Credentials**\n   - Click on either \"OpenAI Chat Model\" node\n   - Set up credentials using your OpenAI API key\n   - Test the connection to ensure it works\n\n3. **Configure Google Sheets Integration**\n   - Click on the \"Save to Google Sheets\" node\n   - Set up Google Sheets OAuth2 credentials\n   - Select your spreadsheet from the dropdown\n   - Choose the correct sheet (usually \"Sheet1\")\n\n4. **Update the Webhook**\n   - Click on the \"Webhook\" node\n   - Note the webhook URL that n8n generates\n   - This URL will receive your transcript data\n\n"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Webhook": [
      {
        "body": {
          "message": {
            "call": {
              "id": "124fd3f8-ce9e-4dfd-b48f-5cb586649945",
              "type": "webCall",
              "orgId": "1ab1ad2b-aeda-494c-800a-e35256ab67d1",
              "status": "queued",
              "monitor": {
                "listenUrl": "wss://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945/listen",
                "controlUrl": "https://phone-call-websocket.aws-us-west-2-backend-production3.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945/control"
              },
              "assistant": {
                "name": "Baraka 3",
                "model": {
                  "model": "gpt-4o",
                  "messages": [
                    {
                      "role": "system",
                      "content": "Will’s call flow — $17/hr Bank‑Transport Driver (Massachusetts)\n\nStyle notes\n• Speak slowly, clearly, and warmly.\n• Ask one question at a time; pause for the caller’s reply.\n• If the caller is silent: “Take your time — I’m here when you’re ready.”\n• Do NOT end the call if the caller gives a disqualifying answer. Instead say:\n“Thanks for letting me know — that could be an issue because of our government contract, but let’s keep going so I have the full picture.”\n\n0. Opener — gauge interest\n“Hi! Are you interested in driving for our bank‑transport team?”\n\nIf “No,” politely end the call.\nIf “Yes,” continue.\n\n1. Up‑front disclaimer (before any other questions)\n“Great! Before we go further, I need to mention that because we work under a government agency:\n\nyou must have a valid driver’s license,\n\nyou must have no felony convictions, and\n\nyou must pass a drug test with zero tolerance — including marijuana.\n\nIf any of those are an issue, it could affect eligibility, but let’s go through a few questions so I have all the details. Is that okay?”\n\n(Proceed regardless of their answer; if they raise an issue, acknowledge with the “could be an issue” line and move on.)\n\n2 – 8. Application questions (ask one at a time)\nName & location\n“What’s your full name, and where do you currently live?”\n\nLicense status\n“Do you have a Massachusetts driver’s license that’s valid — not expired, suspended, or revoked?”\nIf the caller says anything other than a clear “yes,” respond with the standard acknowledgement and continue.\n\nTickets/accidents\n“Have you had any tickets or accidents in the last few years?”\nIf they have, acknowledge it may be an issue and continue.\n\nBackground‑check consent\n“Are you comfortable completing a background check?”\nIf not, acknowledge and continue.\n\nDrug‑test ability\n“Will you be able to pass a drug test, including testing negative for marijuana?”\nIf they can’t, acknowledge and continue.\n\nBest phone number\n“What’s the best phone number to reach you at?”\n\nAvailability\n“Are you available to work full‑time, Monday through Friday?”\nAgain, if answer is “no,” acknowledge and continue.\n\n9. Review & final disclaimer\n“Here’s what I have:\n• Name & location: {repeat}\n• License: {repeat}\n• Tickets/accidents: {repeat}\n• Background‑check consent: {repeat}\n• Drug‑test ability: {repeat}\n• Phone: {repeat}\n• Availability: {repeat}\n\nBecause we work under a government contract, items like license issues, felony convictions, or a positive drug test (including marijuana) can prevent us from hiring. Our team will review everything in detail. Does all that sound right?”\n\n(Make any corrections and reconfirm.)\n\n10. Closing\n“Thank you so much for your time! We’ll review your information and get back to you shortly.\n\n• Need a callback number? 604‑123‑4567\n• Prefer email? email@gmail.com\n\nHave a great day!”"
                    }
                  ],
                  "provider": "openai",
                  "temperature": 0.5
                },
                "voice": {
                  "voiceId": "Elliot",
                  "provider": "vapi"
                },
                "server": {
                  "url": "https://autoagent.website/webhook-test/351ffe7c-69f2-4657-b593-c848d59205c0",
                  "timeoutSeconds": 20
                },
                "transcriber": {
                  "model": "nova-3",
                  "language": "en",
                  "numerals": false,
                  "provider": "deepgram",
                  "endpointing": 300,
                  "confidenceThreshold": 0.4
                },
                "firstMessage": "Hi. Are you interested in driving for Banka Transport?",
                "hipaaEnabled": false,
                "clientMessages": [
                  "hang"
                ],
                "endCallMessage": "Goodbye.",
                "serverMessages": [
                  "end-of-call-report",
                  "transcript[transcriptType=\"final\"]"
                ],
                "voicemailMessage": "Please call back when you're available.",
                "startSpeakingPlan": {
                  "waitSeconds": 0.4,
                  "smartEndpointingPlan": {
                    "provider": "livekit",
                    "waitFunction": "20 + 500 * sqrt(x) + 2500 * x^3"
                  },
                  "transcriptionEndpointingPlan": {
                    "onNumberSeconds": 0.5,
                    "onPunctuationSeconds": 0.1,
                    "onNoPunctuationSeconds": 1.5
                  }
                },
                "endCallFunctionEnabled": true,
                "backgroundDenoisingEnabled": false
              },
              "createdAt": "2025-05-11T00:23:53.488Z",
              "transport": {
                "callUrl": "https://vapi.daily.co/fCd3DmLEX4S1EDgs9C75",
                "provider": "daily",
                "assistantVideoEnabled": false
              },
              "updatedAt": "2025-05-11T00:23:53.488Z",
              "webCallUrl": "https://vapi.daily.co/fCd3DmLEX4S1EDgs9C75",
              "assistantOverrides": {
                "clientMessages": [
                  "transfer-update",
                  "transcript"
                ]
              }
            },
            "cost": 0,
            "type": "end-of-call-report",
            "costs": [
              {
                "cost": 0,
                "type": "transcriber",
                "minutes": 2.737483333333333,
                "transcriber": {
                  "model": "nova-3",
                  "provider": "deepgram"
                }
              },
              {
                "cost": 0,
                "type": "model",
                "model": {
                  "model": "gpt-4o",
                  "provider": "openai"
                },
                "promptTokens": 12315,
                "completionTokens": 394
              },
              {
                "cost": 0,
                "type": "voice",
                "voice": {
                  "model": "eleven_turbo_v2_5",
                  "voiceId": "dN8hviqdNrAsEcL57yFj",
                  "provider": "11labs"
                },
                "characters": 1815
              },
              {
                "cost": 0,
                "type": "vapi",
                "minutes": 2.6555,
                "subType": "normal"
              },
              {
                "cost": 0,
                "type": "analysis",
                "model": {
                  "model": "claude-3-7-sonnet-20250219",
                  "provider": "anthropic"
                },
                "analysisType": "summary",
                "promptTokens": 613,
                "completionTokens": 83
              },
              {
                "cost": 0,
                "type": "analysis",
                "model": {
                  "model": "claude-3-7-sonnet-20250219",
                  "provider": "anthropic"
                },
                "analysisType": "successEvaluation",
                "promptTokens": 1391,
                "completionTokens": 4
              },
              {
                "cost": 0,
                "type": "knowledge-base",
                "model": {
                  "model": "gemini-1.5-flash",
                  "provider": "google"
                },
                "promptTokens": 0,
                "completionTokens": 0
              }
            ],
            "endedAt": "2025-05-11T00:26:35.157Z",
            "summary": "The call was a job screening for a driving position with Bank of Transport. The applicant, Mbaba from Boston, confirmed having a valid Massachusetts driver's license, no recent tickets, willingness to complete a background check, ability to pass a drug test, and availability to work full-time Monday through Friday. The interviewer provided callback information and ended by saying they would review the application.",
            "analysis": {
              "summary": "The call was a job screening for a driving position with Bank of Transport. The applicant, Mbaba from Boston, confirmed having a valid Massachusetts driver's license, no recent tickets, willingness to complete a background check, ability to pass a drug test, and availability to work full-time Monday through Friday. The interviewer provided callback information and ended by saying they would review the application.",
              "successEvaluation": "true"
            },
            "artifact": {
              "messages": [
                {
                  "role": "system",
                  "time": 1746923033624,
                  "message": "Will’s call flow — $17/hr Bank‑Transport Driver (Massachusetts)\n\nStyle notes\n• Speak slowly, clearly, and warmly.\n• Ask one question at a time; pause for the caller’s reply.\n• If the caller is silent: “Take your time — I’m here when you’re ready.”\n• Do NOT end the call if the caller gives a disqualifying answer. Instead say:\n“Thanks for letting me know — that could be an issue because of our government contract, but let’s keep going so I have the full picture.”\n\n0. Opener — gauge interest\n“Hi! Are you interested in driving for our bank‑transport team?”\n\nIf “No,” politely end the call.\nIf “Yes,” continue.\n\n1. Up‑front disclaimer (before any other questions)\n“Great! Before we go further, I need to mention that because we work under a government agency:\n\nyou must have a valid driver’s license,\n\nyou must have no felony convictions, and\n\nyou must pass a drug test with zero tolerance — including marijuana.\n\nIf any of those are an issue, it could affect eligibility, but let’s go through a few questions so I have all the details. Is that okay?”\n\n(Proceed regardless of their answer; if they raise an issue, acknowledge with the “could be an issue” line and move on.)\n\n2 – 8. Application questions (ask one at a time)\nName & location\n“What’s your full name, and where do you currently live?”\n\nLicense status\n“Do you have a Massachusetts driver’s license that’s valid — not expired, suspended, or revoked?”\nIf the caller says anything other than a clear “yes,” respond with the standard acknowledgement and continue.\n\nTickets/accidents\n“Have you had any tickets or accidents in the last few years?”\nIf they have, acknowledge it may be an issue and continue.\n\nBackground‑check consent\n“Are you comfortable completing a background check?”\nIf not, acknowledge and continue.\n\nDrug‑test ability\n“Will you be able to pass a drug test, including testing negative for marijuana?”\nIf they can’t, acknowledge and continue.\n\nBest phone number\n“What’s the best phone number to reach you at?”\n\nAvailability\n“Are you available to work full‑time, Monday through Friday?”\nAgain, if answer is “no,” acknowledge and continue.\n\n9. Review & final disclaimer\n“Here’s what I have:\n• Name & location: {repeat}\n• License: {repeat}\n• Tickets/accidents: {repeat}\n• Background‑check consent: {repeat}\n• Drug‑test ability: {repeat}\n• Phone: {repeat}\n• Availability: {repeat}\n\nBecause we work under a government contract, items like license issues, felony convictions, or a positive drug test (including marijuana) can prevent us from hiring. Our team will review everything in detail. Does all that sound right?”\n\n(Make any corrections and reconfirm.)\n\n10. Closing\n“Thank you so much for your time! We’ll review your information and get back to you shortly.\n\n• Need a callback number? 604‑123‑4567\n• Prefer email? email@gmail.com\n\nHave a great day!”",
                  "secondsFromStart": 0
                },
                {
                  "role": "bot",
                  "time": 1746923035126,
                  "source": "",
                  "endTime": 1746923037766,
                  "message": "Hi. Are you interested in driving for Bank of Transport?",
                  "duration": 2640,
                  "secondsFromStart": 1.1999999
                },
                {
                  "role": "user",
                  "time": 1746923038705.9998,
                  "endTime": 1746923039106,
                  "message": "Yes.",
                  "duration": 400.000244140625,
                  "secondsFromStart": 4.7799997
                },
                {
                  "role": "bot",
                  "time": 1746923041866,
                  "source": "",
                  "endTime": 1746923063516,
                  "message": "Great. Before we go further, I need to mention that because we work under a government agency. You must have a valid driver's license, you must have no felony convictions, And must pass a drug test with 0 tolerance, including marijuana. If any of those are an issue, it could affect eligibility But let's go through a few questions. So I have all the details. Is that okay?",
                  "duration": 18320.001953125,
                  "secondsFromStart": 7.94
                },
                {
                  "role": "user",
                  "time": 1746923064435.998,
                  "endTime": 1746923064836,
                  "message": "Yes.",
                  "duration": 400.001953125,
                  "secondsFromStart": 30.509998
                },
                {
                  "role": "bot",
                  "time": 1746923066426,
                  "source": "",
                  "endTime": 1746923072286,
                  "message": "Thank you. Let's start with your name and location. What's your full name and where do you currently live?",
                  "duration": 4880,
                  "secondsFromStart": 32.5
                },
                {
                  "role": "user",
                  "time": 1746923073956.003,
                  "endTime": 1746923075876,
                  "message": "Imbab in Boston, Massachusetts.",
                  "duration": 1919.9970703125,
                  "secondsFromStart": 40.030003
                },
                {
                  "role": "bot",
                  "time": 1746923077406,
                  "source": "",
                  "endTime": 1746923085396,
                  "message": "Thank you, Mbaba. You have a Massachusetts driver's license that's valid not expired, suspended, or revoked?",
                  "duration": 6560,
                  "secondsFromStart": 43.48
                },
                {
                  "role": "user",
                  "time": 1746923086816,
                  "endTime": 1746923087136,
                  "message": "Yes.",
                  "duration": 320,
                  "secondsFromStart": 52.89
                },
                {
                  "role": "bot",
                  "time": 1746923088756,
                  "source": "",
                  "endTime": 1746923091376,
                  "message": "Have you had any tickets or in the last few years?",
                  "duration": 2160,
                  "secondsFromStart": 54.83
                },
                {
                  "role": "user",
                  "time": 1746923093035.997,
                  "endTime": 1746923093355.996,
                  "message": "No.",
                  "duration": 319.9990234375,
                  "secondsFromStart": 59.109997
                },
                {
                  "role": "bot",
                  "time": 1746923095796.003,
                  "source": "",
                  "endTime": 1746923097716,
                  "message": "Are you comfortable completing a background check?",
                  "duration": 1919.9970703125,
                  "secondsFromStart": 61.870003
                },
                {
                  "role": "user",
                  "time": 1746923098736,
                  "endTime": 1746923099056.005,
                  "message": "Yes.",
                  "duration": 320.0048828125,
                  "secondsFromStart": 64.81
                },
                {
                  "role": "bot",
                  "time": 1746923100386,
                  "source": "",
                  "endTime": 1746923104636.01,
                  "message": "Will you be able to pass the drug test? Including testing negative for marijuana?",
                  "duration": 3840.010009765625,
                  "secondsFromStart": 66.46
                },
                {
                  "role": "user",
                  "time": 1746923105956.01,
                  "endTime": 1746923106356,
                  "message": "Yes.",
                  "duration": 399.989990234375,
                  "secondsFromStart": 72.03001
                },
                {
                  "role": "bot",
                  "time": 1746923108336,
                  "source": "",
                  "endTime": 1746923110176,
                  "message": "What's the best phone number to reach you at?",
                  "duration": 1840,
                  "secondsFromStart": 74.41
                },
                {
                  "role": "user",
                  "time": 1746923111036,
                  "endTime": 1746923114796,
                  "message": "8 1 4 8 8 2 1 2 9 3.",
                  "duration": 3760,
                  "secondsFromStart": 77.11
                },
                {
                  "role": "bot",
                  "time": 1746923119666.005,
                  "source": "",
                  "endTime": 1746923123426,
                  "message": "Thank you. Are you available to work full time Monday through Friday?",
                  "duration": 3759.9951171875,
                  "secondsFromStart": 85.740005
                },
                {
                  "role": "user",
                  "time": 1746923124486.005,
                  "endTime": 1746923124886,
                  "message": "Yes.",
                  "duration": 399.9951171875,
                  "secondsFromStart": 90.560005
                },
                {
                  "role": "bot",
                  "time": 1746923126286,
                  "source": "",
                  "endTime": 1746923170116,
                  "message": "Here's what I have. Name and location, Mbaba in Boston, Massachusetts. License, valid Massachusetts driver's license. Tickets, accidents, no tickets, or accidents in the last few years. Background check consent. Comfortable completing a background check. Drug testability: able to pass a drug test including testing negative for marijuana. Phone, 8 1 4 8 8 2 1 2 9 3. Availability, available to work full time Monday through Friday, because we work under a government contract. Items like license issues, felony convictions, or a positive drug test, including marijuana, can prevent us from hiring. Our team will review everything in detail. Does all that sound right?",
                  "duration": 36799.965087890625,
                  "secondsFromStart": 92.36
                },
                {
                  "role": "user",
                  "time": 1746923171546,
                  "endTime": 1746923171865.99,
                  "message": "Yes.",
                  "duration": 319.989990234375,
                  "secondsFromStart": 137.62
                },
                {
                  "role": "bot",
                  "time": 1746923174216,
                  "source": "",
                  "endTime": 1746923192176,
                  "message": "Thank you so much for your time. We'll review your information. And get back to you shortly. If you need a callback, number, you can reach us at 6 0 4 1 2 3 4 5 6 7. Prefer email? You can contact us at email at gmail dot com. Have a great day.",
                  "duration": 16509.97998046875,
                  "secondsFromStart": 140.29
                }
              ],
              "recording": {
                "mono": {
                  "combinedUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-d34ad2bb-303f-4778-8413-b06c48edde4c-mono.wav",
                  "customerUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-6abf74d2-1ae3-4445-a846-06d7e5120766-mono.wav",
                  "assistantUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-dbe28abd-6cae-486c-a4e6-c769255e28c9-mono.wav"
                },
                "stereoUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-c8220f56-703c-4238-832f-712a112f72ac-stereo.wav"
              },
              "transcript": "AI: Hi. Are you interested in driving for Bank of Transport?\nUser: Yes.\nAI: Great. Before we go further, I need to mention that because we work under a government agency. You must have a valid driver's license, you must have no felony convictions, And must pass a drug test with 0 tolerance, including marijuana. If any of those are an issue, it could affect eligibility But let's go through a few questions. So I have all the details. Is that okay?\nUser: Yes.\nAI: Thank you. Let's start with your name and location. What's your full name and where do you currently live?\nUser: Imbab in Boston, Massachusetts.\nAI: Thank you, Mbaba. You have a Massachusetts driver's license that's valid not expired, suspended, or revoked?\nUser: Yes.\nAI: Have you had any tickets or in the last few years?\nUser: No.\nAI: Are you comfortable completing a background check?\nUser: Yes.\nAI: Will you be able to pass the drug test? Including testing negative for marijuana?\nUser: Yes.\nAI: What's the best phone number to reach you at?\nUser: 8 1 4 8 8 2 1 2 9 3.\nAI: Thank you. Are you available to work full time Monday through Friday?\nUser: Yes.\nAI: Here's what I have. Name and location, Mbaba in Boston, Massachusetts. License, valid Massachusetts driver's license. Tickets, accidents, no tickets, or accidents in the last few years. Background check consent. Comfortable completing a background check. Drug testability: able to pass a drug test including testing negative for marijuana. Phone, 8 1 4 8 8 2 1 2 9 3. Availability, available to work full time Monday through Friday, because we work under a government contract. Items like license issues, felony convictions, or a positive drug test, including marijuana, can prevent us from hiring. Our team will review everything in detail. Does all that sound right?\nUser: Yes.\nAI: Thank you so much for your time. We'll review your information. And get back to you shortly. If you need a callback, number, you can reach us at 6 0 4 1 2 3 4 5 6 7. Prefer email? You can contact us at email at gmail dot com. Have a great day.\n",
              "recordingUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-d34ad2bb-303f-4778-8413-b06c48edde4c-mono.wav",
              "stereoRecordingUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-c8220f56-703c-4238-832f-712a112f72ac-stereo.wav",
              "messagesOpenAIFormatted": [
                {
                  "role": "system",
                  "content": "Will’s call flow — $17/hr Bank‑Transport Driver (Massachusetts)\n\nStyle notes\n• Speak slowly, clearly, and warmly.\n• Ask one question at a time; pause for the caller’s reply.\n• If the caller is silent: “Take your time — I’m here when you’re ready.”\n• Do NOT end the call if the caller gives a disqualifying answer. Instead say:\n“Thanks for letting me know — that could be an issue because of our government contract, but let’s keep going so I have the full picture.”\n\n0. Opener — gauge interest\n“Hi! Are you interested in driving for our bank‑transport team?”\n\nIf “No,” politely end the call.\nIf “Yes,” continue.\n\n1. Up‑front disclaimer (before any other questions)\n“Great! Before we go further, I need to mention that because we work under a government agency:\n\nyou must have a valid driver’s license,\n\nyou must have no felony convictions, and\n\nyou must pass a drug test with zero tolerance — including marijuana.\n\nIf any of those are an issue, it could affect eligibility, but let’s go through a few questions so I have all the details. Is that okay?”\n\n(Proceed regardless of their answer; if they raise an issue, acknowledge with the “could be an issue” line and move on.)\n\n2 – 8. Application questions (ask one at a time)\nName & location\n“What’s your full name, and where do you currently live?”\n\nLicense status\n“Do you have a Massachusetts driver’s license that’s valid — not expired, suspended, or revoked?”\nIf the caller says anything other than a clear “yes,” respond with the standard acknowledgement and continue.\n\nTickets/accidents\n“Have you had any tickets or accidents in the last few years?”\nIf they have, acknowledge it may be an issue and continue.\n\nBackground‑check consent\n“Are you comfortable completing a background check?”\nIf not, acknowledge and continue.\n\nDrug‑test ability\n“Will you be able to pass a drug test, including testing negative for marijuana?”\nIf they can’t, acknowledge and continue.\n\nBest phone number\n“What’s the best phone number to reach you at?”\n\nAvailability\n“Are you available to work full‑time, Monday through Friday?”\nAgain, if answer is “no,” acknowledge and continue.\n\n9. Review & final disclaimer\n“Here’s what I have:\n• Name & location: {repeat}\n• License: {repeat}\n• Tickets/accidents: {repeat}\n• Background‑check consent: {repeat}\n• Drug‑test ability: {repeat}\n• Phone: {repeat}\n• Availability: {repeat}\n\nBecause we work under a government contract, items like license issues, felony convictions, or a positive drug test (including marijuana) can prevent us from hiring. Our team will review everything in detail. Does all that sound right?”\n\n(Make any corrections and reconfirm.)\n\n10. Closing\n“Thank you so much for your time! We’ll review your information and get back to you shortly.\n\n• Need a callback number? 604‑123‑4567\n• Prefer email? email@gmail.com\n\nHave a great day!”"
                },
                {
                  "role": "assistant",
                  "content": "Hi. Are you interested in driving for Bank of Transport?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Great. Before we go further, I need to mention that because we work under a government agency. You must have a valid driver's license, you must have no felony convictions, And must pass a drug test with 0 tolerance, including marijuana. If any of those are an issue, it could affect eligibility But let's go through a few questions. So I have all the details. Is that okay?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Thank you. Let's start with your name and location. What's your full name and where do you currently live?"
                },
                {
                  "role": "user",
                  "content": "Imbab in Boston, Massachusetts."
                },
                {
                  "role": "assistant",
                  "content": "Thank you, Mbaba. You have a Massachusetts driver's license that's valid not expired, suspended, or revoked?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Have you had any tickets or in the last few years?"
                },
                {
                  "role": "user",
                  "content": "No."
                },
                {
                  "role": "assistant",
                  "content": "Are you comfortable completing a background check?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Will you be able to pass the drug test? Including testing negative for marijuana?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "What's the best phone number to reach you at?"
                },
                {
                  "role": "user",
                  "content": "8 1 4 8 8 2 1 2 9 3."
                },
                {
                  "role": "assistant",
                  "content": "Thank you. Are you available to work full time Monday through Friday?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Here's what I have. Name and location, Mbaba in Boston, Massachusetts. License, valid Massachusetts driver's license. Tickets, accidents, no tickets, or accidents in the last few years. Background check consent. Comfortable completing a background check. Drug testability: able to pass a drug test including testing negative for marijuana. Phone, 8 1 4 8 8 2 1 2 9 3. Availability, available to work full time Monday through Friday, because we work under a government contract. Items like license issues, felony convictions, or a positive drug test, including marijuana, can prevent us from hiring. Our team will review everything in detail. Does all that sound right?"
                },
                {
                  "role": "user",
                  "content": "Yes."
                },
                {
                  "role": "assistant",
                  "content": "Thank you so much for your time. We'll review your information. And get back to you shortly. If you need a callback, number, you can reach us at 6 0 4 1 2 3 4 5 6 7. Prefer email? You can contact us at email at gmail dot com. Have a great day."
                }
              ]
            },
            "messages": [
              {
                "role": "system",
                "time": 1746923033624,
                "message": "Will’s call flow — $17/hr Bank‑Transport Driver (Massachusetts)\n\nStyle notes\n• Speak slowly, clearly, and warmly.\n• Ask one question at a time; pause for the caller’s reply.\n• If the caller is silent: “Take your time — I’m here when you’re ready.”\n• Do NOT end the call if the caller gives a disqualifying answer. Instead say:\n“Thanks for letting me know — that could be an issue because of our government contract, but let’s keep going so I have the full picture.”\n\n0. Opener — gauge interest\n“Hi! Are you interested in driving for our bank‑transport team?”\n\nIf “No,” politely end the call.\nIf “Yes,” continue.\n\n1. Up‑front disclaimer (before any other questions)\n“Great! Before we go further, I need to mention that because we work under a government agency:\n\nyou must have a valid driver’s license,\n\nyou must have no felony convictions, and\n\nyou must pass a drug test with zero tolerance — including marijuana.\n\nIf any of those are an issue, it could affect eligibility, but let’s go through a few questions so I have all the details. Is that okay?”\n\n(Proceed regardless of their answer; if they raise an issue, acknowledge with the “could be an issue” line and move on.)\n\n2 – 8. Application questions (ask one at a time)\nName & location\n“What’s your full name, and where do you currently live?”\n\nLicense status\n“Do you have a Massachusetts driver’s license that’s valid — not expired, suspended, or revoked?”\nIf the caller says anything other than a clear “yes,” respond with the standard acknowledgement and continue.\n\nTickets/accidents\n“Have you had any tickets or accidents in the last few years?”\nIf they have, acknowledge it may be an issue and continue.\n\nBackground‑check consent\n“Are you comfortable completing a background check?”\nIf not, acknowledge and continue.\n\nDrug‑test ability\n“Will you be able to pass a drug test, including testing negative for marijuana?”\nIf they can’t, acknowledge and continue.\n\nBest phone number\n“What’s the best phone number to reach you at?”\n\nAvailability\n“Are you available to work full‑time, Monday through Friday?”\nAgain, if answer is “no,” acknowledge and continue.\n\n9. Review & final disclaimer\n“Here’s what I have:\n• Name & location: {repeat}\n• License: {repeat}\n• Tickets/accidents: {repeat}\n• Background‑check consent: {repeat}\n• Drug‑test ability: {repeat}\n• Phone: {repeat}\n• Availability: {repeat}\n\nBecause we work under a government contract, items like license issues, felony convictions, or a positive drug test (including marijuana) can prevent us from hiring. Our team will review everything in detail. Does all that sound right?”\n\n(Make any corrections and reconfirm.)\n\n10. Closing\n“Thank you so much for your time! We’ll review your information and get back to you shortly.\n\n• Need a callback number? 604‑123‑4567\n• Prefer email? email@gmail.com\n\nHave a great day!”",
                "secondsFromStart": 0
              },
              {
                "role": "bot",
                "time": 1746923035126,
                "source": "",
                "endTime": 1746923037766,
                "message": "Hi. Are you interested in driving for Bank of Transport?",
                "duration": 2640,
                "secondsFromStart": 1.1999999
              },
              {
                "role": "user",
                "time": 1746923038705.9998,
                "endTime": 1746923039106,
                "message": "Yes.",
                "duration": 400.000244140625,
                "secondsFromStart": 4.7799997
              },
              {
                "role": "bot",
                "time": 1746923041866,
                "source": "",
                "endTime": 1746923063516,
                "message": "Great. Before we go further, I need to mention that because we work under a government agency. You must have a valid driver's license, you must have no felony convictions, And must pass a drug test with 0 tolerance, including marijuana. If any of those are an issue, it could affect eligibility But let's go through a few questions. So I have all the details. Is that okay?",
                "duration": 18320.001953125,
                "secondsFromStart": 7.94
              },
              {
                "role": "user",
                "time": 1746923064435.998,
                "endTime": 1746923064836,
                "message": "Yes.",
                "duration": 400.001953125,
                "secondsFromStart": 30.509998
              },
              {
                "role": "bot",
                "time": 1746923066426,
                "source": "",
                "endTime": 1746923072286,
                "message": "Thank you. Let's start with your name and location. What's your full name and where do you currently live?",
                "duration": 4880,
                "secondsFromStart": 32.5
              },
              {
                "role": "user",
                "time": 1746923073956.003,
                "endTime": 1746923075876,
                "message": "Imbab in Boston, Massachusetts.",
                "duration": 1919.9970703125,
                "secondsFromStart": 40.030003
              },
              {
                "role": "bot",
                "time": 1746923077406,
                "source": "",
                "endTime": 1746923085396,
                "message": "Thank you, Mbaba. You have a Massachusetts driver's license that's valid not expired, suspended, or revoked?",
                "duration": 6560,
                "secondsFromStart": 43.48
              },
              {
                "role": "user",
                "time": 1746923086816,
                "endTime": 1746923087136,
                "message": "Yes.",
                "duration": 320,
                "secondsFromStart": 52.89
              },
              {
                "role": "bot",
                "time": 1746923088756,
                "source": "",
                "endTime": 1746923091376,
                "message": "Have you had any tickets or in the last few years?",
                "duration": 2160,
                "secondsFromStart": 54.83
              },
              {
                "role": "user",
                "time": 1746923093035.997,
                "endTime": 1746923093355.996,
                "message": "No.",
                "duration": 319.9990234375,
                "secondsFromStart": 59.109997
              },
              {
                "role": "bot",
                "time": 1746923095796.003,
                "source": "",
                "endTime": 1746923097716,
                "message": "Are you comfortable completing a background check?",
                "duration": 1919.9970703125,
                "secondsFromStart": 61.870003
              },
              {
                "role": "user",
                "time": 1746923098736,
                "endTime": 1746923099056.005,
                "message": "Yes.",
                "duration": 320.0048828125,
                "secondsFromStart": 64.81
              },
              {
                "role": "bot",
                "time": 1746923100386,
                "source": "",
                "endTime": 1746923104636.01,
                "message": "Will you be able to pass the drug test? Including testing negative for marijuana?",
                "duration": 3840.010009765625,
                "secondsFromStart": 66.46
              },
              {
                "role": "user",
                "time": 1746923105956.01,
                "endTime": 1746923106356,
                "message": "Yes.",
                "duration": 399.989990234375,
                "secondsFromStart": 72.03001
              },
              {
                "role": "bot",
                "time": 1746923108336,
                "source": "",
                "endTime": 1746923110176,
                "message": "What's the best phone number to reach you at?",
                "duration": 1840,
                "secondsFromStart": 74.41
              },
              {
                "role": "user",
                "time": 1746923111036,
                "endTime": 1746923114796,
                "message": "8 1 4 8 8 2 1 2 9 3.",
                "duration": 3760,
                "secondsFromStart": 77.11
              },
              {
                "role": "bot",
                "time": 1746923119666.005,
                "source": "",
                "endTime": 1746923123426,
                "message": "Thank you. Are you available to work full time Monday through Friday?",
                "duration": 3759.9951171875,
                "secondsFromStart": 85.740005
              },
              {
                "role": "user",
                "time": 1746923124486.005,
                "endTime": 1746923124886,
                "message": "Yes.",
                "duration": 399.9951171875,
                "secondsFromStart": 90.560005
              },
              {
                "role": "bot",
                "time": 1746923126286,
                "source": "",
                "endTime": 1746923170116,
                "message": "Here's what I have. Name and location, Mbaba in Boston, Massachusetts. License, valid Massachusetts driver's license. Tickets, accidents, no tickets, or accidents in the last few years. Background check consent. Comfortable completing a background check. Drug testability: able to pass a drug test including testing negative for marijuana. Phone, 8 1 4 8 8 2 1 2 9 3. Availability, available to work full time Monday through Friday, because we work under a government contract. Items like license issues, felony convictions, or a positive drug test, including marijuana, can prevent us from hiring. Our team will review everything in detail. Does all that sound right?",
                "duration": 36799.965087890625,
                "secondsFromStart": 92.36
              },
              {
                "role": "user",
                "time": 1746923171546,
                "endTime": 1746923171865.99,
                "message": "Yes.",
                "duration": 319.989990234375,
                "secondsFromStart": 137.62
              },
              {
                "role": "bot",
                "time": 1746923174216,
                "source": "",
                "endTime": 1746923192176,
                "message": "Thank you so much for your time. We'll review your information. And get back to you shortly. If you need a callback, number, you can reach us at 6 0 4 1 2 3 4 5 6 7. Prefer email? You can contact us at email at gmail dot com. Have a great day.",
                "duration": 16509.97998046875,
                "secondsFromStart": 140.29
              }
            ],
            "assistant": {
              "name": "Baraka 3",
              "model": {
                "model": "gpt-4o",
                "messages": [
                  {
                    "role": "system",
                    "content": "Will’s call flow — $17/hr Bank‑Transport Driver (Massachusetts)\n\nStyle notes\n• Speak slowly, clearly, and warmly.\n• Ask one question at a time; pause for the caller’s reply.\n• If the caller is silent: “Take your time — I’m here when you’re ready.”\n• Do NOT end the call if the caller gives a disqualifying answer. Instead say:\n“Thanks for letting me know — that could be an issue because of our government contract, but let’s keep going so I have the full picture.”\n\n0. Opener — gauge interest\n“Hi! Are you interested in driving for our bank‑transport team?”\n\nIf “No,” politely end the call.\nIf “Yes,” continue.\n\n1. Up‑front disclaimer (before any other questions)\n“Great! Before we go further, I need to mention that because we work under a government agency:\n\nyou must have a valid driver’s license,\n\nyou must have no felony convictions, and\n\nyou must pass a drug test with zero tolerance — including marijuana.\n\nIf any of those are an issue, it could affect eligibility, but let’s go through a few questions so I have all the details. Is that okay?”\n\n(Proceed regardless of their answer; if they raise an issue, acknowledge with the “could be an issue” line and move on.)\n\n2 – 8. Application questions (ask one at a time)\nName & location\n“What’s your full name, and where do you currently live?”\n\nLicense status\n“Do you have a Massachusetts driver’s license that’s valid — not expired, suspended, or revoked?”\nIf the caller says anything other than a clear “yes,” respond with the standard acknowledgement and continue.\n\nTickets/accidents\n“Have you had any tickets or accidents in the last few years?”\nIf they have, acknowledge it may be an issue and continue.\n\nBackground‑check consent\n“Are you comfortable completing a background check?”\nIf not, acknowledge and continue.\n\nDrug‑test ability\n“Will you be able to pass a drug test, including testing negative for marijuana?”\nIf they can’t, acknowledge and continue.\n\nBest phone number\n“What’s the best phone number to reach you at?”\n\nAvailability\n“Are you available to work full‑time, Monday through Friday?”\nAgain, if answer is “no,” acknowledge and continue.\n\n9. Review & final disclaimer\n“Here’s what I have:\n• Name & location: {repeat}\n• License: {repeat}\n• Tickets/accidents: {repeat}\n• Background‑check consent: {repeat}\n• Drug‑test ability: {repeat}\n• Phone: {repeat}\n• Availability: {repeat}\n\nBecause we work under a government contract, items like license issues, felony convictions, or a positive drug test (including marijuana) can prevent us from hiring. Our team will review everything in detail. Does all that sound right?”\n\n(Make any corrections and reconfirm.)\n\n10. Closing\n“Thank you so much for your time! We’ll review your information and get back to you shortly.\n\n• Need a callback number? 604‑123‑4567\n• Prefer email? email@gmail.com\n\nHave a great day!”"
                  }
                ],
                "provider": "openai",
                "temperature": 0.5
              },
              "voice": {
                "voiceId": "Elliot",
                "provider": "vapi"
              },
              "server": {
                "url": "https://autoagent.website/webhook-test/351ffe7c-69f2-4657-b593-c848d59205c0",
                "timeoutSeconds": 20
              },
              "transcriber": {
                "model": "nova-3",
                "language": "en",
                "numerals": false,
                "provider": "deepgram",
                "endpointing": 300,
                "confidenceThreshold": 0.4
              },
              "firstMessage": "Hi. Are you interested in driving for Banka Transport?",
              "hipaaEnabled": false,
              "clientMessages": [
                "hang",
                "transfer-update",
                "transcript"
              ],
              "endCallMessage": "Goodbye.",
              "serverMessages": [
                "end-of-call-report",
                "transcript[transcriptType=\"final\"]"
              ],
              "voicemailMessage": "Please call back when you're available.",
              "startSpeakingPlan": {
                "waitSeconds": 0.4,
                "smartEndpointingPlan": {
                  "provider": "livekit",
                  "waitFunction": "20 + 500 * sqrt(x) + 2500 * x^3"
                },
                "transcriptionEndpointingPlan": {
                  "onNumberSeconds": 0.5,
                  "onPunctuationSeconds": 0.1,
                  "onNoPunctuationSeconds": 1.5
                }
              },
              "endCallFunctionEnabled": true,
              "backgroundDenoisingEnabled": false
            },
            "startedAt": "2025-05-11T00:23:55.829Z",
            "timestamp": 1746923200256,
            "durationMs": 159328,
            "transcript": "AI: Hi. Are you interested in driving for Bank of Transport?\nUser: Yes.\nAI: Great. Before we go further, I need to mention that because we work under a government agency. You must have a valid driver's license, you must have no felony convictions, And must pass a drug test with 0 tolerance, including marijuana. If any of those are an issue, it could affect eligibility But let's go through a few questions. So I have all the details. Is that okay?\nUser: Yes.\nAI: Thank you. Let's start with your name and location. What's your full name and where do you currently live?\nUser: Imbab in Boston, Massachusetts.\nAI: Thank you, Mbaba. You have a Massachusetts driver's license that's valid not expired, suspended, or revoked?\nUser: Yes.\nAI: Have you had any tickets or in the last few years?\nUser: No.\nAI: Are you comfortable completing a background check?\nUser: Yes.\nAI: Will you be able to pass the drug test? Including testing negative for marijuana?\nUser: Yes.\nAI: What's the best phone number to reach you at?\nUser: 8 1 4 8 8 2 1 2 9 3.\nAI: Thank you. Are you available to work full time Monday through Friday?\nUser: Yes.\nAI: Here's what I have. Name and location, Mbaba in Boston, Massachusetts. License, valid Massachusetts driver's license. Tickets, accidents, no tickets, or accidents in the last few years. Background check consent. Comfortable completing a background check. Drug testability: able to pass a drug test including testing negative for marijuana. Phone, 8 1 4 8 8 2 1 2 9 3. Availability, available to work full time Monday through Friday, because we work under a government contract. Items like license issues, felony convictions, or a positive drug test, including marijuana, can prevent us from hiring. Our team will review everything in detail. Does all that sound right?\nUser: Yes.\nAI: Thank you so much for your time. We'll review your information. And get back to you shortly. If you need a callback, number, you can reach us at 6 0 4 1 2 3 4 5 6 7. Prefer email? You can contact us at email at gmail dot com. Have a great day.\n",
            "endedReason": "customer-ended-call",
            "recordingUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-d34ad2bb-303f-4778-8413-b06c48edde4c-mono.wav",
            "costBreakdown": {
              "llm": 0,
              "stt": 0,
              "tts": 0,
              "vapi": 0,
              "total": 0,
              "ttsCharacters": 1815,
              "llmPromptTokens": 12315,
              "knowledgeBaseCost": 0,
              "llmCompletionTokens": 394,
              "analysisCostBreakdown": {
                "summary": 0,
                "structuredData": 0,
                "successEvaluation": 0,
                "summaryPromptTokens": 613,
                "summaryCompletionTokens": 83,
                "structuredDataPromptTokens": 0,
                "successEvaluationPromptTokens": 1391,
                "structuredDataCompletionTokens": 0,
                "successEvaluationCompletionTokens": 4
              },
              "voicemailDetectionCost": 0
            },
            "durationMinutes": 2.6555,
            "durationSeconds": 159.328,
            "stereoRecordingUrl": "https://storage.vapi.ai/124fd3f8-ce9e-4dfd-b48f-5cb586649945-1746923197663-c8220f56-703c-4238-832f-712a112f72ac-stereo.wav"
          }
        },
        "query": {},
        "params": {},
        "headers": {
          "host": "autoagent.website",
          "accept": "application/json, text/plain, */*",
          "cookie": "callId=124fd3f8-ce9e-4dfd-b48f-5cb586649945",
          "baggage": "sentry-environment=production,sentry-public_key=a0021577936aec367b16615ad816c078,sentry-trace_id=b8cbdaac923b451790555296492a988f",
          "x-real-ip": "18.237.231.234",
          "connection": "upgrade",
          "user-agent": "axios/1.8.3",
          "traceparent": "00-e239a291fc613f92ddd5458703f20644-7db78402d70aea06-00",
          "content-type": "application/json",
          "sentry-trace": "b8cbdaac923b451790555296492a988f-991af3df7066242e",
          "x-vapi-secret": "",
          "content-length": "38329",
          "accept-encoding": "gzip, compress, deflate, br",
          "x-forwarded-for": "18.237.231.234",
          "x-forwarded-proto": "https"
        },
        "webhookUrl": "https://autoagent.website/webhook-test/351ffe7c-69f2-4657-b593-c848d59205c0",
        "executionMode": "test"
      }
    ]
  },
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "903ca124-8988-42a4-9164-75b04d338fd9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "903ca124-8988-42a4-9164-75b04d338fd9": {
      "main": [
        [
          {
            "node": "9298ef39-7743-4bf0-8251-a66a1463b18c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ddd4bd70-9e00-478c-97f1-601100de5f23": {
      "main": [
        [
          {
            "node": "019f4026-ab3b-4ff7-97f6-be39c5ee2edc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "04c4089d-a6e7-45b0-8417-1baaa6adea56": {
      "ai_languageModel": [
        [
          {
            "node": "9298ef39-7743-4bf0-8251-a66a1463b18c",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "9298ef39-7743-4bf0-8251-a66a1463b18c": {
      "main": [
        [
          {
            "node": "ddd4bd70-9e00-478c-97f1-601100de5f23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5e5ea0c8-c6bc-4d9b-8815-cca16d247da4": {
      "ai_languageModel": [
        [
          {
            "node": "ddd4bd70-9e00-478c-97f1-601100de5f23",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "17735ead-a04a-488b-b176-f7cd94cffbb0": {
      "ai_outputParser": [
        [
          {
            "node": "ddd4bd70-9e00-478c-97f1-601100de5f23",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Intermedio - Recursos Humanos, IA Multimodal

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Flujos de trabajo relacionados recomendados

Grabador de notas de podcast
Crear guiones de anuncios de Meta de alta tasa de conversión utilizando datos de rendimiento combinados de GPT y Gemini
Set
Google Sheets
Manual Trigger
+
Set
Google Sheets
Manual Trigger
12 NodosRobert Breen
Creación de contenido
Chatbot de Sitio Web con IA - Recopilación de Leads CRM con GPT y Hojas de Google
Sistema de recopilación de leads CRM integrando un chatbot de sitio web con IA, GPT y Hojas de Google
Code
Google Sheets
Agent
+
Code
Google Sheets
Agent
14 NodosRobert Breen
Generación de leads
Generación de publicaciones para LinkedIn con IA y aprobación humana
Utiliza GPT-4, GoToHuman y Blotato para generar publicaciones de LinkedIn con aprobación humana
Code
Merge
Filter
+
Code
Merge
Filter
19 NodosRobert Breen
Redes sociales
Usar GPT-4o para clasificar correos de Outlook en categorías de color automáticamente
Usar GPT-4o para clasificar correos de Outlook en categorías de color automáticamente
Set
Manual Trigger
Split In Batches
+
Set
Manual Trigger
Split In Batches
13 NodosRobert Breen
Resumen de IA
Traducción automática multilingüe de contenido de blog
Traducir automáticamente contenido de blog a múltiples idiomas usando GPT-4o y Markdown
Set
Merge
Split Out
+
Set
Merge
Split Out
12 NodosRobert Breen
Creación de contenido
Procesamiento automatizado de soporte al cliente para comercio electrónico con un chatbot multilingüe de GPT-5 Nano
Procesamiento automático de soporte al cliente de comercio electrónico con un chatbot multilingüe GPT-5 Nano
Set
Merge
Split Out
+
Set
Merge
Split Out
13 NodosRobert Breen
Chatbot de IA
Información del flujo de trabajo
Nivel de dificultad
Intermedio
Número de nodos12
Categoría2
Tipos de nodos7
Descripción de la dificultad

Adecuado para usuarios con experiencia intermedia, flujos de trabajo de complejidad media con 6-15 nodos

Autor
Robert Breen

Robert Breen

@rbreen

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34