How to Build a Website AI Agent in 13 Minutes (Free n8n Template)

TL;DR
Build a website AI agent by connecting an n8n AI Agent node to an OpenAI chat model and window buffer memory, then switching from hosted chat to embedded chat and installing the CDN snippet with the production webhook URL. The demonstrated setup uses a context window length of 10 and can add Google Calendar tools for scheduling. Read on for the exact workflow, prompt, embedding, and booking steps.
Transcript
here's how to build a website AI agent in 13 minutes using NAD I find most people over complicate the hell out of it all you really need is a couple of minutes of work and some elbow grease my name is Nick by the way I scaled my own AI automation agency to 72,000 bucks a month using no code tools like nadn and make.com my whole thing has cut in the... Read More
Key Insights
- Simple AI agents are presented as more suitable for business use because large chains of agents and nodes can produce less predictable and less consistent outputs. Constraining the possible responses and actions makes the automation easier to manage when business revenue depends on consistent behavior.
- The basic n8n workflow consists of a chat message trigger, an AI Agent node, an OpenAI chat model, and window buffer memory. The demonstration sets the memory context window length to 10 before testing the agent through n8n's built-in chat interface.
- A public hosted chat is created by enabling the option that makes the chat publicly available. This produces a chat URL that can be opened directly, allowing users to communicate with the model before the interface is embedded into a separate business website.
- The embedded website widget is installed by changing the chat mode from hosted chat to embedded chat, copying the CDN embed code, and replacing its placeholder with the production webhook URL. The same snippet is described as compatible with custom sites, WordPress, Webflow, Wix, and Squarespace.
- A fixed system message is recommended because it gives the model stable instructions while the user's input continues to arrive automatically from the previous node. The prompt can dynamically insert the current date in ISO 8601 format through an n8n JavaScript expression.
- Business context can be placed directly in the system message, including services, turnaround times, prices, credentials, customers, team composition, and AI usage. The example states a 4 to 6 hour turnaround, a price of 10 cents per word, and an AI-score target under 10%.
- Meeting-booking instructions should require the chatbot to collect the user's first name, email address, preferred date, and preferred time. The chatbot should check the requested date, suggest dates when none are provided, prioritize the next two days, state the Edmonton time zone, and confirm every booking detail.
- Google Calendar tools give the agent separate capabilities for reviewing existing events and creating a meeting. The workflow uses the n8n from-AI expression so the model can supply tool values without every variable being mapped individually, and the same tool pattern can extend to CRM or audit tasks.
Install to Summarize YouTube Videos and Get Transcripts
Explore YouTube Video Summarizer or Get YouTube Transcript Extractor
Questions & Answers
Q: How do you build a website AI agent with n8n?
Create a new n8n workflow, add an AI Agent node, select the OpenAI chat model, and connect window buffer memory. Set the demonstrated context window length to 10, test the conversation through the built-in chat, and then add a fixed system message and any required tools.
Q: How do you embed an n8n AI chatbot on a website?
Change the chat mode from hosted chat to embedded chat and copy the CDN embed snippet from the installation instructions. Add the snippet to the website, replace its placeholder with the production webhook URL, and refresh the site to display the chat widget.
Q: Which websites can use the n8n CDN chat embed?
The CDN snippet can be added to a custom-coded website or a site built with WordPress, Webflow, Wix, or Squarespace. The exact installation location depends on the service hosting the website; the demonstration inserts the HTML through Netlify's post-processing configuration.
Q: Why should a business AI agent use a simple workflow?
A simple workflow constrains the possible outputs, making the agent's behavior more predictable and consistent. The transcript says large waterfall setups, in which agents call other agents, tend to produce less predictable results, while business revenue depends on consistency.
Q: What should an n8n website chatbot system message include?
The fixed system message should define the chatbot's identity, current date, time zone, business facts, operating instructions, conversational style, and boundaries. The example also includes services, turnaround times, prices, credentials, customers, team details, and rules for redirecting unrelated requests.
Q: How should the chatbot collect details for a meeting?
The chatbot should collect the user's first name, email address, preferred date, and preferred time. If no date is supplied, it should suggest dates while prioritizing the next two days, state the Edmonton time zone, and confirm every booking detail before creating the meeting.
Q: How does an n8n AI agent check availability and book calendar events?
Give the agent separate Google Calendar tools for retrieving existing events and creating a meeting. The workflow uses n8n's from-AI expression so the model can provide tool values without requiring every variable to be mapped individually.
Q: Should business information be placed in RAG or the system prompt?
For the demonstrated chatbot, the recommendation is to place the relevant business context directly in the system prompt. The transcript says RAG can be used but may provide less value than expected, while a detailed prompt may perform just as well or better for this use case.
Summary & Key Takeaways
-
The initial n8n workflow combines a chat trigger, an AI Agent node, an OpenAI chat model, and window buffer memory with a context length of 10. Making the chat public produces a hosted URL for testing, while changing the interface from hosted chat to embedded chat prepares the same workflow for website deployment.
-
The website installation uses n8n's CDN embed snippet, which can be added to custom-coded websites or services such as WordPress, Webflow, Wix, and Squarespace. The placeholder webhook address must be replaced with the workflow's production webhook URL. The demonstration injects the HTML through Netlify's post-processing configuration and displays a chat widget.
-
The recommended system message defines the chatbot's identity, current date, time zone, business facts, operating instructions, conversational style, and boundaries. Calendar tools can then retrieve existing events and create meetings. The agent must collect a first name, email address, preferred date and time, then confirm the complete booking details with the user.
Read in Other Languages (beta)
Share This Summary 📚
Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator
Explore More Summaries from Nick Saraev 📚






Summarize YouTube Videos and Get Video Transcripts with 1-Click
Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator