Agregar automáticamente nuevas citas de Calendly a una hoja de cálculo de Google
Este es unCRM, Multimodal AIflujo de automatización del dominio deautomatización que contiene 5 nodos.Utiliza principalmente nodos como Code, Webhook, GoogleSheets. Añadir automáticamente nuevas citas de Calendly a Google Sheets
- •Punto final de HTTP Webhook (n8n generará automáticamente)
- •Credenciales de API de Google Sheets
Nodos utilizados (5)
Categoría
{
"meta": {
"instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc"
},
"nodes": [
{
"id": "f99e1679-71a7-44f9-bdd5-948b9f25603d",
"name": "Instrucciones de configuración",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"width": 280,
"height": 220,
"content": "📅 **SETUP REQUIRED:**\n\n1. **Create Google Sheet:**\n - Headers: Name | Email | Phone | Event Type\n - Date | Time | Status | Meeting Link | Notes\n - Replace YOUR_GOOGLE_SHEET_ID below\n\n2. **Calendly Webhook:**\n - Calendly Account → Integrations → Webhooks\n - Add webhook URL from node below\n - Select: invitee.created event\n\n3. **Google Sheets OAuth:**\n - Connect Google account credentials\n\n🎯 Auto-logs all new bookings with details!"
},
"typeVersion": 1
},
{
"id": "e43f2bf7-edc3-4112-912a-5ce1417fcf8c",
"name": "Reserva de Calendly Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
0,
224
],
"webhookId": "calendly-booking-webhook",
"parameters": {
"path": "calendly-booking",
"options": {},
"httpMethod": "POST"
},
"typeVersion": 1
},
{
"id": "92230608-50d3-4e5a-be13-f6a0318dabec",
"name": "Normalizar datos de reserva",
"type": "n8n-nodes-base.code",
"position": [
208,
224
],
"parameters": {
"jsCode": "// Normalize Calendly booking data\nconst webhookData = $input.first().json;\nconst payload = webhookData.payload || webhookData;\n\n// Handle different Calendly webhook structures\nconst event = payload.event || payload;\nconst invitee = event.invitee || event;\nconst eventType = event.event_type || event.event || {};\n\n// Extract meeting details\nconst startTime = new Date(event.start_time || event.scheduled_event?.start_time);\nconst endTime = new Date(event.end_time || event.scheduled_event?.end_time);\n\n// Parse custom form questions/answers\nconst questions = invitee.questions_and_responses || invitee.questions_and_answers || [];\nlet phone = '';\nlet notes = '';\n\n// Extract phone and notes from questions\nquestions.forEach(qa => {\n const question = (qa.question || '').toLowerCase();\n if (question.includes('phone') || question.includes('mobile')) {\n phone = qa.answer || qa.response || '';\n } else if (question.includes('note') || question.includes('comment') || question.includes('message')) {\n notes += (qa.answer || qa.response || '') + ' ';\n }\n});\n\nconst normalizedData = {\n name: invitee.name || 'Unknown',\n email: invitee.email || '',\n phone: phone.trim(),\n event_type: eventType.name || eventType.type || 'Meeting',\n date: startTime.toLocaleDateString(),\n time: `${startTime.toLocaleTimeString()} - ${endTime.toLocaleTimeString()}`,\n status: invitee.status || event.status || 'Scheduled',\n meeting_link: event.location?.join_url || event.join_url || '',\n notes: notes.trim(),\n duration: Math.round((endTime - startTime) / (1000 * 60)), // Duration in minutes\n timezone: invitee.timezone || event.timezone || 'UTC',\n booking_created: new Date().toISOString(),\n calendly_event_id: event.uuid || event.id || '',\n invitee_id: invitee.uuid || invitee.id || ''\n};\n\nconsole.log('Normalized Calendly booking:', {\n name: normalizedData.name,\n email: normalizedData.email,\n event_type: normalizedData.event_type,\n date: normalizedData.date,\n time: normalizedData.time\n});\n\nreturn {\n json: normalizedData\n};"
},
"typeVersion": 2
},
{
"id": "44827cf4-aa34-4df3-9a9f-63184fc1ee86",
"name": "Guardar reserva en Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
400,
224
],
"parameters": {
"options": {
"useAppend": true
},
"operation": "appendOrUpdate",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "YOUR_GOOGLE_SHEET_ID"
}
},
"typeVersion": 4
},
{
"id": "f3264f93-3929-4ae7-921a-b4df8d10ab01",
"name": "Registrar éxito de la reserva",
"type": "n8n-nodes-base.code",
"position": [
608,
224
],
"parameters": {
"jsCode": "// Optional: Send confirmation or notification\nconst booking = $input.first().json;\n\n// Log successful booking save\nconsole.log(`✅ Successfully saved booking for ${booking.name}`);\nconsole.log(`📅 Event: ${booking.event_type}`);\nconsole.log(`📧 Email: ${booking.email}`);\nconsole.log(`🕒 Time: ${booking.date} at ${booking.time}`);\n\n// You could extend this to send confirmation emails,\n// Slack notifications, or other integrations\n\nconst summary = {\n success: true,\n booking_summary: `New ${booking.event_type} booking for ${booking.name} on ${booking.date}`,\n next_actions: [\n 'Booking saved to Google Sheets',\n 'Consider sending confirmation email',\n 'Add to calendar if needed'\n ]\n};\n\nreturn {\n json: summary\n};"
},
"typeVersion": 2
}
],
"pinData": {},
"connections": {
"92230608-50d3-4e5a-be13-f6a0318dabec": {
"main": [
[
{
"node": "44827cf4-aa34-4df3-9a9f-63184fc1ee86",
"type": "main",
"index": 0
}
]
]
},
"44827cf4-aa34-4df3-9a9f-63184fc1ee86": {
"main": [
[
{
"node": "f3264f93-3929-4ae7-921a-b4df8d10ab01",
"type": "main",
"index": 0
}
]
]
},
"e43f2bf7-edc3-4112-912a-5ce1417fcf8c": {
"main": [
[
{
"node": "92230608-50d3-4e5a-be13-f6a0318dabec",
"type": "main",
"index": 0
}
]
]
}
}
}¿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?
Principiante - CRM, 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
David Olusola
@dae221I help ambitious businesses eliminate operational bottlenecks and scale faster with AI automation. My clients typically see 40-60% efficiency gains within 90 days. Currently accepting 3 new projects this quarter - david@daexai.com
Compartir este flujo de trabajo