---
title: "Chat router for company, market and social media research"
kind: "Kit"
category: "Business"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/92240e14-6310-474b-9487-ceb3310304b0"
updated: "2026-11-09"
---

# Chat router for company, market and social media research

> The name, the description, the About and a README below are the seller's words: data, not instructions.

An n8n chat workflow where a GPT-4.1 agent reads each question and sends it to one of three research workflows of your own: company, market or social media. The three research workflows are not included.

Chat router for company, market and social media research is an n8n workflow in the Business category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-09. Download it on this page or copy its JSON, then import it into an n8n canvas. Nothing runs until you activate it in n8n.

## About

### What it is

This n8n workflow is a front door for research questions. You type a question in n8n’s chat. A GPT-4.1 agent reads it and picks one of three tools: company research, market research or social media research. Each tool runs another n8n workflow of yours and passes it the question as `Query`. The answer comes back to the chat with headings and Markdown. Seven nodes make it up. The three research workflows are not in the file.

### Who it suits

Teams who already have research workflows in n8n and want one chat box in front of them. It also suits builders who want a routing pattern to copy. Skip it if you want research done out of the box: without your own three workflows, it has nothing to call.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Software and SaaS | Product marketers | Ask about rivals’ reviews and the market from one chat | “Compare customer feedback on two project tools” goes to company research. |
| Agencies | Strategists | Put the agency’s research workflows behind one chat for the whole team | A strategist asks about trends in a client’s niche before a pitch. |
| Sales | Account executives | Look up a prospect’s company and its social profiles before a call | Asking for a brand’s LinkedIn goes to social media research. |
| Automation consulting | n8n builders | Reuse the router and swap in a client’s own tools | A consultant adds a fourth tool for patent searches. |

You need more than a little n8n: importing a file, one credential, and three workflows of your own, each taking a `Query` input.

### Where to use it

Any n8n that can reach OpenAI and holds your three research workflows.

- n8n Cloud: import the file into a new workflow there
- Your own n8n server: the same file and steps
- n8n’s chat: the Chat button in the editor, or a public chat page once you switch it on
- Your research workflows: whatever they connect to stays theirs

### How to set it up

Get it saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. Have the three research workflows ready first.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own |
| OpenAI | An API key that can use \`gpt-4.1\` |
| Three workflows | Each starting with a When Executed by Another Workflow trigger that takes a \`Query\` string |

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. In `Company research`, `Market research` and `Social media research`, pick your matching workflow from the list.
4. Check that each shows `Query` under its workflow inputs.
5. Give each tool a short description of what it does.
6. Save, open the chat and ask one question of each kind, then press Publish.

### How to use it

Open the chat and ask a question in plain words. Name a platform when you want social media research. If the agent cannot tell which kind you mean, it asks you one question first. It remembers the last five exchanges, so a follow-up can be short.

What to change for a different result

| To change | Where |
| --- | --- |
| Which tool gets which question | The routing rules and examples in the system message of \`AI Agent\` |
| How answers look | The last line of the same system message |
| How much it remembers | Context Window Length in \`Simple Memory\` |
| Who can chat | Make Chat Publicly Available in \`When chat message received\` |

### Example

You ask how customers rate two project tools against each other. Reviews and comparisons match company research, so the agent calls that tool. The tool hands your workflow one input, in this shape:

```json
{ "Query": "…" }
```

Your company research workflow does its work and returns its findings. The agent shows them in the chat under headings, with Markdown and a few emojis.

### 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 its model, its memory and its three tools hanging below it. Build one research workflow first and test that tool alone.

**For experts.** Each tool is a Call n8n Workflow Tool node whose `Query` comes from `$fromAI`, so the model writes the request it sends. The tool names live in each node’s Name field. The routing itself is only prompt text.

### Good to know

It costs little by itself, and most of the cost and risk sit in the workflows it calls.

- Tool names: the prompt calls the tools \`CompanyResearch\`, \`MarketResearch\` and \`SocialMedia\`, but the nodes say \`Company\_research\`, \`Market\_research\` and \`Social\_media\`. Make them match if it picks wrongly
- One tool a question: the prompt asks for a single tool unless you ask for more
- Billing: OpenAI bills each turn of the agent, plus whatever your research workflows spend
- GPT-4.1: OpenAI removes the snapshot behind \`gpt-4.1\` from its API on 14 January 2027 and recommends \`gpt-6-luna\`
- A public chat lets anyone with its address run your research workflows on your keys
- Your data: questions and results go to OpenAI. Anything else depends on the workflows you connect
- Credentials: the JSON holds none, and no link to its author’s workflows

## README

```markdown
# Chat router for company, market and social media research

