Mindket

Chat assistant that searches Google through SerpApi

Newversion 1 · updated

Overview

An n8n workflow with a chat. An OpenAI model answers your questions and, when it needs fresh facts, runs a Google search through SerpApi, with the last five messages kept as its memory.

Chat assistant that searches Google through SerpApi is an n8n workflow in the Productivity 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
  • A website or a messaging app: swap the trigger for a webhook or a chat app’s trigger, and keep the agent as it is

Platform

Connects 2 apps

How it works

Trigger

Chat message

It starts when you send a message in n8n’s chat, such as a question like:

  • A fact that changes, such as a score, a price or a rate
  • A follow-up to an earlier answer in the same chat

Actions

  1. The agent reads your message and the last five messages of the chat
  2. It decides whether the question needs a fresh look at the web
  3. If so, the SerpApi tool runs a Google search and returns the results
  4. The model writes the answer in the chat from the results, or from what it knows

Result

A reply in the chat that answers your question, drawn from Google results when the agent searched

Integrations

What you need before you start.

OpenAI

Language model

Runs gpt-4o-mini as the agent that talks to you and decides when to search.

NeedsOpenAI API key

SerpApi

Web search

Runs the Google search the agent asks for and returns the results.

NeedsSerpApi API key

Workflow check

Checked by Mindket on 13 Nov 2026

Steps
2 steps, starting on a chat message
AI
1 step calls an AI model: AI Agent
Sign-ins
Signs in to: SerpApi and OpenAI
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 on Google. You type a question, and an OpenAI model decides whether it can answer from what it knows or should run a search first. A SerpApi tool does the search, and the model writes the answer from the results. A short memory keeps the last five messages, so a follow-up such as “and in Spain?” makes sense. Five nodes run it. There are no sticky notes.

Who it suits

People who want a small chat that can answer questions about recent events, prices or other facts a model does not carry. It is also the shortest working example of an n8n agent with a tool and a memory, so it suits anyone learning those pieces. Skip it if you need answers from your own documents. Its one tool is a Google search.

Who uses it, and how
IndustryWho uses itHow they use itExample
MarketingContent writersCheck a recent fact before they publish itA writer asks what a competitor announced this week and gets an answer drawn from the results.
Customer supportSupport agentsLook up a public detail during a live chatAn agent asks for the opening hours of a partner’s shop.
SoftwareDevelopers learning agentsStart from five nodes and add tools of their ownA developer plugs a calculator in beside the search.
EducationTutorsPull a current figure into a lessonA tutor asks for today’s exchange rate before a maths class.

You need almost no n8n: import a file and add two credentials.

Where to use it

Any n8n that can reach OpenAI and SerpApi will run it. You talk to it in n8n’s own chat panel.

  • n8n Cloud: import the file into a new workflow there
  • Your own n8n server: the same file and steps
  • A website or a messaging app: swap the trigger for a webhook or a chat app’s trigger, and keep the agent as it is

Setup

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

What you need first
NeedDetail
n8nOn n8n Cloud or on a server of your own
OpenAIAn API key
SerpApiAn account and its API 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 OpenAI Chat Model.
  3. Add a SerpApi credential with your API key and select it in SerpAPI.
  4. Save, open the chat from the canvas and ask a question.

How to use it

Open the chat and ask. “Who won last night’s match?” makes the agent search, because a model cannot know. “Explain what a webhook is” it can answer alone. Ask a follow-up to see the memory at work. The agent decides on each message whether to search.

What to change for a different result
To changeWhere
What the assistant is forA system message under the options of AI Agent, empty here
Where and how it searchesThe Options list of SerpAPI, empty here
The modelOpenAI Chat Model, which sets gpt-4o-mini
How much it remembersThe context window length in Window Buffer Memory, 5 by default
What else it can doMore tools plugged into AI Agent

Example

A writer drafts a note on a competitor’s launch and asks the chat what was announced this week. The agent runs a Google search through SerpApi and answers from the results. The writer then asks how it compares with their own product, and the memory keeps the thread. It works.

An answer is only as good as the results the model reads. Open the pages before you quote a figure, because the model can misread a snippet or pick an old page.

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. Here the agent sits in the middle with three small boxes plugged into it: a model, a memory and a search tool. Ask something that needs today’s news. Then ask something that needs none, and see which one makes it search.

For experts. The agent is the Tools agent on version 1.6, so the model chooses whether to call the tool, and the prompt is read from the trigger’s chatInput field.

