{
  "openruna_format": "flow-graph-v1",
  "title": "Build a Phone Agent to qualify outbound leads and inbound calls with RetellAI -vide",
  "slug": "build-a-phone-agent-to-qualify-outbound-leads-and-inbound-calls-with-retellai-vide",
  "source_filename": "1362_Wait_Webhook_Create_Webhook.json",
  "nodes": [
    {
      "id": "Detect new lead in Google Sheets",
      "name": "Detect new lead in Google Sheets",
      "integration": "googleSheets",
      "kind": "trigger"
    },
    {
      "id": "Send SMS reminder to call lead in 5 minutes",
      "name": "Send SMS reminder to call lead in 5 minutes",
      "integration": "twilio",
      "kind": "action"
    },
    {
      "id": "Wait 5 minutes before making call",
      "name": "Wait 5 minutes before making call",
      "integration": "wait",
      "kind": "logic"
    },
    {
      "id": "Call new lead using RetellAI",
      "name": "Call new lead using RetellAI",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Receive inbound call from RetellAI (webhook)",
      "name": "Receive inbound call from RetellAI (webhook)",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Check if phone number exists in Google Sheets",
      "name": "Check if phone number exists in Google Sheets",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Send response to inbound webhook call",
      "name": "Send response to inbound webhook call",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Receive post-call data from RetellAI (webhook)",
      "name": "Receive post-call data from RetellAI (webhook)",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Filter for analyzed calls only",
      "name": "Filter for analyzed calls only",
      "integration": "filter",
      "kind": "logic"
    },
    {
      "id": "Check if call was outbound",
      "name": "Check if call was outbound",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Update lead record in Google Sheets",
      "name": "Update lead record in Google Sheets",
      "integration": "googleSheets",
      "kind": "action"
    },
    {
      "id": "Send call summary email",
      "name": "Send call summary email",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Generate call summary with OpenAI",
      "name": "Generate call summary with OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Send confirmation email to lead",
      "name": "Send confirmation email to lead",
      "integration": "gmail",
      "kind": "action"
    }
  ],
  "edges": [
    {
      "from": "Check if call was outbound",
      "to": "Update lead record in Google Sheets"
    },
    {
      "from": "Check if call was outbound",
      "to": "Generate call summary with OpenAI"
    },
    {
      "from": "Filter for analyzed calls only",
      "to": "Check if call was outbound"
    },
    {
      "from": "Detect new lead in Google Sheets",
      "to": "Send SMS reminder to call lead in 5 minutes"
    },
    {
      "from": "Generate call summary with OpenAI",
      "to": "Send confirmation email to lead"
    },
    {
      "from": "Wait 5 minutes before making call",
      "to": "Call new lead using RetellAI"
    },
    {
      "from": "Update lead record in Google Sheets",
      "to": "Send call summary email"
    },
    {
      "from": "Send SMS reminder to call lead in 5 minutes",
      "to": "Wait 5 minutes before making call"
    },
    {
      "from": "Receive inbound call from RetellAI (webhook)",
      "to": "Check if phone number exists in Google Sheets"
    },
    {
      "from": "Check if phone number exists in Google Sheets",
      "to": "Send response to inbound webhook call"
    },
    {
      "from": "Receive post-call data from RetellAI (webhook)",
      "to": "Filter for analyzed calls only"
    }
  ]
}