{
  "name": "perplexity",
  "display_name": "Perplexity",
  "description": "AI-powered answer engine that provides accurate, trusted, and real-time answers to any question. Supports chat completions, agent responses, web search, and embeddings.",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "perplexityApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "hidden",
      "required": false,
      "default": "chat"
    },
    {
      "name": "resource",
      "display_name": "Resource",
      "kind": "options",
      "required": false,
      "default": "chat",
      "description": "Create responses using the Agent API with third-party models, presets, tools, and structured outputs"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/nodes-base/nodes/Perplexity/Perplexity.node.ts",
  "routing": {
    "base_url": "https://api.perplexity.ai",
    "auth_headers": [
      [
        "Authorization",
        "Bearer {{apiKey}}"
      ],
      [
        "User-Agent",
        "n8n"
      ]
    ],
    "auth_query": [],
    "credential_name": "perplexityApi",
    "operations": [
      {
        "value": "search",
        "method": "POST",
        "url": "/search",
        "body": ""
      },
      {
        "value": "createResponse",
        "method": "POST",
        "url": "/v1/agent",
        "body": ""
      },
      {
        "value": "complete",
        "method": "POST",
        "url": "/chat/completions",
        "body": ""
      },
      {
        "value": "createEmbedding",
        "method": "POST",
        "url": "/v1/embeddings",
        "body": ""
      },
      {
        "value": "createContextualized",
        "method": "POST",
        "url": "/v1/contextualizedembeddings",
        "body": ""
      }
    ],
    "sends": [
      {
        "param_name": "query",
        "send_type": "body",
        "dest_key": "query",
        "applies_to_operations": [],
        "applies_to_resources": [
          "search"
        ]
      },
      {
        "param_name": "country",
        "send_type": "body",
        "dest_key": "country",
        "applies_to_operations": [],
        "applies_to_resources": [
          "search"
        ]
      },
      {
        "param_name": "lastUpdatedAfter",
        "send_type": "body",
        "dest_key": "last_updated_after_filter",
        "applies_to_operations": [],
        "applies_to_resources": [
          "search"
        ]
      },
      {
        "param_name": "lastUpdatedBefore",
        "send_type": "body",
        "dest_key": "last_updated_before_filter",
        "applies_to_operations": [],
        "applies_to_resources": [
          "search"
        ]
      },
      {
        "param_name": "maxResults",
        "send_type": "body",
        "dest_key": "max_results",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "maxTokens",
        "send_type": "body",
        "dest_key": "max_tokens",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "maxTokensPerPage",
        "send_type": "body",
        "dest_key": "max_tokens_per_page",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "searchAfterDate",
        "send_type": "body",
        "dest_key": "search_after_date_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "searchBeforeDate",
        "send_type": "body",
        "dest_key": "search_before_date_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "searchDomainFilter",
        "send_type": "body",
        "dest_key": "search_domain_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "searchLanguageFilter",
        "send_type": "body",
        "dest_key": "search_language_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "Year",
        "send_type": "body",
        "dest_key": "search_recency_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "input",
        "send_type": "body",
        "dest_key": "input",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "id",
        "send_type": "body",
        "dest_key": "model",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "preset",
        "send_type": "body",
        "dest_key": "preset",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "instructions",
        "send_type": "body",
        "dest_key": "instructions",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "languagePreference",
        "send_type": "body",
        "dest_key": "language_preference",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "maxOutputTokens",
        "send_type": "body",
        "dest_key": "max_output_tokens",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "maxSteps",
        "send_type": "body",
        "dest_key": "max_steps",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "modelsFallback",
        "send_type": "body",
        "dest_key": "models",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "reasoning",
        "send_type": "body",
        "dest_key": "reasoning",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "responseFormat",
        "send_type": "body",
        "dest_key": "response_format",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "tools",
        "send_type": "body",
        "dest_key": "tools",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "Sonar",
        "send_type": "body",
        "dest_key": "model",
        "applies_to_operations": [],
        "applies_to_resources": [
          "agent"
        ]
      },
      {
        "param_name": "User",
        "send_type": "body",
        "dest_key": "messages",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "disableSearch",
        "send_type": "body",
        "dest_key": "disable_search",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "enableSearchClassifier",
        "send_type": "body",
        "dest_key": "enable_search_classifier",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "frequencyPenalty",
        "send_type": "body",
        "dest_key": "frequency_penalty",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "imageDomainFilter",
        "send_type": "body",
        "dest_key": "image_domain_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "imageFormatFilter",
        "send_type": "body",
        "dest_key": "image_format_filter",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "temperature",
        "send_type": "body",
        "dest_key": "temperature",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "presencePenalty",
        "send_type": "body",
        "dest_key": "presence_penalty",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "High",
        "send_type": "body",
        "dest_key": "reasoning_effort",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "returnImages",
        "send_type": "body",
        "dest_key": "return_images",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "returnRelatedQuestions",
        "send_type": "body",
        "dest_key": "return_related_questions",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "SEC",
        "send_type": "body",
        "dest_key": "search_mode",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "stop",
        "send_type": "body",
        "dest_key": "stop",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "topK",
        "send_type": "body",
        "dest_key": "top_k",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "topP",
        "send_type": "body",
        "dest_key": "top_p",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "webSearchOptions",
        "send_type": "body",
        "dest_key": "web_search_options",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "model",
        "send_type": "body",
        "dest_key": "model",
        "applies_to_operations": [],
        "applies_to_resources": [
          "embedding"
        ]
      },
      {
        "param_name": "dimensions",
        "send_type": "body",
        "dest_key": "dimensions",
        "applies_to_operations": [],
        "applies_to_resources": [
          "embedding"
        ]
      },
      {
        "param_name": "encoding_format",
        "send_type": "body",
        "dest_key": "encoding_format",
        "applies_to_operations": [],
        "applies_to_resources": []
      }
    ]
  }
}