Lodol Docs

Perplexity

API actions for the Perplexity integration.

Perplexity

Connect Perplexity's AI models to answer questions with responses backed by web search.


Generate a response with Perplexity

Sends a prompt to Perplexity and returns the generated response text.

Parameters

ParameterTypeRequiredDescription
promptstringYesThe question or instructions to send to Perplexity.
modelstringNoChoose which Perplexity Sonar model answers your prompt. All models search the web before answering.

Response

{
  "model": "sonar",
  "response_text": "Here is a web-researched answer to your question."
}

On this page