Ask Perplexity
Input
question requiredThe question to ask, sent as the first message of a new thread.
Output
answer requiredThe answer as rendered, with its paragraphs, lists and tables flattened to text in reading order. Inline citation chips read as the publisher name Perplexity shows, e.g. 'coursera +2'.
sources requiredEvery page the search returned, cited or not — the candidate pool, in the order the Links view lists it. `sources` minus `citations` is what Perplexity retrieved and then passed over; a URL in neither was never retrieved. Empty when the answer searched nothing.
question requiredcitations requiredThe sources cited inline by the answer, in the order they appear, deduplicated by URL. A subset of `sources` whenever the answer searched.
threadUrl requiredURL of the thread the answer was written into, so the run can be audited afterwards.
answerChars requiredsearchQueries requiredThe queries Perplexity's own search issued for this answer, read from the thread's search step, in the order shown. Empty when it answered without searching.
