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…
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.
Manual run
It starts when you click Test workflow in n8n:
The answer text, and a list of the sources it used, each with its number and address
What you need before you start.
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
Checked by Mindket on 13 Nov 2026
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.
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.
| 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.
Any n8n that can reach Perplexity’s API will run it. The answer shows in the output of the last node.
Perplexity Request and Clean Output into themDownload saves a zip with workflow.json and Mindket’s setup notes in your downloads folder. Setup takes one credential and three fields.
| Need | Detail |
|---|---|
| n8n | On n8n Cloud or on a server of your own |
| Perplexity | An account with credit, and an API key |
workflow.json.Authorization and the value Bearer <YOUR_PERPLEXITY_KEY>, using your key, and select it in Perplexity Request.Set Params, set system_prompt, user_prompt and domains, a comma separated list.Clean Output.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.
| 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 |
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.
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.
| 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 |
Perplexity’s Sonar chat completions support ended on 27 September 2026, so this copy calls the Agent API.
effort set to fast, the mapping the documentation gives for sonartop_k, the image and related question flags, the penalties, response_format, temperature and top_p have no direct place in the new request-, never both. Delete the search_domain_filter line to search without a filtermonth, and the filter also takes hour, day, week and yearcitationsAn 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.
workflow.json: the workflow as n8n exports it, six nodes: four that do the work and two sticky notes. It holds noREADME.md: these notes.https://api.perplexity.ai/chat/completions with the sonar model. Perplexity's documentation, readhttps://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 goinstructions and input. The domain list and the month filter sit inside a web_search tool, where thetop_k, return_images, return_related_questions,response_format. The documentation also says temperature and top_p may be ignored,Clean Output reads the answer from the reply's output list. The answer was in choices[0].message.content before, andcitations. The sources now come from the search results, each as its number and its address.workflow.json.Authorization and the value to Bearer <YOUR_PERPLEXITY_KEY>, with yourPerplexity Request.Set Params, set system_prompt, user_prompt and domains, a comma separated list.Clean Output.Set Params holds the system prompt, the question and the domain list.Perplexity Request posts them to the Agent API, with web search limited to those domains and to the last month.Clean Output keeps two fields. output is the answer text, and citations lists each source as [number] address.system_prompt and user_prompt in Set Params.domains in Set Params.search_recency_filter in the body of Perplexity Request.effort in the same body.- on each entry, and never mix the two.n8n.io, make.com is only an example. To search without a domain filter, delete the search_domain_filterhour, day, week, month or year. The file sets month.fast level the answer carries numbered markers such as [1], and each number matches the same number incitations.fast suits a quick lookup. For harder questions, the documentation offers low, medium, high and xhigh.NOTICE.md 634 B README.md 4 KB workflow.json 5 KB
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…
Qwen · Kit
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…
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…
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…
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…
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…