Skip to main content
Perplexity logo

Perplexity

Overview

Perplexity AI is an AI chatbot-powered research and conversational search engine that answers queries using natural language predictive text. With its ability to understand context and deliver accurate responses, Perplexity AI is ideal for various applications, from enhancing customer support to enabling content creation and data analysis.

Setting up Perplexity

Create an access token

To get started you'll need a Perplexity API key. To get an API key:

  1. Visit the Perplexity API Settings page
  2. Register your credit card. This step will not charge your credit card. Rather, it stores payment information for later API usage.
  3. Purchase credits. API keys can only be generated when your balance is nonzero.
  4. Scroll down to API keys and generate an API key
  5. Copy the API key to configure your integration's configuration

Add integration

Once you have an access token, you're ready to set up your Superblocks integration.

  1. In the web app, navigate to the Integrations page
  2. Click on the Perplexity tile
  3. Name the integration
  4. Paste your credentials into the relevant fields
  5. Optionally, add more configurations to set credentials for different environments
  6. Click Create
success

Perplexity connected Now you can use Perplexity in any Application, Workflow, or Scheduled Job.

Use Perplexity in APIs

Once your Perplexity integration is created, you can start calling Perplexity actions in Superblocks APIs.

Perplexity actions are REST requests. To learn more about REST requests in Superblocks, see the Building REST requests guide.

Certain Perplexity actions support streaming. Learn more about building APIs in Superblocks that

stream data from REST APIs

.

Supported actions

Create a Chat Completion

Creates a model response for the given chat conversation.

Generic HTTP Request

Every SaaS integration in Superblocks comes with a built in Generic HTTP Request Action. This is a powerful action you can use to call Perplexity API endpoints not in the Superblocks supported actions.

To use this action simply add the method, path, required query parameters, and body for the desired endpoint.

info

Learn more about REST requests in Superblocks in our Building REST requests guide.

Generic HTTP Requests use the authentication set up and base URL you've configured for your integration, making it an easy for your team to extend Superblocks Integrations to meet their needs.