Mindket

Chatbot that answers with Google search and Wikipedia

Newversion 1 · updated

Overview

An n8n workflow with a chat window. An OpenAI agent answers your questions, searches Google through SerpApi for recent facts, looks topics up in Wikipedia, and remembers the last 20 interactions.

Chatbot that answers with Google search and Wikipedia is an n8n workflow in the Research 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.

At a glance

Runs in
  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • More tools: connect another tool node to the agent, such as a calculator or a page reader
  • Other channels: swap the trigger for n8n’s Chat Trigger to put the same agent on a chat page

Platform

Connects 3 apps

How it works

Trigger

Chat window

It starts when you press Chat on the canvas and send a message with:

  • Any question, in plain words

Actions

  1. The AI Agent reads your question together with the last 20 interactions from memory
  2. It decides whether to answer from what it knows or to use a tool
  3. SerpApi runs a Google search when it needs recent facts
  4. Wikipedia returns an article’s text when it needs background
  5. The model writes the answer in the chat from what the tools returned

Result

A chat answer that can draw on a Google search and Wikipedia, with your earlier questions in mind

Integrations

What you need before you start.

OpenAI

Language model

Runs gpt-4o-mini at a temperature of 0.3 to decide which tool to use and to write each answer.

NeedsOpenAI API key

SerpApi

Web search

Runs Google searches for the agent through its search tool.

NeedsSerpApi API key, in a SerpApi credential

Wikipedia

Reference

Looks topics up in Wikipedia for the agent.

NeedsNothing: no account or key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
2 steps, starting on a Manual Chat event
AI
1 step calls an AI model: AI Agent
Sign-ins
Signs in to: SerpApi, OpenAI and Manual Chat
API keys
No API key is left in the file
Step types
Mindket’s checker reads all 2 of its step types

Read from the workflow’s file, not from a run.

About

What it is

This n8n workflow is a chat assistant that can look things up. You open n8n’s Chat window and ask a question. An AI Agent backed by an OpenAI chat model answers it, and it can reach for two tools on the way: a Google search through SerpApi and Wikipedia. A memory node hands it the last 20 interactions, so a follow-up can lean on what came before. Six nodes do the work, beside three sticky notes.

Who it suits

Researchers, writers and curious teams who want quick answers with a search behind them, and anyone learning how an agent chooses between tools. Skip it if you need a chatbot for visitors. It runs from n8n’s own Chat window, and its memory is one shared session.

Who uses it, and how
IndustryWho uses itHow they use itExample
ResearchAnalystsAsk a question and get an answer built from a fresh search and a Wikipedia backgroundAn analyst asks for a company’s latest news and a short history of it.
Writing and mediaWriters and editorsCheck a fact or a name before they write it downA writer asks when a bridge opened and who built it.
EducationTeachers and studentsShow how an agent picks a tool, then try other tools in the same placeA teacher asks one question that needs search and one that needs background.
Small businessOwnersKeep an eye on a competitor or a topic by asking the same question each weekAn owner asks what a rival announced this week.

You need a little n8n: import a file, add two credentials and open the Chat window. Nothing in the file states a setup time.

Where to use it

Any n8n that can reach OpenAI and SerpApi will run it. Wikipedia needs nothing.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • More tools: connect another tool node to the agent, such as a calculator or a page reader
  • Other channels: swap the trigger for n8n’s Chat Trigger to put the same agent on a chat page

Setup

Download saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Two accounts cover every step.

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OpenAIAn API key for the chat model
SerpApiAn account and its API key, for the Google search tool
WikipediaNothing: no account or key
  1. In n8n, create a workflow, open its menu, choose Import from File and pick workflow.json.
  2. Add an OpenAI credential and select it in Chat OpenAI.
  3. Add a SerpApi credential with your API key and select it in SerpAPI.
  4. Open Chat OpenAI. It calls gpt-4o-mini, which OpenAI’s deprecations page, read on 12 November 2026, shuts down on 14 January 2027, with gpt-6-luna as the replacement. Pick the replacement before then.
  5. Save, press Chat on the canvas and ask a question that needs a recent fact.

How to use it

Press Chat, type a question and send it. The agent answers from what it knows or searches first. Ask a follow-up, and it still has the last 20 interactions in front of it. Open the agent’s log in the Chat window to see which tool it called.

What to change for a different result
To changeWhere
The model and its temperatureChat OpenAI, gpt-4o-mini at 0.3 in the file
How much it rememberscontextWindowLength in Window Buffer Memory, 20
The toolsSerpAPI and Wikipedia: switch one off or connect another
The searchThe options of SerpAPI: country, language, Google domain and device
The agent’s roleA system message under the options of AI Agent, which the file leaves empty

Example

You ask for this week’s news about a company and a short history of it.

The agent searches Google through SerpApi for the news and reads Wikipedia for the history. It then writes one answer in the chat. Ask “and who runs it now?” next, and the memory lets it know which company you mean. Check anything that matters, since a search result can be old or wrong.

For newcomers and experts

