anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
An n8n workflow behind a chat window on your website. An agent on gpt-4o answers from your FAQ through a Pinecone assistant, keeps each conversation in PostgreSQL and emails your support team through Gmail when a visitor needs a person.
Website support chatbot with FAQ answers and email handoff is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.
Website chat
It starts when a visitor sends a message in the chat window on your site, with:
Answers from your FAQ at any hour, and an email to your team when a person is needed
What you need before you start.
Language model
Runs gpt-4o for the agent, which answers visitors and decides when to search the FAQ or hand off.
NeedsOpenAI API key
FAQ answers
Answers each FAQ question from the files uploaded to your Pinecone assistant.
NeedsPinecone API key and an assistant with your FAQ
Chat memory
Stores each session’s messages so the agent keeps the context of the conversation.
NeedsA PostgreSQL database and its login
Sends the handoff email to your support address, written by the agent.
NeedsA Google account that may send mail
Checked by Mindket on 13 Nov 2026
This n8n workflow is the back end of a support chat window on your website. Six nodes do the work. Each message reaches an AI agent on gpt-4o, which remembers the last five exchanges of that visitor’s session in PostgreSQL. For a question about your business it asks a Pinecone assistant that holds your FAQ files. When the visitor needs a person, it emails your support team through Gmail.
Small businesses and online shops with a written FAQ and a support inbox, who want routine questions answered at any hour. Skip it if answers depend on live data such as an order’s status. The bot only knows the files you upload.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Online retail | Shop owners | Answer shipping, returns and sizing questions from the shop’s policies | A visitor asks about returns at midnight and gets the shop’s 30-day rule from the uploaded policy. |
| Software and apps | Small support teams | Answer how-to questions from the help docs and pass bugs to the team | A user reports a crash, gives a name and an address, and the team gets the handoff email. |
| Local services | Clinics, studios and gyms | Answer hours, prices and booking questions from one document | A gym’s chat explains the class pass from the price list. |
| Agencies | Builders who set up sites for clients | Give each client a chat window with their own assistant and inbox | An agency imports the workflow once per client and swaps the assistant name and the address. |
Any n8n that your website, OpenAI, Pinecone, your database and Gmail can all reach. The chat window itself is n8n’s @n8n/chat package on your page, or a widget of your own that posts to the trigger.
Get it saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Its author puts setup at about 17 minutes, with the database and the assistant already in place.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key, for gpt-4o |
| Pinecone | An API key, and an assistant with your FAQ uploaded as files |
| PostgreSQL | A database n8n can reach. The memory node writes to n8n_chat_histories |
| Gmail | An account to send from, and your team’s address |
| Your website | A page where you can add the chat window’s script |
workflow.json.OpenAI Chat Model and a Postgres credential in Postgres Chat Memory.Rag Questions, put your assistant’s name in place of YOUR_ASSISTANT_NAME in the URL, and your Pinecone key in place of YOUR_PINECONE_API_KEY.Send Email and replace YOUR_SUPPORT_EMAIL with your team’s address.When chat message received.webhookUrl.The original copy left the Pinecone address, its headers and the support address blank. The README explains the request Rag Questions sends, which is Pinecone’s standard chat call.
Visitors type into the chat window. The agent answers from the FAQ, and asks for a name and an email address before it hands a problem to your team. Your team gets the email. It answers the visitor from its own inbox.
| To change | Where |
|---|---|
| Tone, hours and handoff rules | The system message of AI Agent, which has two short rules today |
| What the bot knows | The files in your Pinecone assistant |
| Memory | Context Window Length in Postgres Chat Memory, five exchanges unless you set it |
| The handoff email | The subject and the address in Send Email |
| Which sites may embed it | Allowed Origins (CORS) in the trigger’s options |
A visitor writes that the jacket they ordered came in the wrong size, and gives the name Sam Lee and sam@example.com. The agent checks the returns policy through Rag Questions, explains it, then sends the team an email like this one.
Subject: New Support request Sam Lee (sam@example.com) received a jacket in the wrong size and would like an exchange. They have read the returns policy and are waiting for a reply.
If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. Here one agent sits in the middle with a model, a memory and two tools under it, and it decides when to use each tool. A credential is a key n8n keeps for you. Publish, open your page and chat with it once. Executions then shows each step.
For experts. Two models answer here. The agent runs on gpt-4o in n8n. The Pinecone assistant answers FAQ questions with its own model, set to gpt-4o in the request body. That request comes from Rag Questions, an HTTP Request tool with one placeholder, {rag-question}, which the agent fills. The memory key joins sessionId and chatId, so it works with n8n’s window and with a widget that sends a chat ID.
The chat is public. Plan for cost and spam.
An n8n workflow. A chat window on your website talks to an AI agent on gpt-4o. It answers questions from your FAQ through
a Pinecone assistant, remembers each conversation in PostgreSQL, and emails your support team through Gmail when a
visitor needs a person.
workflow.json: the workflow as n8n exports it, six nodes. It holds no credential. The original copy left theYOUR_PINECONE_API_KEY, the content type, Pinecone's API version 2026-07 and YOUR_SUPPORT_EMAIL.README.md: these notes.workflow.json.OpenAI Chat Model.Postgres Chat Memory. It writes to a table named n8n_chat_histories.Rag Questions. In its URL, put your assistant's name in place of YOUR_ASSISTANT_NAME, and in the Api-KeyYOUR_PINECONE_API_KEY.Send Email. Replace YOUR_SUPPORT_EMAIL with your team's address.When chat message received.Rag Questions sends the visitor's question to a Pinecone assistant and passes its answer to the agent. The body is
Pinecone's standard chat request: one user message, no streaming, and gpt-4o as the model the assistant answers with.
Pinecone's documentation, read on 2 November 2026, gives the address ashttps://prod-1-data.ke.pinecone.io/assistant/chat/<assistant name>, with the Api-Key, Content-Type andX-Pinecone-Api-Version headers this node sends. If your assistant's page in the Pinecone console shows another host,
use that one.
Any other service that answers a POST with a question in it can stand in. Change the URL, the headers and the body
together.
When chat message received is set to Embedded Chat and open to the public, so it takes messages from a chat window on
your site. n8n's own window is the @n8n/chat package. Load it on your page and give it the trigger's production URL
as its webhookUrl, as the package's page on npm shows. Its messages arrive with chatInput and sessionId. The agent
also reads message and the memory also reads chatId, for a widget of your own that sends those names instead.
| Node | What it does |
|---|---|
| When chat message received | Takes each message from the chat window |
| AI Agent | Reads the message with a short system message: answer from the FAQ, hand off by email |
| OpenAI Chat Model | gpt-4o, the agent's model |
| Postgres Chat Memory | Keeps the last five exchanges of each session, keyed on the session and chat IDs |
| Rag Questions | Asks the Pinecone assistant a question the agent writes |
| Send Email | Sends your team an email with the subject New Support request and a message the agent writes |
The system message asks the agent to put the visitor's name and email address in the handoff, so it asks for them
first. The email goes to your team only: the address is fixed, and nothing writes to the visitor.
AI Agent. It is two short rules, so this is thePostgres Chat Memory, five exchanges unless you set it.Send Email, and the address it goes to.README.md 5 KB workflow.json 5 KB
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
perplexity-ai · Kit
Picks the best option for a decision from text and images, such as which team should handle a request, with a probability for each choice, for developers who b…
numind · Kit
Reads documents as text or images and fills a JSON template with the fields you ask for, or converts the pages to Markdown. A 4B model for teams that process s…
nace-ai · Kit
Scores yes or no, multiple choice and rating questions about a document in one pass, with a probability for every option. An 8B decision model from Nace.AI tha…