Skip to content
FlowHubFluxonLab
A
AI Automationfree

Log clinic chatbot inquiries from a website widget with OpenAI and Google Sheets

by Vonnadapted from n8n official workflow galleryUpdated Aug 2026
RequiresAAI AgentCCodeGoogle SheetsGoogle SheetsOpenAI Chat ModelOpenAI Chat ModelSSimple Memory
Share Post Share
OpenAI Chat ModelOpenAI Chat Mod…WeReceiveChatMessageReceiveChatMess…SeExtractUserMessageExtractUserMess…AgMedi - AI ReceptionistMedi - AI Recep…MBSession Memory (per visitor)1Session Memory …CoStrip Hidden Data Block1Strip Hidden Da…IfHas Collectible DataHas Collectible…Update Inquirer Row in SheetUpdate Inquirer…RTSend Reply To Chat WidgetSend Reply To C…123456789
1/5
STEPS · 9
Starts on an incoming request

Quick overview This workflow receives website chatbot messages via a webhook, uses OpenAI to generate an AI receptionist reply with session-based context, extracts structured inquiry details, and appends or updates a single visitor row in Google Sheets before returning a clean JSON reply to the widget. How it works Receives a POST request from the website chat widget containing the visitor message, sessionId, and timestamp. Uses an OpenAI-powered receptionist agent with per-session memory to generate a contextual reply and a hidden JSON block of extracted inquiry details. Strips the hidden data block from the reply, parses the JSON into fields (name, contact, intent, appointment details, summary, status), and flags whether any meaningful data was captured. If collectible data exists, appends or updates a Google Sheets row matched on Session ID with the latest extracted details and a Last Updated timestamp. Returns the cleaned reply to the chat widget as a JSON response with CORS headers. Setup Add an OpenAI API credential for the OpenAI chat model used by the receptionist agent.

Tags

n8nreference-onlyagentgoogle-sheetslm-chat-open-aimemory-buffer-window
Connects
AAI AgentCCodesheetsGoogle SheetsopenaichatmodelOpenAI Chat ModelSSimple Memory
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes9
AddedJun 24, 2026

Related workflows

See all AI Automation
AopenaichatmodelserpapigooglesearchS
free

Slack chatbot powered by AI

This workflow offers an effective way to handle a chatbot's functionality, making use of multiple tools for information retrieval, conversation context storage, and message sending. It's a setup tailored for a Slack environment, aiming to offer an interactive, AI-driven chatbot experience. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI agent chat

This workflow employs OpenAI's language models and SerpAPI to create a responsive, intelligent conversational agent. It comes equipped with manual chat triggers and memory buffer capabilities to ensure seamless interactions. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team
AopenaichatmodelserpapigooglesearchS
free

AI chatbot that can search the web

This workflow is designed for dynamic and intelligent conversational capabilities. It incorporates OpenAI's GPT-4o model for natural language understanding and generation. Additional tools include SerpAPI and Wikipedia for enriched, data-driven responses. The workflow is triggered manually, and utilizes a 'Window Buffer Memory' to maintain the context of the last 20 interactions for better conversational continuity. All these components are orchestrated through n8n nodes, ensuring seamless interconnectivity. To use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team