---
title: "Perplexity web answers with domain and recency filters"
kind: "Kit"
category: "Research"
price: "Free"
seller: "Mindket"
version: "1"
url: "https://mindket.com/p/4456ac43-e74d-4860-a26d-0b1d0b8bc522"
updated: "2026-11-12"
---

# Perplexity web answers with domain and recency filters

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

An n8n workflow that sends one question to Perplexity’s Agent API with web search limited to the domains you list and to the last month. It returns the answer text and the addresses of its sources.

Perplexity web answers with domain and recency filters is an n8n workflow in the Research category, listed by Mindket. It is free. This is version 1, last updated on 2026-11-12. 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 sends one question to Perplexity’s Agent API with web search switched on. The search is limited to the domains you list and to the last month. It returns the answer text and the addresses of its sources. Mindket’s copy moves the call from Perplexity’s Sonar chat completions to the Agent API. Four nodes run it, beside two sticky notes.

### Who it suits

People who need a sourced answer from a few trusted sites, and builders who want a Perplexity call to copy into their own flows. Skip it if you want a chat that remembers earlier questions, or if you need images or related questions back.

Who uses it, and how

| Industry | Who uses it | How they use it | Example |
| --- | --- | --- | --- |
| Marketing | Marketers | Check what a rival says on its own site | A marketer asks about a rival’s pricing and limits the search to that rival’s domain. |
| Research | Analysts | Ask a question of a few trusted sources | An analyst limits a question on energy policy to two agency websites. |
| Support | Support teams | Compare two products from their own pages | A support lead asks how two tools differ and limits the search to both vendors’ sites. |
| Journalism | Reporters | Pull recent coverage from named outlets | A reporter asks for this month’s coverage of a topic from three news sites. |

You need a little n8n: import a file, add one credential and edit three fields.

### Where to use it

Any n8n that can reach Perplexity’s API will run it. The answer shows in the output of the last node.

- n8n Cloud: import the file there and run it by hand
- Your own n8n server: the same file and steps
- Perplexity: the search and the answer
- Your own flows: copy \`Perplexity Request\` and \`Clean Output\` into them

### How to set it up

Download saves a zip with `workflow.json` and Mindket’s setup notes in your downloads folder. Setup takes one credential and three fields.

What you need first

| Need | Detail |
| --- | --- |
| n8n | On n8n Cloud or on a server of your own |
| Perplexity | An account with credit, and an API key |

1. In n8n, create a workflow, open its menu, choose Import from File and pick `workflow.json`.
2. Add a Header Auth credential with the name `Authorization` and the value `Bearer <YOUR_PERPLEXITY_KEY>`, using your key, and select it in `Perplexity Request`.
3. In `Set Params`, set `system_prompt`, `user_prompt` and `domains`, a comma separated list.
4. Click Test workflow and open `Clean Output`.

### How to use it

Click Test workflow. After a few seconds `Clean Output` holds the answer and the list of sources. Change the question or the domains, and run it again.

What to change for a different result

| To change | Where |
| --- | --- |
| The question and the instructions | \`system\_prompt\` and \`user\_prompt\` in \`Set Params\` |
| The domains | \`domains\` in \`Set Params\` |
| The time window | \`search\_recency\_filter\` in the body of \`Perplexity Request\` |
| How much work Perplexity does | \`effort\` in the same body |

### Example

A marketer sets `domains` to two vendor sites and asks how their plans differ. She clicks Test workflow.

Perplexity searches only those two sites, looking back one month, and answers in a few paragraphs with numbered markers. `Clean Output` lists each marker beside the address it points to.

### 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 one box holds your question, one sends it and one tidies the reply. Start by changing only the question.

**For experts.** One HTTP Request posts a JSON object to `/v1/agent`. The reply’s `output` list holds a `message` item and a `search_results` item, and two expressions pick from them.

Where to look closer

| Node | What it does | What to know |
| --- | --- | --- |
| \`Set Params\` | Holds the prompts and the domain list | The list is split on commas and trimmed |
| \`Perplexity Request\` | Posts \`effort\`, \`instructions\`, \`input\` and a \`web\_search\` tool | The body is an object, so quotes in a prompt are safe |
| \`Clean Output\` | Picks the answer text and the source list | It finds the \`message\` and \`search\_results\` items by type |

### Good to know

Perplexity’s Sonar chat completions support ended on 27 September 2026, so this copy calls the Agent API.

- The repair: Perplexity’s documentation, read on 12 November 2026, says Sonar requests keep working while they are reformulated, and it recommends the Agent API. This copy uses \`effort\` set to \`fast\`, the mapping the documentation gives for \`sonar\`
- Dropped settings: \`top\_k\`, the image and related question flags, the penalties, \`response\_format\`, \`temperature\` and \`top\_p\` have no direct place in the new request
- Domains: up to 20, as an allowlist or as a denylist with a leading \`-\`, never both. Delete the \`search\_domain\_filter\` line to search without a filter
- Recency: the file sets \`month\`, and the filter also takes \`hour\`, \`day\`, \`week\` and \`year\`
- Markers: the answer carries numbered markers, and each matches a number in \`citations\`
- Your data: the prompts go to Perplexity
- Credentials: the JSON holds none

## README

```markdown
# Perplexity web answers with domain and recency filters

An n8n workflow that sends one question to Perplexity's Agent API with web search switched on. The search is limited to the
domains you list and to the last month. The workflow returns the answer text and the addresses of its sources.

## What is inside

- `workflow.json`: the workflow as n8n exports it, six nodes: four that do the work and two sticky notes. It holds no
  credential.
- `README.md`: these notes.

## What we changed from the original copy

- The credential links are gone. The original listed a Basic Auth and a Header Auth credential, and the request used the
  Header Auth one. Select your own.
- The request went to `https://api.perplexity.ai/chat/completions` with the `sonar` model. Perplexity's documentation, read
  on 12 November 2026, says Sonar chat completions support ended on 27 September 2026, and that requests keep working while
  they are reformulated as Agent API requests. It recommends moving to the Agent API, and Mindket's copy calls
  `https://api.perplexity.ai/v1/agent`.
- `effort` set to `fast` takes the place of the `sonar` model, which is the mapping the documentation suggests. The prompts go
  in `instructions` and `input`. The domain list and the month filter sit inside a `web_search` tool, where the
  documentation places them.
- Some settings have no direct place in the new request and are gone: `top_k`, `return_images`, `return_related_questions`,
  the two penalties and `response_format`. The documentation also says `temperature` and `top_p` may be ignored,
  depending on the model, so they are gone too.
- `Clean Output` reads the answer from the reply's `output` list. The answer was in `choices[0].message.content` before, and
  the sources were in `citations`. The sources now come from the search results, each as its number and its address.
- The body is built as an object, so a quote in a prompt no longer breaks the JSON. The domain list is trimmed, so a space
  after a comma no longer reaches Perplexity.
- The two notes are rewritten, and the example key in them is a placeholder.
- Nothing else.

## Before you start

- An n8n instance, on n8n Cloud or your own server.
- A Perplexity account with credit, and an API key from its settings.

## Set it up

1. In n8n, create a workflow, open its menu and choose Import from File. Pick `workflow.json`.
2. Add a Header Auth credential. Set the name to `Authorization` and the value to `Bearer <YOUR_PERPLEXITY_KEY>`, with your
   key in place of the placeholder. Select it in `Perplexity Request`.
3. In `Set Params`, set `system_prompt`, `user_prompt` and `domains`, a comma separated list.
4. Click Test workflow and open `Clean Output`.

## How a run goes

1. `Set Params` holds the system prompt, the question and the domain list.
2. `Perplexity Request` posts them to the Agent API, with web search limited to those domains and to the last month.
3. `Clean Output` keeps two fields. `output` is the answer text, and `citations` lists each source as `[number] address`.

## Change the look

- The question and the instructions: `system_prompt` and `user_prompt` in `Set Params`.
- The domains: `domains` in `Set Params`.
- The time window: `search_recency_filter` in the body of `Perplexity Request`.
- The depth of the work: `effort` in the same body.

## Good to know

- The domain filter takes up to 20 domains. Use the list as an allowlist
  or as a denylist with a leading `-` on each entry, and never mix the two.
- The sample list `n8n.io, make.com` is only an example. To search without a domain filter, delete the `search_domain_filter`
  line from the body, because an empty list would send one empty entry.
- The recency filter takes `hour`, `day`, `week`, `month` or `year`. The file sets `month`.
- At the `fast` level the answer carries numbered markers such as `[1]`, and each number matches the same number in
  `citations`.
- `fast` suits a quick lookup. For harder questions, the documentation offers `low`, `medium`, `high` and `xhigh`.
- The original setup note says to buy credit before you start.
- The prompts go to Perplexity.
- The JSON holds no credential.
```

## What is in it

3 files, 9 KB, downloaded as a zip.

```text
NOTICE.md  634 B
README.md  4 KB
workflow.json  5 KB
```

## Workflow check

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

- Steps: 4 steps, starting by hand
- AI: No step calls an AI model
- Sign-ins: Signs in to: Perplexity
- API keys: No API key is left in the file
- Step types: Mindket’s checker reads all 3 of its step types

## Get it

- [Get it on your Mindket account](https://account.mindket.com/account/?product=mindket#/market/4456ac43-e74d-4860-a26d-0b1d0b8bc522)
- [Its page on Mindket](https://mindket.com/p/4456ac43-e74d-4860-a26d-0b1d0b8bc522)