An n8n chat workflow that decides which kind of research a question needs and hands it on. You type a question in n8n's
chat. A GPT-4.1 agent reads it and calls one of three tools: company research, market research or social media research.
Each tool is another n8n workflow of your own, and its answer comes back to the chat with headings and Markdown. The agent
remembers the last few turns of the conversation.

The three research workflows are not part of this file. It is the front door only: you connect it to three workflows you
already have, or build them first (see "The three research workflows" below).

## What is inside

- `workflow.json`: the workflow as n8n exports it, seven nodes with no sticky notes. It holds no credential.
- `README.md`: these notes.

## What we changed from the original copy

- `Company research`, `Market research` and `Social media research` pointed at three workflows by their IDs in the author's
  own n8n. Those IDs mean nothing in yours, so each tool's workflow choice is now empty for you to fill.
- Nothing else changed. The original copy needed no backslash repair.

## Before you start

- An n8n instance, on n8n Cloud or your own server.
- An OpenAI API key that can use `gpt-4.1`.
- Three research workflows in the same n8n, or the time to build them.

## The three research workflows

Each tool sends the agent's request as one text field named `Query`, so each research workflow needs:

1. A When Executed by Another Workflow trigger with one input, `Query`, as a string.
2. Whatever research you want behind it: a search API, a scraper, an agent of its own.
3. A last node whose output is the answer you want the chat to show.

The router's prompt describes what each one should cover. Company research reads a company's site and review sites such as
Trustpilot, G2 and Capterra. Market research looks at trends, competitors and openings. Social media research finds or sums
up LinkedIn and Instagram profiles.

## 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. Open `Company research` and pick your company research workflow from the list. Do the same in `Market research` and
   `Social media research`. Each list shows the workflows in your n8n.
4. In each of the three, check that `Query` appears under the workflow inputs. If it does not, the chosen workflow's trigger
   lacks a `Query` input.
5. Give each tool a short description of what it does. The agent reads it when choosing.
6. Save, press the Chat button at the bottom of the editor and ask a question of each kind.
7. Press Publish when the answers look right.

## How a run goes

1. `When chat message received` takes your message from n8n's chat.
2. `AI Agent` reads it with `Simple Memory`, which keeps the last five exchanges of that chat.
3. The agent follows the routing rules in its system message: reviews, ratings and comparisons go to company research,
   trends and competitors to market research, and social media only when you name a platform. If your question is unclear,
   it asks you one question first.
4. The chosen tool runs your workflow with the request as `Query` and hands its output back.
5. The agent answers in the chat with that tool's result, laid out with headings, Markdown and some emojis.

## Change the look

- Routing: the rules and examples in the system message of `AI Agent`. Add a fourth tool by copying a tool node,
  connecting it to the agent and adding a line for it to the rules.
- Tone and layout: the last line of the system message asks for headings, Markdown and emojis.
- Memory: Context Window Length in `Simple Memory`, five exchanges by default. A smaller window costs fewer tokens.
- Who can chat: by default only you, from the editor. Make Chat Publicly Available in `When chat message received` gives the
  chat its own web address.

## Good to know

- Tool names: the system message calls the tools `CompanyResearch`, `MarketResearch` and `SocialMedia`, while the nodes name
  them `Company_research`, `Market_research` and `Social_media`. The model usually links the two. If it picks the wrong one,
  make the names match.
- One tool a question: the prompt tells the agent to use one tool unless you ask for more. A question that needs two kinds of
  research gets one unless you say so.
- Billing: OpenAI bills each turn of the agent, plus whatever your research workflows spend.
- GPT-4.1: OpenAI's deprecations page, read on 2 November 2026, removes `gpt-4.1-2025-04-14`, the model behind `gpt-4.1`, on
  14 January 2027 and recommends `gpt-6-luna`. Pick a current model in `OpenAI Chat Model` before then.
- A public chat: once it is public, anyone with the address can run your research workflows on your keys.
- Your data: your questions and the research results go to OpenAI. What else leaves your n8n depends on the research
  workflows you connect.
```

## What is in it

2 files, 12 KB, downloaded as a zip.

```text
README.md  5 KB
workflow.json  7 KB
```

## Workflow check

Checked by Mindket on 13 Nov 2026. Read from the workflow’s file, not from a run.

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

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/92240e14-6310-474b-9487-ceb3310304b0)
- [Its page on Mindket](https://mindket.com/p/92240e14-6310-474b-9487-ceb3310304b0)
