Reply to WhatsApp leads with Google Gemini and Cal.com booking
Quick overview This workflow listens for incoming WhatsApp messages and uses Google Gemini plus optional TinyFish web research to draft concise replies, including offering and booking Cal.com meeting slots when requested, then sends the response back to the same WhatsApp contact.
How it works Triggers when a new WhatsApp message is received. Checks that the incoming message contains text and ignores non-text messages. Adds booking and context fields (Cal.com link, event type, timezone, sender details, and message text) to the incoming payload. Uses a Google Gemini-powered agent with short-term chat memory to draft a reply, optionally calling TinyFish Search/Web Agent for lead research and Cal.com Slots/Book to propose and confirm meeting times. Sanitizes the generated response to ensure it is never empty and stays within a safe length limit. Sends the final reply back to the original sender via WhatsApp.
Setup Connect WhatsApp Cloud API credentials for both the WhatsApp Trigger and WhatsApp send action, and ensure your WhatsApp app is configured to deliver message webhooks to n8n. Add a Google Gemini (PaLM) API credential for the chat model used by the agent. Add a Cal.com API key credential and set your Cal.com booking URL, eventTypeId, timezone, and lookahead days in the Booking Config step. (Optional) Add TinyFish credentials if you want the agent to perform web research about people or companies mentioned in chats.
Related Templates
Transform Gmail Newsletters into Insightful LinkedIn Posts Using OpenAI
Who Is This For? This workflow is perfect for content creators, marketers, and business professionals who receive regu...
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Product Ad Copy & CTAs with GPT-4 for Slack and Airtable
⚡ AI Copywriter Pro: Instant Ad Copy & CTA Generator Transform product details into compelling marketing copy in second...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments