Mindket

Perplexity web answers with domain and recency filters

Newversion 1 · updated

Overview

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 . 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 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

Platform

Connects 1 app

How it works

Trigger

Manual run

It starts when you click Test workflow in n8n:

  • The system prompt, set in Set Params
  • The question, set in Set Params
  • The domain list, set in Set Params

Actions

  1. The prompts and the domain list are set
  2. The question goes to Perplexity’s Agent API with web search limited to those domains and to the last month
  3. The answer text and the list of sources are picked out of the reply

Result

The answer text, and a list of the sources it used, each with its number and address

Integrations

What you need before you start.

Perplexity

Web search and language model

Searches the web within your domains and the last month, and writes a sourced answer.

NeedsA Perplexity API key in a Header Auth credential, and credit on the account

Workflow check

Checked by Mindket on 13 Nov 2026

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

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

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
IndustryWho uses itHow they use itExample
MarketingMarketersCheck what a rival says on its own siteA marketer asks about a rival’s pricing and limits the search to that rival’s domain.
ResearchAnalystsAsk a question of a few trusted sourcesAn analyst limits a question on energy policy to two agency websites.
SupportSupport teamsCompare two products from their own pagesA support lead asks how two tools differ and limits the search to both vendors’ sites.
JournalismReportersPull recent coverage from named outletsA 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

Setup

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
NeedDetail
n8nOn n8n Cloud or on a server of your own
PerplexityAn 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 changeWhere
The question and the instructionssystem_prompt and user_prompt in Set Params
The domainsdomains in Set Params
The time windowsearch_recency_filter in the body of Perplexity Request
How much work Perplexity doeseffort 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
NodeWhat it doesWhat to know
Set ParamsHolds the prompts and the domain listThe list is split on commas and trimmed
Perplexity RequestPosts effort, instructions, input and a web_search toolThe body is an object, so quotes in a prompt are safe
Clean OutputPicks the answer text and the source listIt 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 and files

README

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.
Files
NOTICE.md  634 B
README.md  4 KB
workflow.json  5 KB

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

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…

New

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…

New

ACE-Step 1.5 XL SFT

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…

New

Similar in Research

See all in Research

Merlin-Cancer-Super

AbdomenAtlas · Kit

Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…

New

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