If you are new. n8n draws a workflow as boxes joined by lines, and each box, a node, does one job. The agent sits in the middle with three things connected to it: a model, a memory and two tools. It chooses a tool by itself. Ask one question that needs a search and one that needs background, and watch which tool it picks.

For experts. The tools hang under the agent as sub-nodes, and the agent’s prompt reads the field the trigger sends.

Where to look closer
NodeWhat it doesWhat to know
AI AgentVersion 1.6, a Tools Agent, with its prompt set to {{ $json.input }}Manual Chat Trigger 1 puts the message in input. n8n’s Chat Trigger sends chatInput, so change the prompt if you swap the trigger
Window Buffer MemoryVersion 1, a fixed session key chat_historyEvery chat in the workflow shares that one session, held in n8n’s memory
SerpAPIn8n’s tool for Google search through SerpApiIts options default to country us, language en, google.com and a desktop device
Wikipedian8n’s tool for searching WikipediaIt takes no credential

Good to know

One shared memory and two outside tools are what to watch.

  • Memory: every chat in this workflow shares one session, chat_history, and a restart of n8n clears it
  • Billing: each question costs at least one model call, and a question that uses a tool costs at least two. Each search counts against your SerpApi plan
  • Models: OpenAI shuts gpt-4o-mini down on 14 January 2027, so step 4 swaps in its replacement
  • Accuracy: the agent answers from what the tools return, and a search result can be wrong or old
  • Your data: the question goes to OpenAI and the search words to SerpApi. Wikipedia sees what the agent looks up
  • Where it runs: from n8n’s Chat window in the editor. Nothing in the file opens a public chat
  • Credentials: the JSON holds none, and the copy held none for SerpAPI either

README and files

README

Chatbot that answers with Google search and Wikipedia

An n8n workflow with a chat window. An AI Agent answers your questions with an OpenAI chat model, and it can use two
tools when its own knowledge is not enough: a Google search through SerpApi, and Wikipedia. A memory node keeps the last
20 interactions, so a follow-up can refer to what was said before.

What is inside

  • workflow.json: the workflow as n8n exports it, 6 nodes beside 3 sticky notes. It holds no credential.
  • README.md: these notes.

What we changed from the original copy

The nodes are as the copy had them. Mindket gave the file a name and kept no credential in it. The copy held none for
SerpAPI, so that node arrives with none selected.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • An OpenAI API key.
  • A SerpApi account and its API key.
  • Wikipedia needs no account or key.

Set it up

  1. In n8n, create a workflow, open its menu and choose Import from File. Pick workflow.json.
  2. Add an OpenAI credential and select it in Chat OpenAI.
  3. Add a SerpApi credential with your API key and select it in SerpAPI.
  4. Open Chat OpenAI. It calls gpt-4o-mini. OpenAI's deprecations page, read on 12 November 2026, gives 14 January 2027
    as the shutdown date of that model and names gpt-6-luna as its replacement. Pick the replacement before then.
  5. Save, press Chat on the canvas and ask a question that needs a recent fact.

How a run goes

  1. On new manual Chat Message starts a run when you send a message in the Chat window.
  2. AI Agent is a Tools Agent, version 1.6. Its prompt is {{ $json.input }}, the field this trigger puts the message in.
  3. Chat OpenAI is its model: gpt-4o-mini at a temperature of 0.3.
  4. Window Buffer Memory hands the agent the last 20 interactions under the session key chat_history.
  5. SerpAPI lets the agent search Google.
  6. Wikipedia lets it look a topic up in Wikipedia.
  7. The agent decides which tool to use, if any, and answers in the chat.

Change the look

  • The model and its temperature: Chat OpenAI.
  • How much it remembers: contextWindowLength in Window Buffer Memory.
  • The tools: SerpAPI and Wikipedia. Switch one off, or connect another tool to the agent.
  • The search: the options of SerpAPI, such as country, language, Google domain and device.
  • The agent's role and tone: add a system message under the options of AI Agent. The file has none.

Good to know

  • The memory sits in n8n's own memory. Every chat in this workflow shares one session, chat_history, and a restart of n8n
    clears it.
  • Each question costs at least one model call, and a question that uses a tool costs at least two.
  • Each search counts against your SerpApi plan. Wikipedia costs nothing.
  • Your question goes to OpenAI, and the search words go to SerpApi. Wikipedia sees what the agent looks up.
  • A search result can be wrong or out of date, and the agent answers from what it gets back. Check anything that matters.
  • It runs from n8n's Chat window in the editor. Nothing in the file opens a public chat.
  • If you replace the trigger with n8n's Chat Trigger, change the agent's prompt to {{ $json.chatInput }}.
  • The JSON holds no credential.
Files
NOTICE.md  598 B
README.md  3 KB
workflow.json  4 KB

3 files, 8 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Research

See all in Research

EarthJev

dBenf · Kit

Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…

New

getting-over-it-rl-jax

zimmerk4 · Kit

Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…

New

ReFoCo

yuji-nozawa · Kit

Pretrained vision transformer checkpoints in three sizes from a research paper on training attention heads to focus on image regions. For researchers who extra…

New