Skip to content

Agent

Perplexity

Perplexity

Agent

Create a response using the Perplexity Agent API with model and input.

ActionAI Tool

Inputs

Name Type Required Description
modeltextRequiredModel identifier (for example openai/gpt-5.5 or perplexity/sonar).
inputtextRequiredPrompt or input content for the agent.
instructionstextOptionalOptional system-style instruction text.
max_output_tokensnumberOptionalOptional maximum output tokens.
temperaturenumberOptionalOptional sampling temperature.
toolsarray of objectOptionalOptional tool definitions, for example [{"type":"web_search"}].
typetextOptionalTool type value.

Outputs

Name Type Description
statusCodenumberHTTP status code
bodyobjectPerplexity Agent API response payload.
idtextResponse ID.
statustextResponse status.
modeltextResolved model used by the API.
output_texttextConvenience concatenated output text, when provided.
usageobjectUsage details returned by the API.
input_tokensnumberInput token count.
output_tokensnumberOutput token count.
total_tokensnumberTotal token count.