Israel Morning News Briefs N8N Perplexity Sonar
Using Perplexity API structured prompting and N8N to deliver a tailored news brief
About This Project
This project is an automated system for generating structured daily news reports about Israel and the Middle East. It uses carefully crafted system prompts to instruct Perplexity AI to produce reports with consistent sections, covering topics such as the Israel-Gaza war, the northern front, Yemen, Israel and Iran, and multilateral bodies, followed by an analysis section. Reports can be produced as plain text, as structured headed sections, or as JSON conforming to a provided schema. The reporting period is set through the user prompt rather than fixed at 24 hours.
The workflow is built in N8N and runs on a scheduled trigger. It loads the appropriate system prompt, passes the current date and time through a JavaScript variable to target the correct retrieval window, and sends the request to Perplexity via OpenRouter using a basic LLM chain. The markdown output is converted to HTML before delivery by email, with Slack or other channels as alternatives. Perplexity's built-in search was chosen to avoid a multi-tool retrieval setup, and the README notes that citations through this method were limited at the time of implementation.
The project is likely to be useful to developers and analysts who need recurring, consistently formatted briefings on a defined subject, such as general news monitoring, brand monitoring, or industry tracking. The prompt and schema files can be modified for other regions or topics, and the design can be extended with search APIs such as SERP API or Tavily.