Overview
Build an n8n chat for your website where an AI Agent asks a few fit questions, checks free times in Google Calendar, and books an introductory call only after the visitor confirms a slot.
Problem or Objective
- Which agents research inbound business leads, score them or draft replies for a person to review?
- Which agents read and update your calendar on request?
More in Sales, Marketing and Support
AI Agents and Models
Tools and Integrations
- Tools
- n8n · Google Calendar
- Prerequisites
- An n8n instance (cloud or self-hosted), a chat model credential, and Google Calendar credentials set up in n8n. A website where you can link to or embed the chat.
How It Works
In n8n, start a workflow with a Chat Trigger node and turn on Make Chat Publicly Available. Choose Hosted Chat to use n8n's own chat page, or Embedded Chat to place n8n's chat widget on your site. Connect an AI Agent node with a chat model, a memory sub-node so it keeps the conversation, and the Google Calendar node as a tool. In the agent's system message, list three or four fit questions (what the visitor needs, rough budget, timing) and the rule for when a lead qualifies. When a visitor qualifies, the agent checks your calendar for free slots in your working hours, offers two or three, and creates the event only after the visitor confirms one in the chat, with their name and email in the event. Visitors who do not qualify get a polite reply and a link to your contact page. Test the flow against a test calendar before you make it public, and review each new booking in your calendar.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: n8n, Google Calendar.
- Check the prerequisitesAn n8n instance (cloud or self-hosted), a chat model credential, and Google Calendar credentials set up in n8n. A website where you can link to or embed the chat.
- Gather your detailsCollect what the prompt asks for: Your business name, Questions that decide fit, When a lead qualifies, Length of the call, Hours you take calls, Fallback contact page.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Qualify chat visitors and offer call slots
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You are the automated assistant on [Your business name]'s website; say so in your first message. Ask these questions one at a time: [Questions that decide fit]. A visitor qualifies when [When a lead qualifies]. If they qualify, use the calendar tool to find free [Length of the call] slots during [Hours you take calls] in the next five working days and offer three. Create the event only after the visitor confirms one slot in this chat, with their name and email in the description. If they do not qualify, thank them and share [Fallback contact page]. Never invent free times or prices.Test against a test calendar first. The visitor confirms the slot in the chat before any event is created, and you review new bookings in your calendar each day.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n pages support a public or embedded chat that runs the workflow on every message, an AI Agent that decides which connected tools to call, and a Google Calendar node that can serve as an agent tool for checking and adding events. They give no figures for bookings or attendance, and none are claimed here.
Limitations and Considerations
Tell visitors at the start of the chat that they are talking to an automated assistant. The AI Agent node needs at least one connected tool, so the calendar tool is required. Booking changes your calendar: keep the agent to the availability check and event creation, let it book only after the visitor confirms in the chat, and review new events daily. Ask only for the details you need to qualify a lead, and check your privacy notice covers them. Google Calendar access needs its own credentials in n8n. Hosted n8n plans and model usage have costs; check them before going live. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.
- You must connect at least one tool sub-node to an AI Agent node.
- Chat Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:35 UTC
What this source supports
- Every message a user sends runs the workflow, so your backend logic processes each message.
- Embedded Chat lets you use n8n's chat widget or your own interface, which calls the Chat URL webhook shown in the node.
- Google Calendar | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 07:01 UTC
What this source supports
- n8n has built-in support for a wide range of Google Calendar features, including adding, retrieving, deleting and updating calendar events.
- This node can be used to enhance the capabilities of an AI agent.

