Skip to main content

Chat Completion

Chat Completion — see the properties below.

This node is also exposed as an AI Agent tool.

This node has 1 input port and 1 output port.

Common Properties​

Every node shares these.

  • Name — the node's display name on the canvas.
  • Color — the node's colour on the canvas.
  • Delay Before (sec) — wait this long before the node runs.
  • Delay After (sec) — wait this long after the node runs.
  • Continue On Error — carry on instead of failing the flow. Defaults to false.
info

When Continue On Error is true the error is not raised at all, so a Catch node will not see it either.

Inputs​

PropertyFieldDescription
Client IDinClientIDClient ID from Connect node (optional if credentials provided)
MessagesinMessagesFull messages array for multi-turn conversations (overrides User/System Message)
System MessageinSystemMessageOptional system prompt to guide the model behavior
User MessageinUserMessageThe question or prompt to send

Outputs​

PropertyFieldDescription
CitationsoutCitationsArray of source URLs cited in the response
ContentoutContentThe generated response text
ResultoutResultFull API response object
UsageoutUsageToken usage and cost information

Options​

PropertyFieldDescription
CredentialsoptCredentialsPerplexity API key (optional if using Connect node)
Max TokensoptMaxTokensMaximum tokens in response (1-128000)
ModeloptModelSonar model to use One of: sonar, sonar-pro, sonar-reasoning-pro, sonar-deep-research.
Return ImagesoptReturnImagesInclude images in the response
Return Related QuestionsoptReturnRelatedQuestionsInclude related questions in the response
Search Context SizeoptSearchContextSizeAmount of web context retrieved per request (affects cost) One of: low, medium, high.
Search Domain FilteroptSearchDomainFilterComma-separated domains to filter (e.g. arxiv.org،nature.com)
Search ModeoptSearchModeSearch mode (academic filters for peer-reviewed papers) One of: web, academic.
Search Recency FilteroptSearchRecencyFilterFilter search results by time period One of: NONE, hour, day, week, month, year.
TemperatureoptTemperatureSampling temperature (0.0-2.0،default 0.2 for Sonar)
Timeout (seconds)optTimeoutMaximum time in seconds to wait for response

Requirements​

  • A Client ID from this package's Connect node, unless you set credentials directly on this node.
  • Perplexity API Key — API key for Perplexity AI authentication
    • value — API Key (password, required). Your Perplexity API key

Store these in a Vault and reference the vault item from the node, rather than typing the secret into the property.

Connect · Disconnect · Search · Toolkit

See also​