Sim

Perplexity

Use Perplexity AI for chat and search

Perplexity AI is an AI-powered search engine and answer engine that combines the capabilities of large language models with real-time web search to provide accurate, up-to-date information and comprehensive answers to complex questions.

With Perplexity AI, you can:

  • Get accurate answers: Receive comprehensive responses to questions with citations from reliable sources
  • Access real-time information: Obtain up-to-date information through Perplexity's web search capabilities
  • Explore topics in depth: Dive deeper into subjects with follow-up questions and related information
  • Verify information: Check the credibility of answers through provided sources and references
  • Generate content: Create summaries, analyses, and creative content based on current information
  • Research efficiently: Streamline research processes with comprehensive answers to complex queries
  • Interact conversationally: Engage in natural dialogue to refine questions and explore topics

In Sim, the Perplexity integration enables your agents to leverage these powerful AI capabilities programmatically as part of their workflows. This allows for sophisticated automation scenarios that combine natural language understanding, real-time information retrieval, and content generation. Your agents can formulate queries, receive comprehensive answers with citations, and incorporate this information into their decision-making processes or outputs. This integration bridges the gap between your workflow automation and access to current, reliable information, enabling your agents to make more informed decisions and provide more accurate responses. By connecting Sim with Perplexity, you can create agents that stay current with the latest information, provide well-researched answers, and deliver more valuable insights to users - all without requiring manual research or information gathering.

Usage Instructions

Integrate Perplexity into the workflow. Can generate completions using Perplexity AI chat models or perform web searches with advanced filtering.

Tools

perplexity_chat

Generate completions using Perplexity AI chat models

Input

ParameterTypeRequiredDescription
systemPromptstringNoSystem prompt to guide the model behavior
contentstringYesThe user message content to send to the model
modelstringYesModel to use for chat completions (e.g., sonar, mistral)
max_tokensnumberNoMaximum number of tokens to generate
temperaturenumberNoSampling temperature between 0 and 1
apiKeystringYesPerplexity API key

Output

ParameterTypeDescription
contentstringGenerated text content
modelstringModel used for generation
usageobjectToken usage information

Get ranked search results from Perplexity

Input

ParameterTypeRequiredDescription
querystringYesA search query or array of queries (max 5 for multi-query search)
max_resultsnumberNoMaximum number of search results to return (1-20, default: 10)
search_domain_filterarrayNoList of domains/URLs to limit search results to (max 20)
max_tokens_per_pagenumberNoMaximum number of tokens retrieved from each webpage (default: 1024)
countrystringNoCountry code to filter search results (e.g., US, GB, DE)
search_recency_filterstringNoFilter results by recency: hour, day, week, month, or year
search_after_datestringNoInclude only content published after this date (format: MM/DD/YYYY)
search_before_datestringNoInclude only content published before this date (format: MM/DD/YYYY)
apiKeystringYesPerplexity API key

Output

ParameterTypeDescription
resultsarrayArray of search results

Notes

  • Category: tools
  • Type: perplexity
On this page

On this page

Start building today
Trusted by over 60,000 builders.
Build Agentic workflows visually on a drag-and-drop canvas or with natural language.
Get started