Skip to content
Perplexity logo

Connectors / AI · HTTP Connector

Automate Perplexity with Tray.ai

Create an agent response, create a chat completion and create embeddings in Perplexity. Connect Perplexity to the rest of your AI stack with Tray.ai.

What can you do with Perplexity on Tray.ai?

Perplexity is an AI answer engine whose API returns web-grounded answers with citations, raw web search results, embeddings and access to hosted models. Tray.ai connects to Perplexity through the HTTP Connector, so your workflows can call the Perplexity API alongside the rest of your stack.

  • Search the web for news about each new account in your CRM and add a short brief to the record.
  • Create a chat completion that drafts a reply for each new help desk ticket, for an agent to review.
  • Create embeddings for knowledge base articles so your support search finds answers by meaning.
Connects through
HTTP Connector
Authentication
A bearer token
Base URL
https://api.perplexity.ai

Set it up

Connect Perplexity to Tray.ai

Each step uses Perplexity's own API details, from its documentation.

Step 1

Save Perplexity's API token

Save the token Perplexity issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.

Step 2

Point the HTTP Client at the API

Add an HTTP Client step and use https://api.perplexity.ai as the base URL. Or paste a cURL example from Perplexity's API docs, and Tray.ai fills in the method, URL, and headers.

Step 3

Start with “Get an agent response”

It's one of 14 documented actions, under Agent responses. The response comes back as data the next step can map into your other apps.

Step 4

Hand it to an AI agent

Wrap “Create an agent response” and “List response files” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Give your AI agents Perplexity tools

Build an MCP server on Perplexity in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create an agent response
  • Search the web
  • Create a chat completion
  • Create embeddings
  • List skills
  • Get an agent response
  • Cancel an agent response
  • List response files

What the Perplexity API covers

5 resources and 14 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Agent responses

  • Create an agent response
  • Get an agent response
  • Cancel an agent response
  • List response files

Search and decisions

  • Search the web
  • Answer typed questions

Chat completions

  • Create a chat completion
  • List models

Embeddings

  • Create embeddings
  • Create contextualized embeddings

Skills

  • List skills
  • Create a skill
  • Get a skill
  • Delete a skill

Checked against Perplexity's own documentation on 2026-10-22

docs.perplexity.ai

Frequently asked questions

What can a Tray.ai workflow do in Perplexity?

+

The Perplexity API documents 14 actions across 5 resources (Agent responses, Search and decisions, Chat completions, Embeddings, Skills). For example: Create an agent response; Search the web; Create a chat completion. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Perplexity?

+

The Perplexity API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

See Perplexity working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great — a couple more details

This helps us connect you with the right person. Optional, and you can skip it.