Category: Automations › AI Customer Support · Best for: Any business website · Platform: n8n · Steps: 5
What it does
The chatbot reads your website pages and answers visitors' questions.
Works with: OpenAI, Memory Buffer Window, Tool HTTP Request, Agent
What you get
- The n8n workflow file (
workflow.json), ready to import - This setup guide
- The list of fields to change for your own accounts (see Install below)
- Email support if you get stuck
Before you start
-
An n8n account. Easiest: n8n Cloud (free trial). Self-host for free with Docker:
docker run -it --rm -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n, then open http://localhost:5678. -
Accounts and API keys for these services:
- OpenAI API key: how to connect (used by gpt-4o-mini)
Install
- In n8n, click Create workflow (top right).
- Click the ⋯ menu → Import from file and choose
workflow.json. Or open the file, copy everything and paste it onto the empty canvas with Ctrl/Cmd + V. - Open each node with a red warning triangle and pick or create the matching credential from the list above.
- Click Save.
Test it
- Click Test workflow (or Execute workflow). When chat message received starts it. Trigger it once with real sample data.
- Click each node to check its output. A green tick means the step worked.
- Fix any red node: it's almost always a credential or a field that still points at a sheet or chat that isn't yours.
Go live
Toggle Active (top right). From now on it runs on its own. Check Executions in the left sidebar to see every run.
How it works, step by step
- When chat message received starts the workflow (Chat).
- gpt-4o-mini uses AI (OpenAI).
- Window Buffer Memory uses AI (Memory Buffer Window).
- Jina.ai Web Scraper Tool uses AI (Tool HTTP Request).
- Jina.ai Web Scraping Agent uses AI (Agent).
Extra setup notes
These notes are also on the canvas as yellow sticky notes:
AI Agent Chatbot with Jina.ai Web Scraper
https://jina.ai/
Jina.ai Web Scraper Tool
No API Key Required
The AI Agent Chatbot with Jina.ai Web Scraper workflow is a powerful automation designed to integrate real-time web scraping capabilities into an AI-driven chatbot. Here's how it works and why it's important:
How It Works
- Chat Trigger: The workflow begins when a user sends a chat message, triggering the "When chat message received" node.
- AI Agent Processing: The input is passed to the "Jina.ai Web Scraping Agent," which uses advanced AI logic to interpret the user’s query and determine the information needed.
- Web Scraping: The agent utilizes the "HTTP Request" node to scrape real-time data from a user-provided URL. This allows the chatbot to fetch and analyze live content from websites.
- Memory Management: The "Window Buffer Memory" node ensures context retention by storing and managing conversational history, enabling seamless interactions.
- Language Model Integration: The scraped data is processed using the "gpt-4o-mini" language model, which generates clear, accurate, and contextually relevant responses for the user.
Why It's Important
- Real-Time Information Retrieval: This workflow empowers users to access up-to-date web content directly through a chatbot, eliminating the need for manual web searches.
- Enhanced User Experience: By combining web scraping with conversational AI, it delivers precise answers tailored to user queries in real time.
- Versatility: It can be applied across various domains, such as customer support, research, or data analysis, making it a valuable tool for businesses and individuals alike.
- Automation Efficiency: Automating web scraping and response generation saves time and effort while ensuring accuracy.
Try Me!
User prompt must include a URL with initial question.
Prompt Example:
"How do I install Ollama on windows using the docs from
Troubleshooting
- "Credentials not found": open the node and select your credential again.
- Google "access blocked": in Google Cloud, add your email as a test user on the OAuth consent screen.
- Webhook not firing: copy the node's Production URL (not Test URL) into the other app, and make sure the workflow is Active.
- AI node errors: check your API key has billing enabled and the model name exists on your plan.
- Nothing happens on schedule: the workflow must be Active, and self-hosted n8n must stay running.
Need help?
Reply to your Morning Method order email and we'll help you get it running.
© Morning Method