This is a simple FAQ chatbot that uses n8n for automation and a Groq-hosted LLM to respond to user questions. The chatbot interface is built with HTML and interacts with a webhook flow deployed via n8n.
- Clean and modern chatbot interface
- User input sent to an n8n webhook using the prompt
- n8n workflow forwards the question to a language model (via Groq)
- Scrapes and refers to a specific FAQ page for answers
- Provides concise, bot-style responses
- Hosted completely via n8n and static frontend
📁 project-root
├── index.html # Frontend chatbot UI
├── README.md # This file
└── n8n-workflow.json # Exported workflow from n8n
-
Frontend (HTML page) A user types a question and clicks "Ask". The question is sent to a webhook hosted on n8n.
-
n8n Workflow The workflow consists of the following nodes:
- Webhook Node: Accepts incoming POST requests with user questions.
- Set Node: Extracts the question from the body and assigns it.
- LLM Chain Node: Forms the prompt using the question and sends it to the Groq LLM.
- Groq Chat Model: Calls a Groq-hosted language model.
- Respond to Webhook Node: Returns the LLM's response to the frontend.
-
Web Scraping via Prompting The prompt instructs the model to refer to a specific FAQ page and answer only if the information is available on that page.
git clone https://github.com/your-username/faq-chatbot.git
cd faq-chatbotYou can open the index.html file directly or host it using GitHub Pages, Netlify, or any static host.
- Import the
n8n-workflow.jsonfile into your n8n instance. - Make sure the webhook URL in
index.htmlmatches your n8n public webhook URL. - Add your Groq API credentials in n8n.
- Activate the workflow.
- "What are the office hours?"
- "How can I register for the next semester?"
- "Where can I find the contact information?"
- Add fallback if LLM doesn’t know the answer
- Add chat history / memory
- Deploy frontend with a backend server for security
- Handle multiple languages
This project is licensed under the MIT License.
