melso
AutomationUse casesChangelog
Start your business
Hermes and Perplexity AI

Connect Hermes to Perplexity AI

Give your Hermes agent access to Perplexity AI in Melso — 9 tools it can call while it works through a task.

Set it up in Melso

  1. 1In Melso, open Settings → Agent Apps and hit Connect on Perplexity AI.
  2. 2Finish the API_KEY sign-in in the window that opens. Melso stores the connection, not your credentials.
  3. 3Open your Hermes agent, go to its Agent Apps tab, and allow Perplexity AI.
  4. 4Give the agent a task. It calls Perplexity AI itself when the work needs it.
Get Melso
What you get

What Perplexity AI gives your agent

The tools, permissions, and events Perplexity AI exposes — the same ones your agent can use once the app is authorized.

What you sign in with

Perplexity AI connects with API_KEY.

Permissions

Perplexity AI does not break access down into granular permissions.

Tools Perplexity AI exposes

PERPLEXITYAI_CREATE_ASYNC_CHAT_COMPLETION

Create Async Chat Completion

Create Async Chat Completion (POST /v1/async/sonar). Submits an asynchronous chat completion request for long-running tasks. Returns immediately with a request ID that can be polled using the Get Async Chat Completion action. Only the 'sonar-deep-research' model is supported for async processing. Async jobs have a 7-day TTL. Deep research generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Use the idempotency_key to prevent duplicate submissions. Poll with Get Async Chat Completion using the returned request ID to retrieve results when status is COMPLETED.

PERPLEXITYAI_CREATE_CHAT_COMPLETION

Create Chat Completion

Perplexity Sonar Chat Completions (POST /v1/sonar). Generates web-grounded conversational AI responses with citations. Supports multiple Sonar models optimized for different use cases: - sonar: Fast, cost-effective for simple queries - sonar-pro: Enhanced quality for complex questions - sonar-reasoning-pro: Chain-of-thought reasoning with <think> blocks - sonar-deep-research: Exhaustive multi-source research (generates very long responses, 10K+ words; prefer the async endpoint for this model) Features: web search grounding, citations, images, structured JSON output, search filtering by domain/date/language/recency, and streaming. Important constraints: - search_recency_filter and date filters (search_after_date_filter, search_before_date_filter, etc.) are mutually exclusive. Use one or the other, not both. - Messages with the 'tool' role must alternate with 'assistant' messages. A valid pattern is: system -> user -> assistant -> tool -> user. - The 'stop' parameter is not currently supported by the API.

PERPLEXITYAI_CREATE_CONTEXTUALIZED_EMBEDDINGS

Create Contextualized Embeddings

Create Contextualized Embeddings (POST /v1/contextualizedembeddings). Generates document-aware embeddings where chunks from the same document share context. Unlike standard embeddings, these recognize sequential relationships within documents, improving retrieval quality. Models: pplx-embed-context-v1-0.6b (1024 dims) and pplx-embed-context-v1-4b (2560 dims). Both support Matryoshka dimension reduction and INT8/binary quantization.

PERPLEXITYAI_CREATE_EMBEDDINGS

CreateEmbeddings

Generate vector embeddings for independent texts (queries, sentences, documents). This action takes one or more input texts and generates vector embeddings using Perplexity AI's embedding models. Embeddings are useful for semantic search, similarity matching, and machine learning downstream tasks. Supported models: - pplx-embed-v1-0.6b: Smaller, faster model (1024 dimensions) - pplx-embed-v1-4b: Larger, more accurate model (2560 dimensions) The output embeddings are base64-encoded for efficient transmission. Use the dimensions parameter to reduce embedding size for faster processing when full precision is not required (Matryoshka representation).

PERPLEXITYAI_EXECUTE_AGENT

Execute Agent

Create Agent Response (POST /v1/agent). Orchestrates multi-step agentic workflows with built-in tools (web search, URL fetching, function calling), reasoning, and multi-model support. Streaming is not supported by this action. At least one of 'model', 'models', or 'preset' must be provided. Available presets: 'fast-search', 'pro-search', 'deep-research'. The 'deep-research' preset generates very long responses (10K-100K+ words) with exhaustive multi-source analysis. Available models include Perplexity Sonar, OpenAI, Anthropic, Google, xAI, and NVIDIA models at direct provider rates. Use the List Models action to see available model identifiers.

PERPLEXITYAI_GET_ASYNC_CHAT_COMPLETION

Get Async Chat Completion

Get Async Chat Completion (GET /v1/async/sonar/{id}). Retrieves the result of an asynchronous chat completion request by its ID. Use this to poll for the result after creating an async job. The response includes the status and, when completed, the full completion.

PERPLEXITYAI_LIST_ASYNC_CHAT_COMPLETIONS

List Async Chat Completions

List Async Chat Completions (GET /v1/async/sonar). Retrieves a list of all asynchronous chat completion requests for the authenticated user. Use this to see the status of all your pending, completed, and failed async jobs.

PERPLEXITYAI_LIST_MODELS

List Models

List Models (GET /v1/models). Lists models available for the Agent API. Returns model identifiers that can be used with the Agent endpoint. The response follows the OpenAI List Models format for compatibility. This is a public endpoint that does not require authentication.

Example prompts

  • Use Perplexity AI to check recent changes and summarize them in the issue.
  • When a customer writes in, pull their data from Perplexity AI before replying.
  • Audit our open items in Perplexity AI and notify the channel of anything stale.

Useful links

  • Perplexity AI website
  • Melso Agent Apps docs

More in Artificial Intelligence

  • Perplexity AI
  • ElevenLabs
  • Mem0
  • HeyGen
  • Semantic Scholar
melso

Run your company with AI agents.

Start your business

Product

  • Home
  • Automation
  • Melso vs Polsia
  • Use cases
  • Changelog
  • Download

Resources

    Company

    • About
    • Contact Sales

    © 2026 Melso. All rights reserved.