Perplexityapi
November 19, 2026·Source

Decider in the Perplexity Context API

The Context API can now score each fetched page against yes/no questions you write, such as whether it contains a prompt injection.

Decider in the Perplexity Context API announcement image
  • Ask up to 5 yes/no questions about each page, with examples of what counts as a yes or a no
  • Each question comes back with a probability from 0 to 1
  • You set a threshold in the app to decide which pages to keep or drop

Best for

Checking web pages for prompt injection before an agent reads them

Use it when

Your agent pulls in outside pages and you want to filter them before they reach the model

Who benefits

Developers building agents on the Perplexity Context API

Join the newsletter to get ahead with AI.

I share strategies, new modules, free guides, and tools to get you better at using AI in your work.

Leading a team? See team programs →