Where to look closer
NodeWhat it doesWhat to know
AI AgentTools agent with no system message setn8n then sends “You are a helpful assistant”, and the agent stops after 10 tool rounds, the default limit
SerpAPIGoogle search tool with an empty options listn8n’s source marks it deprecated and hidden from the node picker, and points to a verified community node
Window Buffer MemoryKeeps the last five messages of each chatIt lives inside the n8n instance and does not work in queue mode
When chat message receivedChat trigger, version 1.1Its public setting is off, so only n8n’s own panel opens the chat

Good to know

It sends your questions to two outside services, and its search tool is a deprecated node.

  • Model: the chat node sets gpt-4o-mini. OpenAI’s deprecations page, read on 12 November 2026, gives 14 January 2027 as the shutdown of gpt-4o-mini-2024-07-18, with gpt-6-luna as the replacement
  • Search tool: n8n’s source marks the SerpApi tool node as deprecated and points to the official verified community node. The file loads it as it is
  • No instructions: the agent has no system message of its own, so the model alone decides when to search
  • Searches: each one counts against the monthly searches of your SerpApi plan
  • Memory: it is temporary and sits inside the n8n instance
  • Open chat: the trigger’s public setting is off. If you switch it on, anyone with the address can run searches on your SerpApi plan and spend your OpenAI key
  • Billing: OpenAI bills each turn, with up to five earlier messages in it, and SerpApi counts each search
  • Your data: your questions go to OpenAI, and the search text goes to SerpApi
  • Credentials: the JSON holds none

README and files

README

Chat assistant that searches Google through SerpApi

An n8n workflow with a chat. You type a question, and an OpenAI model either answers from what it knows or runs a Google
search through SerpApi first and answers from the results. A short memory holds the five latest messages.

What is inside

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

What we changed from the original copy

The file linked two accounts of its author, one for OpenAI and one for SerpApi, and it carried a webhook id for the chat.
Mindket's copy leaves all three out, so you add your own credentials, and n8n makes a new chat address when you import it.

Nothing else needed a repair. The nodes, their settings and their connections are as the original had them.

Before you start

  • An n8n instance, on n8n Cloud or your own server.
  • An OpenAI API key.
  • A SerpApi account and its API 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 OpenAI Chat Model.
  3. Add a SerpApi credential with your API key and select it in SerpAPI.
  4. Save, then open the chat from the workflow's canvas and ask a question.

How a run goes

  1. When chat message received passes each message you type to the agent. The trigger's public setting is off, so the
    chat opens only from inside n8n.
  2. AI Agent takes the message as its prompt. No system message is set, so n8n sends its default, "You are a helpful
    assistant".
  3. The agent decides for itself whether the question needs a search. If it does, it calls SerpAPI, which searches Google
    and returns the results. It may search more than once, up to 10 rounds, which is the node's default limit.
  4. OpenAI Chat Model writes the answer on gpt-4o-mini. Window Buffer Memory keeps the last five messages of the chat,
    so a follow-up such as "and in Spain?" has something to refer to.

Change the look

  • What the assistant is for: add a system message under the options of AI Agent. It is empty here, and the model decides
    alone when to search.
  • Where and how it searches: the Options list of SerpAPI, which is empty here. n8n offers Country, Device, Google Domain
    and Language there, with us, desktop, google.com and en as its defaults for them.
  • The model: OpenAI Chat Model. The node sets gpt-4o-mini and no other option.
  • How much it remembers: the context window length in Window Buffer Memory, which is at its default of 5.
  • What else it can do: plug more tools into AI Agent.

Good to know

  • The OpenAI facts below come from a page read on 12 November 2026.
  • OpenAI's deprecations page gives 14 January 2027 as the shutdown date of gpt-4o-mini-2024-07-18, with gpt-6-luna as
    the replacement. Choose another model in the node before then.
  • n8n's source marks the SerpApi tool node as deprecated, hides it from the node picker, and points to the official
    verified community node instead. The file loads it as it is, and you may want to swap it later.
  • Each search counts against the monthly searches of your SerpApi plan.
  • Window Buffer Memory is temporary: n8n's source says it lives inside the instance and does not work in queue mode.
  • The chat is not public. Switching on the trigger's public setting would let anyone with the address run searches on your
    SerpApi plan and spend your OpenAI key.
  • Billing: OpenAI bills each turn, with up to five earlier messages included, and SerpApi counts each search.
  • Your questions go to OpenAI, and the search text goes to SerpApi.
  • An answer is only as good as the results the model reads. Open the pages before you quote a figure.
Files
NOTICE.md  548 B
README.md  4 KB
workflow.json  2 KB

3 files, 7 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 Productivity

See all in Productivity

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New